Index: src/ia32/deoptimizer-ia32.cc |
diff --git a/src/ia32/deoptimizer-ia32.cc b/src/ia32/deoptimizer-ia32.cc |
index 4eaf7fee58bc591446ac51792a58dc8dd118e7b6..73ca9cec40deab186ac01d6d99facab5edad23bd 100644 |
--- a/src/ia32/deoptimizer-ia32.cc |
+++ b/src/ia32/deoptimizer-ia32.cc |
@@ -123,7 +123,7 @@ void Deoptimizer::DeoptimizeFunction(JSFunction* function) { |
// Add the deoptimizing code to the list. |
DeoptimizingCodeListNode* node = new DeoptimizingCodeListNode(code); |
- DeoptimizerData* data = Isolate::Current()->deoptimizer_data(); |
+ DeoptimizerData* data = code->GetIsolate()->deoptimizer_data(); |
node->set_next(data->deoptimizing_code_list_); |
data->deoptimizing_code_list_ = node; |
@@ -325,7 +325,7 @@ void Deoptimizer::DoComputeOsrOutputFrame() { |
output_[0]->SetPc(pc); |
} |
Code* continuation = |
- Isolate::Current()->builtins()->builtin(Builtins::NotifyOSR); |
+ function->GetIsolate()->builtins()->builtin(Builtins::NotifyOSR); |
output_[0]->SetContinuation( |
reinterpret_cast<uint32_t>(continuation->entry())); |