Changeset 147798 in webkit for trunk/Source/JavaScriptCore/interpreter/CallFrame.cpp
- Timestamp:
- Apr 5, 2013, 2:34:15 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/CallFrame.cpp
r139541 r147798 122 122 123 123 bool hasCodeOrigin = machineCodeBlock->codeOriginForReturn(currentReturnPC, codeOrigin); 124 ASSERT_UNUSED(hasCodeOrigin, hasCodeOrigin); 124 ASSERT(hasCodeOrigin); 125 if (!hasCodeOrigin) { 126 // In release builds, if we find ourselves in a situation where the return PC doesn't 127 // correspond to a valid CodeOrigin, we return zero instead of continuing. Some of 128 // the callers of trueCallFrame() will be able to recover and do conservative things, 129 // while others will crash. 130 return 0; 131 } 125 132 } else { 126 133 unsigned index = codeOriginIndexForDFG(); 134 ASSERT(machineCodeBlock->canGetCodeOrigin(index)); 135 if (!machineCodeBlock->canGetCodeOrigin(index)) { 136 // See above. In release builds, we try to protect ourselves from crashing even 137 // though stack walking will be goofed up. 138 return 0; 139 } 127 140 codeOrigin = machineCodeBlock->codeOrigin(index); 128 141 }
Note:
See TracChangeset
for help on using the changeset viewer.