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/interpreter/CallFrame.h

    r59742 r59791  
    2525
    2626#include "JSGlobalData.h"
     27#include "MacroAssemblerCodeRef.h"
    2728#include "RegisterFile.h"
    2829#include "ScopeChain.h"
     
    108109
    109110        CallFrame* callerFrame() const { return this[RegisterFile::CallerFrame].callFrame(); }
     111#if ENABLE(JIT)
     112        ReturnAddressPtr returnPC() const { return ReturnAddressPtr(this[RegisterFile::ReturnPC].vPC()); }
     113#else
    110114        Instruction* returnPC() const { return this[RegisterFile::ReturnPC].vPC(); }
     115#endif
    111116
    112117        void setCallerFrame(CallFrame* callerFrame) { static_cast<Register*>(this)[RegisterFile::CallerFrame] = callerFrame; }
Note: See TracChangeset for help on using the changeset viewer.