Index: src/hydrogen.cc |
diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
index 33557a29f2e77314f0730606c1a0af671648984c..a3c8ad1fc11d6a2621f89aeaa90782a765d10cb0 100644 |
--- a/src/hydrogen.cc |
+++ b/src/hydrogen.cc |
@@ -11499,27 +11499,20 @@ void HStatistics::Print() { |
void HStatistics::SaveTiming(const char* name, int64_t ticks, unsigned size) { |
- if (name == HPhase::kFullCodeGen) { |
- full_code_gen_ += ticks; |
- } else { |
- total_size_ += size; |
- for (int i = 0; i < names_.length(); ++i) { |
- if (strcmp(names_[i], name) == 0) { |
- timing_[i] += ticks; |
- sizes_[i] += size; |
- return; |
- } |
+ total_size_ += size; |
+ for (int i = 0; i < names_.length(); ++i) { |
+ if (strcmp(names_[i], name) == 0) { |
+ timing_[i] += ticks; |
+ sizes_[i] += size; |
+ return; |
} |
- names_.Add(name); |
- timing_.Add(ticks); |
- sizes_.Add(size); |
} |
+ names_.Add(name); |
+ timing_.Add(ticks); |
+ sizes_.Add(size); |
} |
-const char* const HPhase::kFullCodeGen = "Full code generator"; |
- |
- |
HPhase::HPhase(const char* name, Isolate* isolate, Zone* zone) { |
Init(isolate, name, zone, NULL, NULL, NULL); |
} |