Changeset 108358 in webkit for trunk/Source/JavaScriptCore/interpreter/CallFrame.h
- Timestamp:
- Feb 21, 2012, 8:26:12 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/CallFrame.h
r108309 r108358 104 104 CallFrame* callerFrame() const { return this[RegisterFile::CallerFrame].callFrame(); } 105 105 #if ENABLE(JIT) 106 bool hasReturnPC() const { return this[RegisterFile::ReturnPC].vPC(); } 106 107 ReturnAddressPtr returnPC() const { return ReturnAddressPtr(this[RegisterFile::ReturnPC].vPC()); } 107 bool hasReturnPC() const { return !!this[RegisterFile::ReturnPC].vPC(); }108 void clearReturnPC() { registers()[RegisterFile::ReturnPC] = static_cast<Instruction*>(0); }109 108 #endif 110 109 AbstractPC abstractReturnPC(JSGlobalData& globalData) { return AbstractPC(globalData, this); } 111 #if USE(JSVALUE32_64) 112 unsigned bytecodeOffsetForNonDFGCode() const; 113 void setBytecodeOffsetForNonDFGCode(unsigned offset); 114 #else 115 unsigned bytecodeOffsetForNonDFGCode() const 110 unsigned bytecodeOffsetForNonDFGCode() 116 111 { 117 112 ASSERT(codeBlock()); … … 124 119 this[RegisterFile::ArgumentCount].tag() = static_cast<int32_t>(offset); 125 120 } 126 #endif127 121 128 122 #if ENABLE(DFG_JIT) … … 141 135 #if ENABLE(CLASSIC_INTERPRETER) 142 136 Instruction* returnVPC() const { return this[RegisterFile::ReturnPC].vPC(); } 143 #endif144 #if USE(JSVALUE32_64)145 Instruction* currentVPC() const146 {147 return bitwise_cast<Instruction*>(this[RegisterFile::ArgumentCount].tag());148 }149 void setCurrentVPC(Instruction* vpc)150 {151 this[RegisterFile::ArgumentCount].tag() = bitwise_cast<int32_t>(vpc);152 }153 #else154 Instruction* currentVPC() const;155 void setCurrentVPC(Instruction* vpc);156 137 #endif 157 138
Note:
See TracChangeset
for help on using the changeset viewer.