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

Unified Diff: src/wasm/ast-decoder.cc

Issue 2403013002: [wasm] Do not create TF nodes during verification (Closed)
Patch Set: 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
« no previous file with comments | « no previous file | test/mjsunit/regress/wasm/regression-654377.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wasm/ast-decoder.cc
diff --git a/src/wasm/ast-decoder.cc b/src/wasm/ast-decoder.cc
index 025ccdf1d7bfc0d2c159e511600b0d313cf0fa9b..db881857ab9a51e80add2bbc587fc855d93a9dfd 100644
--- a/src/wasm/ast-decoder.cc
+++ b/src/wasm/ast-decoder.cc
@@ -830,7 +830,9 @@ class WasmFullDecoder : public WasmDecoder {
case kExprBr: {
BreakDepthOperand operand(this, pc_);
if (Validate(pc_, operand, control_)) {
- BreakTo(operand.depth);
+ if (build()) {
titzer 2016/10/10 14:16:41 I don't think this is right place to fix it; it sh
+ BreakTo(operand.depth);
+ }
}
len = 1 + operand.length;
EndControl();
« no previous file with comments | « no previous file | test/mjsunit/regress/wasm/regression-654377.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698