Changeset 153209 in webkit for trunk/Source/JavaScriptCore/interpreter/CallFrame.cpp
- Timestamp:
- Jul 24, 2013, 9:02:03 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/CallFrame.cpp
r153183 r153209 27 27 #include "CallFrame.h" 28 28 29 #include "CallFrameInlines.h" 29 30 #include "CodeBlock.h" 30 31 #include "Interpreter.h" … … 42 43 43 44 #if USE(JSVALUE32_64) 44 unsigned CallFrame:: bytecodeOffsetForNonDFGCode() const45 unsigned CallFrame::locationAsBytecodeOffset() const 45 46 { 46 47 ASSERT(codeBlock()); 48 ASSERT(hasLocationAsBytecodeOffset()); 47 49 return currentVPC() - codeBlock()->instructions().begin(); 48 50 } 49 51 50 void CallFrame::set BytecodeOffsetForNonDFGCode(unsigned offset)52 void CallFrame::setLocationAsBytecodeOffset(unsigned offset) 51 53 { 52 54 ASSERT(codeBlock()); 55 ASSERT(!CodeOrigin::isHandle(offset)); 53 56 setCurrentVPC(codeBlock()->instructions().begin() + offset); 57 ASSERT(hasLocationAsBytecodeOffset()); 54 58 } 55 59 #else 56 60 Instruction* CallFrame::currentVPC() const 57 61 { 58 return codeBlock()->instructions().begin() + bytecodeOffsetForNonDFGCode();62 return codeBlock()->instructions().begin() + locationAsBytecodeOffset(); 59 63 } 60 64 void CallFrame::setCurrentVPC(Instruction* vpc) 61 65 { 62 set BytecodeOffsetForNonDFGCode(vpc - codeBlock()->instructions().begin());66 setLocationAsBytecodeOffset(vpc - codeBlock()->instructions().begin()); 63 67 } 64 68 #endif … … 120 124 } 121 125 } else { 122 unsigned index = codeOriginIndexForDFG();126 unsigned index = locationAsCodeOriginIndex(); 123 127 ASSERT(machineCodeBlock->canGetCodeOrigin(index)); 124 128 if (!machineCodeBlock->canGetCodeOrigin(index)) {
Note:
See TracChangeset
for help on using the changeset viewer.