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

Unified Diff: src/frames.cc

Issue 1865553004: [wasm] Do also output WASM frames on detailed stack traces (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@improve-asserts
Patch Set: Fix gcmole reported issue Created 4 years, 8 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 | « src/frames.h ('k') | src/isolate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/frames.cc
diff --git a/src/frames.cc b/src/frames.cc
index 6f5176261b3881565bf5b8631c8bfd82deadb5d6..d4350ae012b03c72472f8384541217350592ed1e 100644
--- a/src/frames.cc
+++ b/src/frames.cc
@@ -1333,6 +1333,16 @@ JSFunction* WasmFrame::function() const {
return *fun;
}
+void WasmFrame::Summarize(List<FrameSummary>* functions) const {
+ DCHECK(functions->length() == 0);
+ Code* code = LookupCode();
+ int offset = static_cast<int>(pc() - code->instruction_start());
+ AbstractCode* abstract_code = AbstractCode::cast(code);
+ Handle<JSFunction> fun(function(), isolate());
+ FrameSummary summary(receiver(), *fun, abstract_code, offset, false);
+ functions->Add(summary);
+}
+
void WasmFrame::Iterate(ObjectVisitor* v) const { IterateCompiledFrame(v); }
Address WasmFrame::GetCallerStackPointer() const {
« no previous file with comments | « src/frames.h ('k') | src/isolate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698