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

Unified Diff: src/messages.cc

Issue 2563673002: [wasm] Generate correct locations for error messages (Closed)
Patch Set: Created 4 years 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
« src/d8.cc ('K') | « src/isolate.cc ('k') | test/message/wasm-trap.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/messages.cc
diff --git a/src/messages.cc b/src/messages.cc
index 1cb455efb56bcddc01576054648af72c20c13328..443399c8a078cad1c6c36824fd3581a8efd3a11a 100644
--- a/src/messages.cc
+++ b/src/messages.cc
@@ -673,6 +673,7 @@ MaybeHandle<String> WasmStackFrame::ToString() {
}
int WasmStackFrame::GetPosition() const {
+ // TODO(wasm): Clean this up (bug 5007).
return (offset_ < 0) ? (-1 - offset_) : code_->SourcePosition(offset_);
}
« src/d8.cc ('K') | « src/isolate.cc ('k') | test/message/wasm-trap.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698