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

Unified Diff: runtime/vm/flow_graph_compiler_ia32.h

Issue 10500005: More shared code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 6 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 | « no previous file | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_compiler_ia32.h
===================================================================
--- runtime/vm/flow_graph_compiler_ia32.h (revision 8249)
+++ runtime/vm/flow_graph_compiler_ia32.h (working copy)
@@ -36,25 +36,24 @@
void CompileGraph();
- void FinalizeComments(const Code& code);
-
void GenerateCallRuntime(intptr_t cid,
intptr_t token_index,
intptr_t try_index,
const RuntimeEntry& entry);
- 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);
- void EmitStaticCall(intptr_t token_index,
- intptr_t try_index,
- const Function& function,
- intptr_t argument_count,
- const Array& argument_names);
+ // Returns pc-offset (in bytes) of the pc after the call, can be used to emit
+ // pc-descriptor information.
+ virtual intptr_t EmitInstanceCall(ExternalLabel* target_label,
+ const ICData& ic_data,
+ const Array& arguments_descriptor,
+ intptr_t argument_count);
+
+ // Returns pc-offset (in bytes) of the pc after the call, can be used to emit
+ // pc-descriptor information.
+ virtual intptr_t EmitStaticCall(const Function& function,
+ const Array& arguments_descriptor,
+ intptr_t argument_count);
+
void GenerateCall(intptr_t token_index,
intptr_t try_index,
const ExternalLabel* label,
@@ -63,18 +62,13 @@
private:
friend class DeoptimizationStub;
- // Bail out of the flow graph compiler. Does not return to the caller.
- void Bailout(const char* reason);
-
virtual void VisitBlocks();
void CopyParameters();
void EmitInstructionPrologue(Instruction* instr);
- bool CanOptimize();
- bool TryIntrinsify();
- void IntrinsifyGetter();
- void IntrinsifySetter();
+ virtual void GenerateInlinedGetter(intptr_t offset);
+ virtual void GenerateInlinedSetter(intptr_t offset);
void EmitComment(Instruction* instr);
void BailoutOnInstruction(Instruction* instr);
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698