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.h" | 9 #include "src/ast.h" |
10 #include "src/base/bits.h" | 10 #include "src/base/bits.h" |
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 Code* code_obj = GetContainingCode(iterator->isolate(), *(state->pc_address)); | 429 Code* code_obj = GetContainingCode(iterator->isolate(), *(state->pc_address)); |
430 | 430 |
431 Object* marker = | 431 Object* marker = |
432 Memory::Object_at(state->fp + StandardFrameConstants::kMarkerOffset); | 432 Memory::Object_at(state->fp + StandardFrameConstants::kMarkerOffset); |
433 if (code_obj != nullptr) { | 433 if (code_obj != nullptr) { |
434 switch (code_obj->kind()) { | 434 switch (code_obj->kind()) { |
435 case Code::FUNCTION: | 435 case Code::FUNCTION: |
436 return JAVA_SCRIPT; | 436 return JAVA_SCRIPT; |
437 case Code::OPTIMIZED_FUNCTION: | 437 case Code::OPTIMIZED_FUNCTION: |
438 return OPTIMIZED; | 438 return OPTIMIZED; |
| 439 case Code::WASM_FUNCTION: |
| 440 return STUB; |
439 case Code::BUILTIN: | 441 case Code::BUILTIN: |
440 if (!marker->IsSmi()) { | 442 if (!marker->IsSmi()) { |
441 if (StandardFrame::IsArgumentsAdaptorFrame(state->fp)) { | 443 if (StandardFrame::IsArgumentsAdaptorFrame(state->fp)) { |
442 // An adapter frame has a special SMI constant for the context and | 444 // An adapter frame has a special SMI constant for the context and |
443 // is not distinguished through the marker. | 445 // is not distinguished through the marker. |
444 return ARGUMENTS_ADAPTOR; | 446 return ARGUMENTS_ADAPTOR; |
445 } else { | 447 } else { |
446 // The interpreter entry trampoline has a non-SMI marker. | 448 // The interpreter entry trampoline has a non-SMI marker. |
447 DCHECK(code_obj->is_interpreter_entry_trampoline()); | 449 DCHECK(code_obj->is_interpreter_entry_trampoline()); |
448 return INTERPRETED; | 450 return INTERPRETED; |
(...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1591 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { | 1593 for (StackFrameIterator it(isolate); !it.done(); it.Advance()) { |
1592 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); | 1594 StackFrame* frame = AllocateFrameCopy(it.frame(), zone); |
1593 list.Add(frame, zone); | 1595 list.Add(frame, zone); |
1594 } | 1596 } |
1595 return list.ToVector(); | 1597 return list.ToVector(); |
1596 } | 1598 } |
1597 | 1599 |
1598 | 1600 |
1599 } // namespace internal | 1601 } // namespace internal |
1600 } // namespace v8 | 1602 } // namespace v8 |
OLD | NEW |