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

Unified Diff: runtime/vm/intermediate_language.h

Issue 10458050: Move ReturnInstr to new scheme (x64 and ia32) and implement more code in new ia32 compiler. (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
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.h
===================================================================
--- runtime/vm/intermediate_language.h (revision 8165)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -1734,10 +1734,10 @@
};
-class ReturnInstr : public Instruction {
+class ReturnInstr : public InstructionWithInputs {
public:
ReturnInstr(intptr_t token_index, Value* value)
- : token_index_(token_index), value_(value) {
+ : InstructionWithInputs(), token_index_(token_index), value_(value) {
ASSERT(value_ != NULL);
}
@@ -1749,6 +1749,10 @@
virtual Instruction* StraightLineSuccessor() const { return NULL; }
virtual void SetSuccessor(Instruction* instr) { UNREACHABLE(); }
+ virtual LocationSummary* MakeLocationSummary() const;
+
+ virtual void EmitNativeCode(FlowGraphCompiler* compiler);
+
private:
const intptr_t token_index_;
Value* value_;
@@ -1762,7 +1766,8 @@
ThrowInstr(intptr_t token_index,
intptr_t try_index,
Value* exception)
- : token_index_(token_index),
+ : InstructionWithInputs(),
+ token_index_(token_index),
try_index_(try_index),
exception_(exception),
successor_(NULL) {
@@ -1802,7 +1807,8 @@
intptr_t try_index,
Value* exception,
Value* stack_trace)
- : token_index_(token_index),
+ : InstructionWithInputs(),
+ token_index_(token_index),
try_index_(try_index),
exception_(exception),
stack_trace_(stack_trace),
@@ -1845,7 +1851,8 @@
class BranchInstr : public InstructionWithInputs {
public:
explicit BranchInstr(Value* value)
- : value_(value),
+ : InstructionWithInputs(),
+ value_(value),
true_successor_(NULL),
false_successor_(NULL) { }
« no previous file with comments | « runtime/vm/flow_graph_optimizer.cc ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698