Changeset 37366 in webkit for trunk/JavaScriptCore/VM/Machine.h


Ignore:
Timestamp:
Oct 6, 2008, 8:53:47 PM (17 years ago)
Author:
[email protected]
Message:

2008-10-06 Cameron Zwarich <[email protected]>

Reviewed by Oliver Hunt.

Bug 21396: Remove the OptionalCalleeActivation call frame slot
<https://bugs.webkit.org/show_bug.cgi?id=21396>

Remove the OptionalCalleeActivation call frame slot. We have to be
careful to store the activation object in a register, because objects
in the scope chain do not get marked.

This is a 0.3% speedup on both SunSpider and the V8 benchmark.

  • VM/CTI.cpp: (JSC::CTI::privateCompileMainPass):
  • VM/CodeBlock.cpp: (JSC::CodeBlock::dump):
  • VM/CodeGenerator.cpp: (JSC::CodeGenerator::CodeGenerator): (JSC::CodeGenerator::emitReturn):
  • VM/CodeGenerator.h:
  • VM/Machine.cpp: (JSC::Machine::dumpRegisters): (JSC::Machine::unwindCallFrame): (JSC::Machine::privateExecute): (JSC::Machine::cti_op_call_JSFunction): (JSC::Machine::cti_op_push_activation): (JSC::Machine::cti_op_tear_off_activation): (JSC::Machine::cti_op_construct_JSConstruct):
  • VM/Machine.h: (JSC::Machine::initializeCallFrame):
  • VM/RegisterFile.h: (JSC::RegisterFile::):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/VM/Machine.h

    r37325 r37366  
    236236        static void* SFX_CALL cti_vm_throw(CTI_ARGS);
    237237        static void* SFX_CALL cti_vm_compile(CTI_ARGS);
    238         static void SFX_CALL cti_op_push_activation(CTI_ARGS);
     238        static JSValue* SFX_CALL cti_op_push_activation(CTI_ARGS);
    239239       
    240240#endif // ENABLE(CTI)
     
    325325        callFrame[RegisterFile::ArgumentCount] = argc; // original argument count (for the sake of the "arguments" object)
    326326        callFrame[RegisterFile::Callee] = function;
    327         callFrame[RegisterFile::OptionalCalleeActivation] = nullJSValue;
    328327        callFrame[RegisterFile::OptionalCalleeArguments] = nullJSValue;
    329328    }
Note: See TracChangeset for help on using the changeset viewer.