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

Unified Diff: runtime/vm/flow_graph_compiler_arm.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.cc ('k') | runtime/vm/flow_graph_compiler_arm64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler_arm.cc
diff --git a/runtime/vm/flow_graph_compiler_arm.cc b/runtime/vm/flow_graph_compiler_arm.cc
index 1b50fdff168c728fa59e2359e5b84ab20ba05d9a..a948896cb9313ed3e2e02c9b9ec230955c6bd782 100644
--- a/runtime/vm/flow_graph_compiler_arm.cc
+++ b/runtime/vm/flow_graph_compiler_arm.cc
@@ -1047,9 +1047,7 @@ void FlowGraphCompiler::CompileGraph() {
if (function.IsClosureFunction()) {
__ StoreToOffset(kWord, CTX, FP, (slot_base - i) * kWordSize);
} else {
- const Context& empty_context = Context::ZoneHandle(
- zone(), isolate()->object_store()->empty_context());
- __ LoadObject(R1, empty_context);
+ __ LoadObject(R1, Object::empty_context());
__ StoreToOffset(kWord, R1, FP, (slot_base - i) * kWordSize);
}
} else {
« no previous file with comments | « runtime/vm/flow_graph.cc ('k') | runtime/vm/flow_graph_compiler_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698