Index: src/compiler/js-context-specialization.cc |
diff --git a/src/compiler/js-context-specialization.cc b/src/compiler/js-context-specialization.cc |
index 8555806da78e0e8ef288f67c2f8fbbd45ff5aac7..4416878de801dbfe4431e920388f8ca4c7742ebd 100644 |
--- a/src/compiler/js-context-specialization.cc |
+++ b/src/compiler/js-context-specialization.cc |
@@ -16,7 +16,7 @@ namespace compiler { |
Reduction JSContextSpecializer::Reduce(Node* node) { |
if (node == context_) { |
- Node* constant = jsgraph_->Constant(info_->context()); |
+ Node* constant = jsgraph_->Constant(ctx_); |
NodeProperties::ReplaceWithValue(node, constant); |
return Replace(constant); |
} |
@@ -56,12 +56,13 @@ Reduction JSContextSpecializer::ReduceJSLoadContext(Node* node) { |
const Operator* op = jsgraph_->javascript()->LoadContext( |
0, access.index(), access.immutable()); |
node->set_op(op); |
- Handle<Object> context_handle = Handle<Object>(context, info_->isolate()); |
+ Handle<Object> context_handle = |
+ Handle<Object>(context, jsgraph_->isolate()); |
node->ReplaceInput(0, jsgraph_->Constant(context_handle)); |
return Changed(node); |
} |
Handle<Object> value = Handle<Object>( |
- context->get(static_cast<int>(access.index())), info_->isolate()); |
+ context->get(static_cast<int>(access.index())), jsgraph_->isolate()); |
// Even though the context slot is immutable, the context might have escaped |
// before the function to which it belongs has initialized the slot. |
@@ -104,7 +105,8 @@ Reduction JSContextSpecializer::ReduceJSStoreContext(Node* node) { |
const Operator* op = jsgraph_->javascript()->StoreContext(0, access.index()); |
node->set_op(op); |
- Handle<Object> new_context_handle = Handle<Object>(context, info_->isolate()); |
+ Handle<Object> new_context_handle = |
+ Handle<Object>(context, jsgraph_->isolate()); |
node->ReplaceInput(0, jsgraph_->Constant(new_context_handle)); |
return Changed(node); |