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

Unified Diff: runtime/vm/intermediate_language.h

Issue 9463007: Ensure that outgoing constant arguments will be materialized. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 10 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_builder.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
diff --git a/runtime/vm/intermediate_language.h b/runtime/vm/intermediate_language.h
index edd92bbaf56d7c49a322af6d263ebc57f23178df..b5fd87d00891a362ff3ecd5d7e219d2c6ef127fe 100644
--- a/runtime/vm/intermediate_language.h
+++ b/runtime/vm/intermediate_language.h
@@ -42,6 +42,8 @@ class Value : public Computation {
public:
Value() { }
+ virtual bool IsConstant() const { return false; }
+
private:
DISALLOW_COPY_AND_ASSIGN(Value);
};
@@ -139,6 +141,8 @@ class ConstantValue: public Value {
public:
explicit ConstantValue(const Instance& instance) : instance_(instance) { }
+ virtual bool IsConstant() const { return true; }
+
virtual void Print() const;
private:
« no previous file with comments | « runtime/vm/flow_graph_builder.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698