Revision: 13487
Author:   [email protected]
Date:     Thu Jan 24 00:39:35 2013
Log:      Fix --hydrogen-stats.

V8 crashes with this flag when trying to compile hydrogen stubs.

[email protected]
BUG=

Review URL: https://chromiumcodereview.appspot.com/12045048
http://code.google.com/p/v8/source/detail?r=13487

Modified:
 /branches/bleeding_edge/src/hydrogen.cc

=======================================
--- /branches/bleeding_edge/src/hydrogen.cc     Wed Jan 23 05:52:00 2013
+++ /branches/bleeding_edge/src/hydrogen.cc     Thu Jan 24 00:39:35 2013
@@ -10196,6 +10196,7 @@


 void HStatistics::Initialize(CompilationInfo* info) {
+  if (info->shared_info().is_null()) return;
   source_size_ += info->shared_info()->SourceSize();
 }

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev


Reply via email to