Changeset 43153 in webkit for trunk/JavaScriptCore/jit
- Timestamp:
- May 2, 2009, 6:58:45 PM (16 years ago)
- Location:
- trunk/JavaScriptCore/jit
- Files:
-
- 2 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 -
trunk/JavaScriptCore/jit/JITStubs.cpp
r43122 r43153 299 299 #define CHECK_FOR_EXCEPTION() \ 300 300 do { \ 301 if (UNLIKELY(ARG_globalData->exception != noValue())) \301 if (UNLIKELY(ARG_globalData->exception != JSValue())) \ 302 302 VM_THROW_EXCEPTION(); \ 303 303 } while (0) 304 304 #define CHECK_FOR_EXCEPTION_AT_END() \ 305 305 do { \ 306 if (UNLIKELY(ARG_globalData->exception != noValue())) \306 if (UNLIKELY(ARG_globalData->exception != JSValue())) \ 307 307 VM_THROW_EXCEPTION_AT_END(); \ 308 308 } while (0) 309 309 #define CHECK_FOR_EXCEPTION_VOID() \ 310 310 do { \ 311 if (UNLIKELY(ARG_globalData->exception != noValue())) { \311 if (UNLIKELY(ARG_globalData->exception != JSValue())) { \ 312 312 VM_THROW_EXCEPTION_AT_END(); \ 313 313 return; \ … … 1895 1895 1896 1896 if (thisValue == globalObject && funcVal == globalObject->evalFunction()) { 1897 JSValue exceptionValue = noValue();1897 JSValue exceptionValue; 1898 1898 JSValue result = interpreter->callEval(callFrame, registerFile, argv, argCount, registerOffset, exceptionValue); 1899 if (UNLIKELY(exceptionValue != noValue())) {1899 if (UNLIKELY(exceptionValue != JSValue())) { 1900 1900 ARG_globalData->exception = exceptionValue; 1901 1901 VM_THROW_EXCEPTION_AT_END(); … … 1904 1904 } 1905 1905 1906 return JSValue::encode( jsImpossibleValue());1906 return JSValue::encode(JSValue()); 1907 1907 } 1908 1908 … … 2259 2259 JSValue exceptionValue = globalData->exception; 2260 2260 ASSERT(exceptionValue); 2261 globalData->exception = noValue();2261 globalData->exception = JSValue(); 2262 2262 2263 2263 HandlerInfo* handler = globalData->interpreter->throwException(callFrame, exceptionValue, vPCIndex, false);
Note:
See TracChangeset
for help on using the changeset viewer.