Chromium Code Reviews

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: Don't assign undefined to Handle<Script> Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « src/frames.h ('k') | src/isolate.cc » ('j') | src/isolate.cc » ('J')
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 d9fa728b07a3bcf01b18f93545ced149cea8dd65..46e898b9880bd3bc18a4bad0ce52e718300a06cc 100644
--- a/src/frames.cc
+++ b/src/frames.cc
@@ -1318,6 +1318,15 @@ 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);
+ FrameSummary summary(receiver(), function(), 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') | src/isolate.cc » ('J')

Powered by Google App Engine