Index: src/frames.cc |
diff --git a/src/frames.cc b/src/frames.cc |
index f0fa58d27bca016dc439e0471e5aa690fe3b535f..117f63ce3f471ee777b933f236e24b6fb1eb9a85 100644 |
--- a/src/frames.cc |
+++ b/src/frames.cc |
@@ -1461,9 +1461,8 @@ Address WasmFrame::GetCallerStackPointer() const { |
} |
Object* WasmFrame::wasm_obj() const { |
- FixedArray* deopt_data = LookupCode()->deoptimization_data(); |
- DCHECK(deopt_data->length() == 2); |
- return deopt_data->get(0); |
+ return wasm::GetOwningWasmInstance(*isolate()->factory()->undefined_value(), |
+ LookupCode()); |
} |
uint32_t WasmFrame::function_index() const { |