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

Unified Diff: runtime/vm/flow_graph_compiler_ia32.h

Issue 11418046: First part of static call cleanup: store static call targets into code object, referenced by code-o… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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
Index: runtime/vm/flow_graph_compiler_ia32.h
===================================================================
--- runtime/vm/flow_graph_compiler_ia32.h (revision 15037)
+++ runtime/vm/flow_graph_compiler_ia32.h (working copy)
@@ -192,6 +192,7 @@
void FinalizeStackmaps(const Code& code);
void FinalizeVarDescriptors(const Code& code);
void FinalizeComments(const Code& code);
+ void FinalizeStaticCallTargetsTable(const Code& code);
const Bool& bool_true() const { return bool_true_; }
const Bool& bool_false() const { return bool_false_; }
@@ -227,6 +228,8 @@
Register index);
private:
+ void AddStaticCallTarget(const Function& function);
+
void GenerateDeferredCode();
void EmitInstructionPrologue(Instruction* instr);
@@ -320,6 +323,8 @@
GrowableArray<BlockInfo*> block_info_;
GrowableArray<CompilerDeoptInfo*> deopt_infos_;
GrowableArray<SlowPathCode*> slow_path_code_;
+ // Stores tuples: code offset, function.
+ const GrowableObjectArray& static_calls_target_table_;
const bool is_optimizing_;
// Set to true if optimized code has IC calls.
bool may_reoptimize_;

Powered by Google App Engine
This is Rietveld 408576698