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

Unified Diff: src/wasm/decoder.h

Issue 2404253002: [wasm] Provide better stack traces for asm.js code (Closed)
Patch Set: Rebase & fix paths for windows Created 4 years, 2 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
Index: src/wasm/decoder.h
diff --git a/src/wasm/decoder.h b/src/wasm/decoder.h
index b556f932badd25f22215950ed8784568e76731b3..8c126c5546d5f94b63a20751ea2af90aed92fd08 100644
--- a/src/wasm/decoder.h
+++ b/src/wasm/decoder.h
@@ -279,8 +279,8 @@ class Decoder {
error_msg_.reset();
}
- bool ok() const { return error_pc_ == nullptr; }
- bool failed() const { return !!error_msg_; }
+ bool ok() const { return error_msg_ == nullptr; }
+ bool failed() const { return !ok(); }
bool more() const { return pc_ < limit_; }
const byte* start() { return start_; }

Powered by Google App Engine
This is Rietveld 408576698