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/frames.h" | 5 #include "src/frames.h" |
6 | 6 |
7 #include <sstream> | 7 #include <sstream> |
8 | 8 |
9 #include "src/ast/ast.h" | 9 #include "src/ast/ast.h" |
10 #include "src/ast/scopeinfo.h" | 10 #include "src/ast/scopeinfo.h" |
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 static_cast<StackFrame::Type>(Smi::cast(marker)->value()); | 479 static_cast<StackFrame::Type>(Smi::cast(marker)->value()); |
480 switch (candidate) { | 480 switch (candidate) { |
481 case ENTRY: | 481 case ENTRY: |
482 case ENTRY_CONSTRUCT: | 482 case ENTRY_CONSTRUCT: |
483 case EXIT: | 483 case EXIT: |
484 case STUB: | 484 case STUB: |
485 case STUB_FAILURE_TRAMPOLINE: | 485 case STUB_FAILURE_TRAMPOLINE: |
486 case INTERNAL: | 486 case INTERNAL: |
487 case CONSTRUCT: | 487 case CONSTRUCT: |
488 case ARGUMENTS_ADAPTOR: | 488 case ARGUMENTS_ADAPTOR: |
| 489 case WASM_TO_JS: |
| 490 case WASM: |
489 return candidate; | 491 return candidate; |
490 case JS_TO_WASM: | 492 case JS_TO_WASM: |
491 case WASM_TO_JS: | |
492 case WASM: | |
493 case JAVA_SCRIPT: | 493 case JAVA_SCRIPT: |
494 case OPTIMIZED: | 494 case OPTIMIZED: |
495 case INTERPRETED: | 495 case INTERPRETED: |
496 default: | 496 default: |
497 // Unoptimized and optimized JavaScript frames, including | 497 // Unoptimized and optimized JavaScript frames, including |
498 // interpreted frames, should never have a StackFrame::Type | 498 // interpreted frames, should never have a StackFrame::Type |
499 // marker. If we find one, we're likely being called from the | 499 // marker. If we find one, we're likely being called from the |
500 // profiler in a bogus stack frame. | 500 // profiler in a bogus stack frame. |
501 return NONE; | 501 return NONE; |
502 } | 502 } |
(...skipping 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1747 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { | 1747 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { |
1748 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); | 1748 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); |
1749 list.Add(frame, zone); | 1749 list.Add(frame, zone); |
1750 } | 1750 } |
1751 return list.ToVector(); | 1751 return list.ToVector(); |
1752 } | 1752 } |
1753 | 1753 |
1754 | 1754 |
1755 } // namespace internal | 1755 } // namespace internal |
1756 } // namespace v8 | 1756 } // namespace v8 |
OLD | NEW |