Index: src/arm/deoptimizer-arm.cc |
diff --git a/src/arm/deoptimizer-arm.cc b/src/arm/deoptimizer-arm.cc |
index ee2a581a57dcb443e22f1395dab540afa6e3927b..bcf1fe0a90352fae8838b3f44145071dc095b61b 100644 |
--- a/src/arm/deoptimizer-arm.cc |
+++ b/src/arm/deoptimizer-arm.cc |
@@ -44,11 +44,14 @@ int Deoptimizer::patch_size() { |
} |
-void Deoptimizer::DeoptimizeFunction(JSFunction* function) { |
- HandleScope scope; |
+void Deoptimizer::DeoptimizeFunctionWithPreparedFunctionList( |
+ JSFunction* function) { |
+ Isolate* isolate = function->GetIsolate(); |
ulan
2012/12/12 13:50:57
This changes are to sync code for different archit
|
+ HandleScope scope(isolate); |
AssertNoAllocation no_allocation; |
- if (!function->IsOptimized()) return; |
+ ASSERT(function->IsOptimized()); |
+ ASSERT(function->FunctionsInFunctionListShareSameCode()); |
// The optimized code is going to be patched, so we cannot use it |
// any more. Play safe and reset the whole cache. |
@@ -91,8 +94,6 @@ void Deoptimizer::DeoptimizeFunction(JSFunction* function) { |
#endif |
} |
- Isolate* isolate = code->GetIsolate(); |
- |
// Add the deoptimizing code to the list. |
DeoptimizingCodeListNode* node = new DeoptimizingCodeListNode(code); |
DeoptimizerData* data = isolate->deoptimizer_data(); |