Changeset 43153 in webkit for trunk/JavaScriptCore/jit/JITCall.cpp
- Timestamp:
- May 2, 2009, 6:58:45 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/jit/JITCall.cpp
r43122 r43153 50 50 // (and, if a new JSFunction happened to be constructed at the same location, we could get a false positive 51 51 // match). Reset the check so it no longer matches. 52 callLinkInfo->hotPathBegin.repatch(JSValue::encode( jsImpossibleValue()));52 callLinkInfo->hotPathBegin.repatch(JSValue::encode(JSValue())); 53 53 } 54 54 … … 76 76 loadPtr(Address(regT2, FIELD_OFFSET(JSFunction, m_scopeChain) + FIELD_OFFSET(ScopeChain, m_node)), regT1); // newScopeChain 77 77 78 storePtr(ImmPtr(JSValue::encode( noValue())), Address(callFrameRegister, RegisterFile::OptionalCalleeArguments * static_cast<int>(sizeof(Register))));78 storePtr(ImmPtr(JSValue::encode(JSValue())), Address(callFrameRegister, RegisterFile::OptionalCalleeArguments * static_cast<int>(sizeof(Register)))); 79 79 storePtr(regT2, Address(callFrameRegister, RegisterFile::Callee * static_cast<int>(sizeof(Register)))); 80 80 storePtr(regT1, Address(callFrameRegister, RegisterFile::ScopeChain * static_cast<int>(sizeof(Register)))); … … 145 145 146 146 emitCTICall(JITStubs::cti_op_call_eval); 147 wasEval = branchPtr(NotEqual, regT0, ImmPtr(JSValue::encode( jsImpossibleValue())));147 wasEval = branchPtr(NotEqual, regT0, ImmPtr(JSValue::encode(JSValue()))); 148 148 } 149 149 … … 213 213 214 214 emitCTICall(JITStubs::cti_op_call_eval); 215 wasEval = branchPtr(NotEqual, regT0, ImmPtr(JSValue::encode( jsImpossibleValue())));215 wasEval = branchPtr(NotEqual, regT0, ImmPtr(JSValue::encode(JSValue()))); 216 216 } 217 217 … … 220 220 emitGetVirtualRegister(callee, regT2); 221 221 DataLabelPtr addressOfLinkedFunctionCheck; 222 Jump jumpToSlow = branchPtrWithPatch(NotEqual, regT2, addressOfLinkedFunctionCheck, ImmPtr(JSValue::encode( jsImpossibleValue())));222 Jump jumpToSlow = branchPtrWithPatch(NotEqual, regT2, addressOfLinkedFunctionCheck, ImmPtr(JSValue::encode(JSValue()))); 223 223 addSlowCase(jumpToSlow); 224 224 ASSERT(differenceBetween(addressOfLinkedFunctionCheck, jumpToSlow) == patchOffsetOpCallCompareToJump); … … 241 241 // Fast version of stack frame initialization, directly relative to edi. 242 242 // Note that this omits to set up RegisterFile::CodeBlock, which is set in the callee 243 storePtr(ImmPtr(JSValue::encode( noValue())), Address(callFrameRegister, (registerOffset + RegisterFile::OptionalCalleeArguments) * static_cast<int>(sizeof(Register))));243 storePtr(ImmPtr(JSValue::encode(JSValue())), Address(callFrameRegister, (registerOffset + RegisterFile::OptionalCalleeArguments) * static_cast<int>(sizeof(Register)))); 244 244 storePtr(regT2, Address(callFrameRegister, (registerOffset + RegisterFile::Callee) * static_cast<int>(sizeof(Register)))); 245 245 loadPtr(Address(regT2, FIELD_OFFSET(JSFunction, m_scopeChain) + FIELD_OFFSET(ScopeChain, m_node)), regT1); // newScopeChain
Note:
See TracChangeset
for help on using the changeset viewer.