Reviewers: fschneider,
Description:
Improved output for bailouts on huge functions
Please review this at http://codereview.chromium.org/9190008/
SVN Base: https://v8.googlecode.com/svn/branches/bleeding_edge
Affected files:
M src/hydrogen.cc
Index: src/hydrogen.cc
diff --git a/src/hydrogen.cc b/src/hydrogen.cc
index
34fd6da060ae05cd576a1c0ee63073d7060ad4b0..afd0fef4d49b657453037a25f0d54ae151cc2b59
100644
--- a/src/hydrogen.cc
+++ b/src/hydrogen.cc
@@ -628,7 +628,11 @@ HGraph::HGraph(CompilationInfo* info)
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