Index: src/frames.cc |
diff --git a/src/frames.cc b/src/frames.cc |
index 50a2e21a055d7a9d8f11442f6cfa024d555c71dc..b88b73da8db84d033ea628ed312e0a25d72f8123 100644 |
--- a/src/frames.cc |
+++ b/src/frames.cc |
@@ -134,12 +134,10 @@ StackFrame* StackFrameIteratorBase::SingletonFor(StackFrame::Type type) { |
#undef FRAME_TYPE_CASE |
} |
- |
// ------------------------------------------------------------------------- |
- |
-JavaScriptFrameIterator::JavaScriptFrameIterator( |
- Isolate* isolate, StackFrame::Id id) |
+JavaScriptFrameIterator::JavaScriptFrameIterator(Isolate* isolate, |
+ StackFrame::Id id) |
: iterator_(isolate) { |
while (!done()) { |
Advance(); |
@@ -446,7 +444,7 @@ StackFrame::Type StackFrame::ComputeType(const StackFrameIteratorBase* iterator, |
case Code::OPTIMIZED_FUNCTION: |
return OPTIMIZED; |
case Code::WASM_FUNCTION: |
- return STUB; |
+ return WASM; |
case Code::BUILTIN: |
if (!marker->IsSmi()) { |
if (StandardFrame::IsArgumentsAdaptorFrame(state->fp)) { |
@@ -1222,6 +1220,20 @@ void StackFrame::PrintIndex(StringStream* accumulator, |
accumulator->Add((mode == OVERVIEW) ? "%5d: " : "[%d]: ", index); |
} |
+void WasmFrame::Print(StringStream* accumulator, PrintMode mode, |
+ int index) const { |
+ accumulator->Add("wasm frame"); |
+} |
+ |
+Code* WasmFrame::unchecked_code() const { |
+ return static_cast<Code*>(isolate()->FindCodeObject(pc())); |
+} |
+ |
+void WasmFrame::Iterate(ObjectVisitor* v) const { IterateCompiledFrame(v); } |
+ |
+Address WasmFrame::GetCallerStackPointer() const { |
+ return fp() + ExitFrameConstants::kCallerSPDisplacement; |
+} |
namespace { |