Changeset 121073 in webkit for trunk/Source/JavaScriptCore/dfg/DFGOperations.cpp
- Timestamp:
- Jun 22, 2012, 4:32:59 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/JavaScriptCore/dfg/DFGOperations.cpp
r120989 r121073 33 33 #include "HostCallReturnValue.h" 34 34 #include "GetterSetter.h" 35 #include <wtf/InlineASM.h>36 35 #include "Interpreter.h" 36 #include "JIT.h" 37 37 #include "JITExceptions.h" 38 38 #include "JSActivation.h" … … 41 41 #include "NameInstance.h" 42 42 #include "Operations.h" 43 #include <wtf/InlineASM.h> 43 44 44 45 #if ENABLE(DFG_JIT) … … 1251 1252 } 1252 1253 #endif 1254 1255 extern "C" void DFG_OPERATION triggerReoptimizationNow(CodeBlock* codeBlock) 1256 { 1257 #if ENABLE(JIT_VERBOSE_OSR) 1258 dataLog("%p: Entered reoptimize\n", codeBlock); 1259 #endif 1260 // We must be called with the baseline code block. 1261 ASSERT(JITCode::isBaselineCode(codeBlock->getJITType())); 1262 1263 // If I am my own replacement, then reoptimization has already been triggered. 1264 // This can happen in recursive functions. 1265 if (codeBlock->replacement() == codeBlock) 1266 return; 1267 1268 // Otherwise, the replacement must be optimized code. Use this as an opportunity 1269 // to check our logic. 1270 ASSERT(codeBlock->hasOptimizedReplacement()); 1271 ASSERT(codeBlock->replacement()->getJITType() == JITCode::DFGJIT); 1272 1273 codeBlock->reoptimize(); 1274 } 1253 1275 1254 1276 } // extern "C"
Note:
See TracChangeset
for help on using the changeset viewer.