Changeset 148709 in webkit for trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp
- Timestamp:
- Apr 18, 2013, 3:45:25 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/interpreter/Interpreter.cpp
r148696 r148709 1017 1017 ProgramCodeBlock* codeBlock = &program->generatedBytecode(); 1018 1018 1019 if (UNLIKELY(vm.watchdog.didFire(callFrame))) 1020 return throwTerminatedExecutionException(callFrame); 1021 1019 1022 // Push the call frame for this invocation: 1020 1023 ASSERT(codeBlock->numParameters() == 1); // 1 parameter for 'this'. … … 1031 1034 // Execute the code: 1032 1035 JSValue result; 1033 if (LIKELY(!vm.watchdog.didFire(newCallFrame))){1036 { 1034 1037 SamplingTool::CallRecord callRecord(m_sampler.get()); 1035 1038 Watchdog::Scope watchdogScope(vm.watchdog); … … 1040 1043 result = program->generatedJITCode().execute(&m_stack, newCallFrame, &vm); 1041 1044 #endif // ENABLE(JIT) 1042 } else 1043 result = throwTerminatedExecutionException(newCallFrame); 1045 } 1044 1046 1045 1047 if (LegacyProfiler* profiler = vm.enabledProfiler()) … … 1090 1092 newCodeBlock = 0; 1091 1093 1094 if (UNLIKELY(vm.watchdog.didFire(callFrame))) 1095 return throwTerminatedExecutionException(callFrame); 1096 1092 1097 CallFrame* newCallFrame = m_stack.pushFrame(callFrame, newCodeBlock, scope, argsCount, function); 1093 1098 if (UNLIKELY(!newCallFrame)) … … 1103 1108 1104 1109 JSValue result; 1105 if (LIKELY(!vm.watchdog.didFire(newCallFrame))){1110 { 1106 1111 SamplingTool::CallRecord callRecord(m_sampler.get(), !isJSCall); 1107 1112 Watchdog::Scope watchdogScope(vm.watchdog); … … 1116 1121 } else 1117 1122 result = JSValue::decode(callData.native.function(newCallFrame)); 1118 } else 1119 result = throwTerminatedExecutionException(newCallFrame); 1123 } 1120 1124 1121 1125 if (LegacyProfiler* profiler = vm.enabledProfiler()) … … 1167 1171 newCodeBlock = 0; 1168 1172 1173 if (UNLIKELY(vm.watchdog.didFire(callFrame))) 1174 return throwTerminatedExecutionException(callFrame); 1175 1169 1176 CallFrame* newCallFrame = m_stack.pushFrame(callFrame, newCodeBlock, scope, argsCount, constructor); 1170 1177 if (UNLIKELY(!newCallFrame)) … … 1180 1187 1181 1188 JSValue result; 1182 if (LIKELY(!vm.watchdog.didFire(newCallFrame))){1189 { 1183 1190 SamplingTool::CallRecord callRecord(m_sampler.get(), !isJSConstruct); 1184 1191 Watchdog::Scope watchdogScope(vm.watchdog); … … 1193 1200 } else 1194 1201 result = JSValue::decode(constructData.native.function(newCallFrame)); 1195 } else 1196 result = throwTerminatedExecutionException(newCallFrame); 1202 } 1197 1203 1198 1204 if (LegacyProfiler* profiler = vm.enabledProfiler()) … … 1265 1271 if (LegacyProfiler* profiler = vm.enabledProfiler()) 1266 1272 profiler->willExecute(closure.oldCallFrame, closure.function); 1273 1274 if (UNLIKELY(vm.watchdog.didFire(closure.oldCallFrame))) 1275 return throwTerminatedExecutionException(closure.oldCallFrame); 1267 1276 1268 1277 // The code execution below may push more frames and point the topCallFrame … … 1278 1287 // Execute the code: 1279 1288 JSValue result; 1280 if (LIKELY(!vm.watchdog.didFire(closure.newCallFrame))){1289 { 1281 1290 SamplingTool::CallRecord callRecord(m_sampler.get()); 1282 1291 Watchdog::Scope watchdogScope(vm.watchdog); … … 1287 1296 result = closure.functionExecutable->generatedJITCodeForCall().execute(&m_stack, closure.newCallFrame, &vm); 1288 1297 #endif // ENABLE(JIT) 1289 } else 1290 result = throwTerminatedExecutionException(closure.newCallFrame); 1298 } 1291 1299 1292 1300 if (LegacyProfiler* profiler = vm.enabledProfiler()) … … 1362 1370 } 1363 1371 1372 if (UNLIKELY(vm.watchdog.didFire(callFrame))) 1373 return throwTerminatedExecutionException(callFrame); 1374 1364 1375 // Push the frame: 1365 1376 ASSERT(codeBlock->numParameters() == 1); // 1 parameter for 'this'. … … 1376 1387 // Execute the code: 1377 1388 JSValue result; 1378 if (LIKELY(!vm.watchdog.didFire(newCallFrame))){1389 { 1379 1390 SamplingTool::CallRecord callRecord(m_sampler.get()); 1380 1391 Watchdog::Scope watchdogScope(vm.watchdog); … … 1385 1396 result = eval->generatedJITCode().execute(&m_stack, newCallFrame, &vm); 1386 1397 #endif // ENABLE(JIT) 1387 } else 1388 result = throwTerminatedExecutionException(newCallFrame); 1398 } 1389 1399 1390 1400 if (LegacyProfiler* profiler = vm.enabledProfiler())
Note:
See TracChangeset
for help on using the changeset viewer.