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

Side by Side Diff: src/hydrogen.cc

Issue 12045048: Fix --hydrogen-stats. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 11 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 10178 matching lines...) Expand 10 before | Expand all | Expand 10 after
10189 } 10189 }
10190 10190
10191 10191
10192 void HTracer::FlushToFile() { 10192 void HTracer::FlushToFile() {
10193 AppendChars(filename_, *trace_.ToCString(), trace_.length(), false); 10193 AppendChars(filename_, *trace_.ToCString(), trace_.length(), false);
10194 trace_.Reset(); 10194 trace_.Reset();
10195 } 10195 }
10196 10196
10197 10197
10198 void HStatistics::Initialize(CompilationInfo* info) { 10198 void HStatistics::Initialize(CompilationInfo* info) {
10199 if (info->shared_info().is_null()) return;
10199 source_size_ += info->shared_info()->SourceSize(); 10200 source_size_ += info->shared_info()->SourceSize();
10200 } 10201 }
10201 10202
10202 10203
10203 void HStatistics::Print() { 10204 void HStatistics::Print() {
10204 PrintF("Timing results:\n"); 10205 PrintF("Timing results:\n");
10205 int64_t sum = 0; 10206 int64_t sum = 0;
10206 for (int i = 0; i < timing_.length(); ++i) { 10207 for (int i = 0; i < timing_.length(); ++i) {
10207 sum += timing_[i]; 10208 sum += timing_[i];
10208 } 10209 }
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
10306 } 10307 }
10307 } 10308 }
10308 10309
10309 #ifdef DEBUG 10310 #ifdef DEBUG
10310 if (graph_ != NULL) graph_->Verify(false); // No full verify. 10311 if (graph_ != NULL) graph_->Verify(false); // No full verify.
10311 if (allocator_ != NULL) allocator_->Verify(); 10312 if (allocator_ != NULL) allocator_->Verify();
10312 #endif 10313 #endif
10313 } 10314 }
10314 10315
10315 } } // namespace v8::internal 10316 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698