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

Side by Side Diff: src/hydrogen.cc

Issue 1350293002: Fix --hydrogen-stats crashing on null_ptr for shared_info (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: conditions are hard Created 5 years, 3 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
« no previous file with comments | « src/compiler.h ('k') | 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 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/hydrogen.h" 5 #include "src/hydrogen.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 8
9 #include "src/allocation-site-scopes.h" 9 #include "src/allocation-site-scopes.h"
10 #include "src/ast-numbering.h" 10 #include "src/ast-numbering.h"
(...skipping 13445 matching lines...) Expand 10 before | Expand all | Expand 10 after
13456 13456
13457 13457
13458 void HTracer::FlushToFile() { 13458 void HTracer::FlushToFile() {
13459 AppendChars(filename_.start(), trace_.ToCString().get(), trace_.length(), 13459 AppendChars(filename_.start(), trace_.ToCString().get(), trace_.length(),
13460 false); 13460 false);
13461 trace_.Reset(); 13461 trace_.Reset();
13462 } 13462 }
13463 13463
13464 13464
13465 void HStatistics::Initialize(CompilationInfo* info) { 13465 void HStatistics::Initialize(CompilationInfo* info) {
13466 if (info->shared_info().is_null()) return; 13466 if (!info->has_shared_info()) return;
13467 source_size_ += info->shared_info()->SourceSize(); 13467 source_size_ += info->shared_info()->SourceSize();
13468 } 13468 }
13469 13469
13470 13470
13471 void HStatistics::Print() { 13471 void HStatistics::Print() {
13472 PrintF( 13472 PrintF(
13473 "\n" 13473 "\n"
13474 "----------------------------------------" 13474 "----------------------------------------"
13475 "----------------------------------------\n" 13475 "----------------------------------------\n"
13476 "--- Hydrogen timing results:\n" 13476 "--- Hydrogen timing results:\n"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
13544 isolate()->GetHTracer()->TraceHydrogen(name(), graph_); 13544 isolate()->GetHTracer()->TraceHydrogen(name(), graph_);
13545 } 13545 }
13546 13546
13547 #ifdef DEBUG 13547 #ifdef DEBUG
13548 graph_->Verify(false); // No full verify. 13548 graph_->Verify(false); // No full verify.
13549 #endif 13549 #endif
13550 } 13550 }
13551 13551
13552 } // namespace internal 13552 } // namespace internal
13553 } // namespace v8 13553 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698