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

Unified Diff: src/hydrogen.cc

Issue 17590005: Drop (mis)use of HPhase in full code gen. (Closed) Base URL: git@github.com:v8/v8.git@master
Patch Set: Fix GCC warning about uninitialized start_ticks variable. Created 7 years, 6 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 | « src/hydrogen.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
« no previous file with comments | « src/hydrogen.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698