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

Unified Diff: runtime/vm/intermediate_language.h

Issue 10038032: Add node id for return node. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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_x64.cc ('k') | no next file » | 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 6467)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -1267,8 +1267,8 @@
class ReturnInstr : public Instruction {
public:
- ReturnInstr(Value* value, intptr_t token_index)
- : value_(value), token_index_(token_index) {
+ ReturnInstr(intptr_t node_id, intptr_t token_index, Value* value)
+ : node_id_(node_id), token_index_(token_index), value_(value) {
ASSERT(value_ != NULL);
}
@@ -1276,13 +1276,15 @@
Value* value() const { return value_; }
intptr_t token_index() const { return token_index_; }
+ intptr_t node_id() const { return node_id_; }
virtual Instruction* StraightLineSuccessor() const { return NULL; }
virtual void SetSuccessor(Instruction* instr) { UNREACHABLE(); }
private:
+ const intptr_t node_id_;
+ const intptr_t token_index_;
Value* value_;
- intptr_t token_index_;
DISALLOW_COPY_AND_ASSIGN(ReturnInstr);
};
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698