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/intermediate_language.h

Issue 10916082: Make register allocator to disregard constant computation with no uses. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 3 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_allocator.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.h
diff --git a/runtime/vm/intermediate_language.h b/runtime/vm/intermediate_language.h
index 1cc6966ac24fd34ccc5f57acace07235d21ff98c..87b420b463125c73836650b2bb2f4674ed57f038 100644
--- a/runtime/vm/intermediate_language.h
+++ b/runtime/vm/intermediate_language.h
@@ -19,6 +19,7 @@ class BitVector;
class BlockEntryInstr;
class BufferFormatter;
class ComparisonComp;
+class ConstantComp;
class Computation;
class ControlInstruction;
class Definition;
@@ -863,6 +864,10 @@ class Definition : public Instruction {
// Insert this definition after 'prev'.
void InsertAfter(Instruction* prev);
+ // If this definition is a bind of a constant return it.
+ // Otherwise return NULL.
+ ConstantComp* AsConstant();
+
private:
intptr_t temp_index_;
intptr_t ssa_temp_index_;
« no previous file with comments | « runtime/vm/flow_graph_allocator.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698