Index: src/isolate.cc |
diff --git a/src/isolate.cc b/src/isolate.cc |
index b96765757413648dd3353a352c417d1eb70da7eb..640238d111c25746b88a163e3ced396adc6d0247 100644 |
--- a/src/isolate.cc |
+++ b/src/isolate.cc |
@@ -429,13 +429,17 @@ Handle<Object> Isolate::CaptureSimpleStackTrace(Handle<JSObject> error_object, |
} break; |
case StackFrame::WASM: { |
+ WasmFrame* wasm_frame = WasmFrame::cast(frame); |
JF
2016/03/28 23:18:11
Note: this relies on the other change https://code
|
+ Code* code = wasm_frame->unchecked_code(); |
+ Handle<AbstractCode> abstract_code = |
+ Handle<AbstractCode>(AbstractCode::cast(code)); |
Handle<JSFunction> fun = factory()->NewFunction( |
factory()->NewStringFromAsciiChecked("<WASM>")); |
elements = MaybeGrow(this, elements, cursor, cursor + 4); |
// TODO(jfb) Pass module object. |
elements->set(cursor++, *factory()->undefined_value()); |
elements->set(cursor++, *fun); |
- elements->set(cursor++, Internals::IntToSmi(0)); |
+ elements->set(cursor++, *abstract_code); |
elements->set(cursor++, Internals::IntToSmi(0)); |
frames_seen++; |
} break; |