Chromium Code Reviews| Index: runtime/vm/intermediate_language.h |
| =================================================================== |
| --- runtime/vm/intermediate_language.h (revision 18669) |
| +++ runtime/vm/intermediate_language.h (working copy) |
| @@ -224,13 +224,13 @@ |
| Value* next_; |
| }; |
| - explicit Value(Definition* definition) |
| + explicit Value(Definition* definition, CompileType* type = NULL) |
| : definition_(definition), |
| previous_use_(NULL), |
| next_use_(NULL), |
| instruction_(NULL), |
| use_index_(-1), |
| - reaching_type_(NULL) { } |
| + reaching_type_(type) { } |
| Definition* definition() const { return definition_; } |
| void set_definition(Definition* definition) { definition_ = definition; } |
| @@ -250,8 +250,10 @@ |
| static void AddToList(Value* value, Value** list); |
| void RemoveFromUseList(); |
| - Value* Copy() { return new Value(definition_); } |
| + Value* Copy() {return new Value(definition_); } |
| + Value* CopyWithType() {return new Value(definition_, reaching_type_); } |
|
Vyacheslav Egorov (Google)
2013/02/19 14:45:49
Please add a comment here that CopyWithType should
Florian Schneider
2013/02/19 15:02:06
Done.
|
| + |
| CompileType* Type(); |
| void SetReachingType(CompileType* type) { |