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

Unified Diff: runtime/vm/flow_graph_compiler_x64.cc

Issue 2780393005: Move the canonical empty context to the VM isolate. (Closed)
Patch Set: . Created 3 years, 9 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 | « runtime/vm/flow_graph_compiler_mips.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler_x64.cc
diff --git a/runtime/vm/flow_graph_compiler_x64.cc b/runtime/vm/flow_graph_compiler_x64.cc
index 14488c2af07bfd014bbdd616fb929512f3aa6ee7..ae6d6105b9853aec50e4d1f5bd5014daa8f22ddf 100644
--- a/runtime/vm/flow_graph_compiler_x64.cc
+++ b/runtime/vm/flow_graph_compiler_x64.cc
@@ -1046,10 +1046,8 @@ void FlowGraphCompiler::CompileGraph() {
if (function.IsClosureFunction()) {
__ movq(Address(RBP, (slot_base - i) * kWordSize), CTX);
} else {
- const Context& empty_context = Context::ZoneHandle(
- zone(), isolate()->object_store()->empty_context());
__ StoreObject(Address(RBP, (slot_base - i) * kWordSize),
- empty_context);
+ Object::empty_context());
}
} else {
ASSERT(num_locals > 1);
« no previous file with comments | « runtime/vm/flow_graph_compiler_mips.cc ('k') | runtime/vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698