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

Unified Diff: runtime/vm/intermediate_language.h

Issue 290993003: VM: Remove unnecessary field use_kind from IL instructions. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 7 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') | 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
===================================================================
--- runtime/vm/intermediate_language.h (revision 36349)
+++ runtime/vm/intermediate_language.h (working copy)
@@ -1749,8 +1749,6 @@
// Abstract super-class of all instructions that define a value (Bind, Phi).
class Definition : public Instruction {
public:
- enum UseKind { kEffect, kValue };
-
Definition();
virtual Definition* AsDefinition() { return this; }
@@ -1770,11 +1768,11 @@
intptr_t temp_index() const { return temp_index_; }
void set_temp_index(intptr_t index) { temp_index_ = index; }
void ClearTempIndex() { temp_index_ = -1; }
+ bool HasTemp() const { return temp_index_ >= 0; }
intptr_t ssa_temp_index() const { return ssa_temp_index_; }
void set_ssa_temp_index(intptr_t index) {
ASSERT(index >= 0);
- ASSERT(is_used());
ssa_temp_index_ = index;
}
bool HasSSATemp() const { return ssa_temp_index_ >= 0; }
srdjan 2014/05/20 16:03:48 Do we want to make a comment somewhere that only d
Florian Schneider 2014/05/21 14:03:45 In SSA form, we have use lists to check where a de
@@ -1783,8 +1781,6 @@
return (representation() == kPairOfTagged) ||
(representation() == kPairOfUnboxedDouble);
}
- bool is_used() const { return (use_kind_ != kEffect); }
- void set_use_kind(UseKind kind) { use_kind_ = kind; }
// Compile time type of the definition, which may be requested before type
// propagation during graph building.
@@ -1910,7 +1906,6 @@
intptr_t ssa_temp_index_;
Value* input_use_list_;
Value* env_use_list_;
- UseKind use_kind_;
Object& constant_value_;
@@ -2072,7 +2067,6 @@
public:
explicit PushArgumentInstr(Value* value) {
SetInputAt(0, value);
- set_use_kind(kEffect); // Override the default.
}
DECLARE_INSTRUCTION(PushArgument)
« no previous file with comments | « runtime/vm/il_printer.cc ('k') | runtime/vm/intermediate_language.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698