| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/isolate.h" | 5 #include "src/isolate.h" |
| 6 | 6 |
| 7 #include <stdlib.h> | 7 #include <stdlib.h> |
| 8 | 8 |
| 9 #include <fstream> // NOLINT(readability/streams) | 9 #include <fstream> // NOLINT(readability/streams) |
| 10 #include <sstream> | 10 #include <sstream> |
| (...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 Handle<FrameArray> elements = factory()->NewFrameArray(initial_size); | 489 Handle<FrameArray> elements = factory()->NewFrameArray(initial_size); |
| 490 | 490 |
| 491 StackTraceHelper helper(this, mode, caller); | 491 StackTraceHelper helper(this, mode, caller); |
| 492 | 492 |
| 493 for (StackFrameIterator iter(this); | 493 for (StackFrameIterator iter(this); |
| 494 !iter.done() && elements->FrameCount() < limit; iter.Advance()) { | 494 !iter.done() && elements->FrameCount() < limit; iter.Advance()) { |
| 495 StackFrame* frame = iter.frame(); | 495 StackFrame* frame = iter.frame(); |
| 496 | 496 |
| 497 switch (frame->type()) { | 497 switch (frame->type()) { |
| 498 case StackFrame::JAVA_SCRIPT: | 498 case StackFrame::JAVA_SCRIPT: |
| 499 case StackFrame::JAVA_SCRIPT_BUILTIN_CONTINUATION: |
| 499 case StackFrame::OPTIMIZED: | 500 case StackFrame::OPTIMIZED: |
| 500 case StackFrame::INTERPRETED: | 501 case StackFrame::INTERPRETED: |
| 501 case StackFrame::BUILTIN: { | 502 case StackFrame::BUILTIN: { |
| 502 JavaScriptFrame* js_frame = JavaScriptFrame::cast(frame); | 503 JavaScriptFrame* js_frame = JavaScriptFrame::cast(frame); |
| 503 // Set initial size to the maximum inlining level + 1 for the outermost | 504 // Set initial size to the maximum inlining level + 1 for the outermost |
| 504 // function. | 505 // function. |
| 505 List<FrameSummary> frames(FLAG_max_inlining_levels + 1); | 506 List<FrameSummary> frames(FLAG_max_inlining_levels + 1); |
| 506 js_frame->Summarize(&frames); | 507 js_frame->Summarize(&frames); |
| 507 for (int i = frames.length() - 1; | 508 for (int i = frames.length() - 1; |
| 508 i >= 0 && elements->FrameCount() < limit; i--) { | 509 i >= 0 && elements->FrameCount() < limit; i--) { |
| (...skipping 3274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3783 // Then check whether this scope intercepts. | 3784 // Then check whether this scope intercepts. |
| 3784 if ((flag & intercept_mask_)) { | 3785 if ((flag & intercept_mask_)) { |
| 3785 intercepted_flags_ |= flag; | 3786 intercepted_flags_ |= flag; |
| 3786 return true; | 3787 return true; |
| 3787 } | 3788 } |
| 3788 return false; | 3789 return false; |
| 3789 } | 3790 } |
| 3790 | 3791 |
| 3791 } // namespace internal | 3792 } // namespace internal |
| 3792 } // namespace v8 | 3793 } // namespace v8 |
| OLD | NEW |