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

Unified Diff: runtime/vm/flow_graph_compiler.cc

Issue 608913002: Track references to allocation stubs via static_calls_table, instead of keeping two referencers ali… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 3 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.h ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler.cc
===================================================================
--- runtime/vm/flow_graph_compiler.cc (revision 40735)
+++ runtime/vm/flow_graph_compiler.cc (working copy)
@@ -540,6 +540,18 @@
}
+void FlowGraphCompiler::AddStubCallTarget(const Code& code) {
+ ASSERT(Code::kSCallTableEntryLength == 3);
+ ASSERT(Code::kSCallTableOffsetEntry == 0);
+ static_calls_target_table_.Add(
+ Smi::Handle(Smi::New(assembler()->CodeSize())));
+ ASSERT(Code::kSCallTableFunctionEntry == 1);
+ static_calls_target_table_.Add(Function::Handle());
+ ASSERT(Code::kSCallTableCodeEntry == 2);
+ static_calls_target_table_.Add(code);
+}
+
+
void FlowGraphCompiler::AddDeoptIndexAtCall(intptr_t deopt_id,
intptr_t token_pos) {
ASSERT(is_optimizing());
« no previous file with comments | « runtime/vm/flow_graph_compiler.h ('k') | runtime/vm/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698