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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 int frames_seen = 0; | 379 int frames_seen = 0; |
380 int sloppy_frames = 0; | 380 int sloppy_frames = 0; |
381 bool encountered_strict_function = false; | 381 bool encountered_strict_function = false; |
382 for (StackFrameIterator iter(this); !iter.done() && frames_seen < limit; | 382 for (StackFrameIterator iter(this); !iter.done() && frames_seen < limit; |
383 iter.Advance()) { | 383 iter.Advance()) { |
384 StackFrame* frame = iter.frame(); | 384 StackFrame* frame = iter.frame(); |
385 | 385 |
386 switch (frame->type()) { | 386 switch (frame->type()) { |
387 case StackFrame::JAVA_SCRIPT: | 387 case StackFrame::JAVA_SCRIPT: |
388 case StackFrame::OPTIMIZED: | 388 case StackFrame::OPTIMIZED: |
389 case StackFrame::INTERPRETED: { | 389 case StackFrame::INTERPRETED: |
| 390 case StackFrame::BUILTIN: { |
390 JavaScriptFrame* js_frame = JavaScriptFrame::cast(frame); | 391 JavaScriptFrame* js_frame = JavaScriptFrame::cast(frame); |
391 // Set initial size to the maximum inlining level + 1 for the outermost | 392 // Set initial size to the maximum inlining level + 1 for the outermost |
392 // function. | 393 // function. |
393 List<FrameSummary> frames(FLAG_max_inlining_levels + 1); | 394 List<FrameSummary> frames(FLAG_max_inlining_levels + 1); |
394 js_frame->Summarize(&frames); | 395 js_frame->Summarize(&frames); |
395 for (int i = frames.length() - 1; i >= 0; i--) { | 396 for (int i = frames.length() - 1; i >= 0; i--) { |
396 Handle<JSFunction> fun = frames[i].function(); | 397 Handle<JSFunction> fun = frames[i].function(); |
397 Handle<Object> recv = frames[i].receiver(); | 398 Handle<Object> recv = frames[i].receiver(); |
398 // Filter out internal frames that we do not want to show. | 399 // Filter out internal frames that we do not want to show. |
399 if (!IsVisibleInStackTrace(*fun, *caller, &seen_caller)) continue; | 400 if (!IsVisibleInStackTrace(*fun, *caller, &seen_caller)) continue; |
(...skipping 2659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3059 // Then check whether this scope intercepts. | 3060 // Then check whether this scope intercepts. |
3060 if ((flag & intercept_mask_)) { | 3061 if ((flag & intercept_mask_)) { |
3061 intercepted_flags_ |= flag; | 3062 intercepted_flags_ |= flag; |
3062 return true; | 3063 return true; |
3063 } | 3064 } |
3064 return false; | 3065 return false; |
3065 } | 3066 } |
3066 | 3067 |
3067 } // namespace internal | 3068 } // namespace internal |
3068 } // namespace v8 | 3069 } // namespace v8 |
OLD | NEW |