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

Unified Diff: runtime/vm/flow_graph_compiler_mips.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_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler_mips.cc
diff --git a/runtime/vm/flow_graph_compiler_mips.cc b/runtime/vm/flow_graph_compiler_mips.cc
index a765a6053eeb77a0aeb56a72d40da05df6407149..56e934f72fe27cccbf5a4e9bb2af453f77ece00c 100644
--- a/runtime/vm/flow_graph_compiler_mips.cc
+++ b/runtime/vm/flow_graph_compiler_mips.cc
@@ -1066,9 +1066,7 @@ void FlowGraphCompiler::CompileGraph() {
if (function.IsClosureFunction()) {
__ sw(CTX, Address(FP, (slot_base - i) * kWordSize));
} else {
- const Context& empty_context = Context::ZoneHandle(
- zone(), isolate()->object_store()->empty_context());
- __ LoadObject(V1, empty_context);
+ __ LoadObject(V1, Object::empty_context());
__ sw(V1, Address(FP, (slot_base - i) * kWordSize));
}
} else {
« no previous file with comments | « runtime/vm/flow_graph_compiler_ia32.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698