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

Unified 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/compiler.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 52184b36e679937eb341a6f9d9f5ebda29494c17..3dd6c0cc5fc5ed7708eebf7efd4d741be9c1a333 100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -13463,7 +13463,7 @@ void HTracer::FlushToFile() {
void HStatistics::Initialize(CompilationInfo* info) {
- if (info->shared_info().is_null()) return;
+ if (!info->has_shared_info()) return;
source_size_ += info->shared_info()->SourceSize();
}
« 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