Changeset 59791 in webkit for trunk/JavaScriptCore/bytecode


Ignore:
Timestamp:
May 19, 2010, 4:24:31 PM (15 years ago)
Author:
[email protected]
Message:

2010-05-19 Geoffrey Garen <[email protected]>

Reviewed by Sam Weinig.

Slight refactoring to CodeBlock bytecode access
https://bugs.webkit.org/show_bug.cgi?id=39384

  • bytecode/CodeBlock.h: (JSC::CodeBlock::bytecodeOffset):
  • interpreter/CallFrame.h: (JSC::ExecState::returnPC):
  • interpreter/Interpreter.cpp: (JSC::Interpreter::unwindCallFrame): (JSC::Interpreter::retrieveLastCaller): Moved bytecode access into a CodeBlock helper function. Changed CallFrame to accurately represent how the returnPC is stored in JIT vs Interpreter.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/bytecode/CodeBlock.h

    r59777 r59791  
    357357       
    358358        bool functionRegisterForBytecodeOffset(unsigned bytecodeOffset, int& functionRegisterIndex);
     359#else
     360        unsigned bytecodeOffset(CallFrame*, Instruction* returnAddress)
     361        {
     362            return static_cast<Instruction*>(returnAddress) - instructions().begin();
     363        }
    359364#endif
    360365
Note: See TracChangeset for help on using the changeset viewer.