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

Unified Diff: runtime/vm/intermediate_language.h

Issue 10806089: Add HasSSATemp and an assert to ssa_temp_idnex setter. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 5 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/il_printer.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 9849)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -2113,7 +2113,11 @@
void set_temp_index(intptr_t index) { temp_index_ = index; }
intptr_t ssa_temp_index() const { return ssa_temp_index_; }
- void set_ssa_temp_index(intptr_t index) { ssa_temp_index_ = index; }
+ void set_ssa_temp_index(intptr_t index) {
+ ASSERT(index >= 0);
+ ssa_temp_index_ = index;
+ }
+ bool HasSSATemp() const { return ssa_temp_index_ >= 0; }
private:
intptr_t temp_index_;
« no previous file with comments | « runtime/vm/il_printer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698