Revision: 10395
Author:   [email protected]
Date:     Wed Jan 11 23:17:46 2012
Log:      Improved output for bailouts on huge functions

Review URL: http://codereview.chromium.org/9190008
http://code.google.com/p/v8/source/detail?r=10395

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

=======================================
--- /branches/bleeding_edge/src/hydrogen.cc     Wed Jan 11 07:43:33 2012
+++ /branches/bleeding_edge/src/hydrogen.cc     Wed Jan 11 23:17:46 2012
@@ -628,7 +628,11 @@
 Handle<Code> HGraph::Compile(CompilationInfo* info) {
   int values = GetMaximumValueID();
   if (values > LAllocator::max_initial_value_ids()) {
-    if (FLAG_trace_bailout) PrintF("Function is too big\n");
+    if (FLAG_trace_bailout) {
+      SmartArrayPointer<char> name(
+          info->shared_info()->DebugName()->ToCString());
+      PrintF("Function @\"%s\" is too big.\n", *name);
+    }
     return Handle<Code>::null();
   }

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

Reply via email to