Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(560)

Unified Diff: src/isolate.cc

Issue 1838933002: wasm: hook abstract code (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@is_wasm
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698