Changeset 90215 in webkit for trunk/Source/JavaScriptCore/jit/SpecializedThunkJIT.h
- Timestamp:
- Jul 1, 2011, 12:47:55 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/jit/SpecializedThunkJIT.h
r90177 r90215 128 128 LinkBuffer patchBuffer(globalData, this, m_pool.get()); 129 129 patchBuffer.link(m_failures, CodeLocationLabel(fallback)); 130 for (unsigned i = 0; i < m_calls.size(); i++)131 patchBuffer.link(m_calls[i].first, m_calls[i].second);132 130 return patchBuffer.finalizeCode().m_code; 133 131 } 134 135 // Assumes that the target function uses fpRegister0 as the first argument 136 // and return value. Like any sensible architecture would. 137 void callDoubleToDouble(FunctionPtr function) 138 { 139 m_calls.append(std::make_pair(call(), function)); 140 } 141 132 142 133 private: 143 134 int argumentToVirtualRegister(unsigned argument) … … 166 157 RefPtr<ExecutablePool> m_pool; 167 158 MacroAssembler::JumpList m_failures; 168 Vector<std::pair<Call, FunctionPtr> > m_calls;169 159 }; 170 160
Note:
See TracChangeset
for help on using the changeset viewer.