Changeset 108358 in webkit for trunk/Source/JavaScriptCore/interpreter/CallFrame.cpp
- Timestamp:
- Feb 21, 2012, 8:26:12 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/CallFrame.cpp
r108309 r108358 51 51 #endif 52 52 53 #if USE(JSVALUE32_64)54 unsigned CallFrame::bytecodeOffsetForNonDFGCode() const55 {56 ASSERT(codeBlock());57 return currentVPC() - codeBlock()->instructions().begin();58 }59 60 void CallFrame::setBytecodeOffsetForNonDFGCode(unsigned offset)61 {62 ASSERT(codeBlock());63 setCurrentVPC(codeBlock()->instructions().begin() + offset);64 }65 #else66 Instruction* CallFrame::currentVPC() const67 {68 return codeBlock()->instructions().begin() + bytecodeOffsetForNonDFGCode();69 }70 void CallFrame::setCurrentVPC(Instruction* vpc)71 {72 setBytecodeOffsetForNonDFGCode(vpc - codeBlock()->instructions().begin());73 }74 #endif75 76 53 #if ENABLE(DFG_JIT) 77 54 bool CallFrame::isInlineCallFrameSlow() … … 166 143 167 144 // Am I an inline call frame? If so, we're done. 168 if (isInlineCallFrame() )145 if (isInlineCallFrame() || !hasReturnPC()) 169 146 return callerFrame()->removeHostCallFrameFlag(); 170 147 … … 177 154 178 155 // Figure out how we want to get the current code location. 179 if ( !hasReturnPC() || returnAddressIsInCtiTrampoline(returnPC()))156 if (hasHostCallFrameFlag() || returnAddressIsInCtiTrampoline(returnPC())) 180 157 return machineCaller->trueCallFrameFromVMCode()->removeHostCallFrameFlag(); 181 158
Note:
See TracChangeset
for help on using the changeset viewer.