Index: src/runtime.cc |
=================================================================== |
--- src/runtime.cc (revision 7492) |
+++ src/runtime.cc (working copy) |
@@ -11615,7 +11615,9 @@ |
if (ShowFrameInStackTrace(raw_frame, *caller, &seen_caller)) { |
frames_seen++; |
JavaScriptFrame* frame = JavaScriptFrame::cast(raw_frame); |
- List<FrameSummary> frames(3); // Max 2 levels of inlining. |
+ // Set initial size to the maximum inlining level + 1 for the outermost |
+ // function. |
+ List<FrameSummary> frames(Compiler::kMaxInliningLevels + 1); |
frame->Summarize(&frames); |
for (int i = frames.length() - 1; i >= 0; i--) { |
if (cursor + 4 > elements->length()) { |