Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Unified Diff: src/compiler/js-context-specialization.cc

Issue 899803003: Removed most of the bogus CompilationInfo constructor calls. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler/js-context-specialization.h ('k') | src/compiler/js-generic-lowering.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « src/compiler/js-context-specialization.h ('k') | src/compiler/js-generic-lowering.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698