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

Unified Diff: runtime/vm/flow_graph_compiler_x64.h

Issue 10500005: More shared code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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
Index: runtime/vm/flow_graph_compiler_x64.h
===================================================================
--- runtime/vm/flow_graph_compiler_x64.h (revision 8214)
+++ runtime/vm/flow_graph_compiler_x64.h (working copy)
@@ -33,8 +33,6 @@
void CompileGraph();
- void FinalizeComments(const Code& code);
-
void GenerateCallRuntime(intptr_t cid,
intptr_t token_index,
intptr_t try_index,
@@ -51,9 +49,6 @@
static const int kLocalsOffsetFromFP = (-1 * kWordSize);
- // Bail out of the flow graph compiler. Does not return to the caller.
- void Bailout(const char* reason);
-
virtual void VisitBlocks();
void EmitInstructionPrologue(Instruction* instr);
@@ -63,21 +58,14 @@
void EmitComment(Instruction* instr);
- // Emit an instance call.
- void EmitInstanceCall(intptr_t cid,
- intptr_t token_index,
- intptr_t try_index,
- const String& function_name,
- intptr_t argument_count,
- const Array& argument_names,
- intptr_t checked_argument_count);
+ virtual intptr_t EmitInstanceCall(ExternalLabel* target_label,
+ const ICData& ic_data,
+ const Array& arguments_descriptor,
+ intptr_t argument_count);
- // Emit a static call.
- void EmitStaticCall(intptr_t token_index,
- intptr_t try_index,
- const Function& function,
- intptr_t argument_count,
- const Array& argument_names);
+ virtual intptr_t EmitStaticCall(const Function& function,
+ const Array& arguments_descriptor,
+ intptr_t argument_count);
// Infrastructure copied from class CodeGenerator.
void GenerateCall(intptr_t token_index,
@@ -136,10 +124,8 @@
void CopyParameters();
- bool TryIntrinsify();
- void IntrinsifyGetter();
- void IntrinsifySetter();
- static bool CanOptimize();
+ virtual void IntrinsifyGetter();
+ virtual void IntrinsifySetter();
DISALLOW_COPY_AND_ASSIGN(FlowGraphCompiler);
};

Powered by Google App Engine
This is Rietveld 408576698