Skip to content
  • mjs@apple.com's avatar
    2008-06-15 Maciej Stachowiak <mjs@apple.com> · 33b7578c
    mjs@apple.com authored
            Reviewed by Alexey.
            
            - add emitUnaryOp, emitNullaryOp and emitUnaryOpNoDst; use them
            
            This removes some boilerplate code and also reduces the number of
            places that will need to be changed to do on-demand emit of
            loads (and thus support k operands).
    
            * VM/CodeGenerator.cpp:
            (KJS::CodeGenerator::emitUnaryOp):
            (KJS::CodeGenerator::emitNullaryOp):
            (KJS::CodeGenerator::emitUnaryOpNoDst):
            (KJS::CodeGenerator::emitPushScope):
            * VM/CodeGenerator.h:
            (KJS::CodeGenerator::emitNewObject):
            (KJS::CodeGenerator::emitNewArray):
            (KJS::CodeGenerator::emitNot):
            (KJS::CodeGenerator::emitBitNot):
            (KJS::CodeGenerator::emitToJSNumber):
            (KJS::CodeGenerator::emitNegate):
            (KJS::CodeGenerator::emitInstanceOf):
            (KJS::CodeGenerator::emitTypeOf):
            (KJS::CodeGenerator::emitIn):
            (KJS::CodeGenerator::emitReturn):
            (KJS::CodeGenerator::emitEnd):
            (KJS::CodeGenerator::emitGetPropertyNames):
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34576 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    33b7578c