Changeset 213107 in webkit for trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp
- Timestamp:
- Feb 27, 2017, 5:20:54 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp
r212692 r213107 861 861 } 862 862 863 if (UNLIKELY(vm.shouldTriggerTermination(callFrame))) 864 return throwTerminatedExecutionException(callFrame, throwScope); 863 if (UNLIKELY(vm.needTrapHandling())) { 864 vm.handleTraps(callFrame); 865 RETURN_IF_EXCEPTION(throwScope, throwScope.exception()); 866 } 865 867 866 868 if (scope->structure()->isUncacheableDictionary()) … … 919 921 newCodeBlock = 0; 920 922 921 if (UNLIKELY(vm.shouldTriggerTermination(callFrame))) 922 return throwTerminatedExecutionException(callFrame, throwScope); 923 if (UNLIKELY(vm.needTrapHandling())) { 924 vm.handleTraps(callFrame); 925 RETURN_IF_EXCEPTION(throwScope, throwScope.exception()); 926 } 923 927 924 928 ProtoCallFrame protoCallFrame; … … 982 986 newCodeBlock = 0; 983 987 984 if (UNLIKELY(vm.shouldTriggerTermination(callFrame))) 985 return throwTerminatedExecutionException(callFrame, throwScope); 988 if (UNLIKELY(vm.needTrapHandling())) { 989 vm.handleTraps(callFrame); 990 RETURN_IF_EXCEPTION(throwScope, throwScope.exception()); 991 } 986 992 987 993 ProtoCallFrame protoCallFrame; … … 1044 1050 StackStats::CheckPoint stackCheckPoint; 1045 1051 1046 if (UNLIKELY(vm.shouldTriggerTermination(closure.oldCallFrame))) 1047 return throwTerminatedExecutionException(closure.oldCallFrame, throwScope); 1052 if (UNLIKELY(vm.needTrapHandling())) { 1053 vm.handleTraps(closure.oldCallFrame); 1054 RETURN_IF_EXCEPTION(throwScope, throwScope.exception()); 1055 } 1048 1056 1049 1057 // Execute the code: … … 1145 1153 } 1146 1154 1147 if (UNLIKELY(vm.shouldTriggerTermination(callFrame))) 1148 return throwTerminatedExecutionException(callFrame, throwScope); 1155 if (UNLIKELY(vm.needTrapHandling())) { 1156 vm.handleTraps(callFrame); 1157 RETURN_IF_EXCEPTION(throwScope, throwScope.exception()); 1158 } 1149 1159 1150 1160 ASSERT(codeBlock->numParameters() == 1); // 1 parameter for 'this'. … … 1184 1194 } 1185 1195 1186 if (UNLIKELY(vm.shouldTriggerTermination(callFrame))) 1187 return throwTerminatedExecutionException(callFrame, throwScope); 1196 if (UNLIKELY(vm.needTrapHandling())) { 1197 vm.handleTraps(callFrame); 1198 RETURN_IF_EXCEPTION(throwScope, throwScope.exception()); 1199 } 1188 1200 1189 1201 if (scope->structure()->isUncacheableDictionary())
Note:
See TracChangeset
for help on using the changeset viewer.