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

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

Issue 2416873002: [wasm] Do not generate a loop stack check upon a decoder error. (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/loop-stack-check.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 d596610eb53bc4b89488d60d724449ec49ff99d6..4b6c86c646713d662c0fc2264cd6dd441fce6083 100644
--- a/src/wasm/ast-decoder.cc
+++ b/src/wasm/ast-decoder.cc
@@ -1635,6 +1635,7 @@ class WasmFullDecoder : public WasmDecoder {
env->control);
}
SsaEnv* loop_body_env = Split(env);
+ if (failed()) return loop_body_env;
titzer 2016/10/13 13:24:42 I think you should move this up to just after the
ahaas 2016/10/13 13:31:55 Done.
builder_->StackCheck(position(), &(loop_body_env->effect),
&(loop_body_env->control));
return loop_body_env;
@@ -1648,6 +1649,7 @@ class WasmFullDecoder : public WasmDecoder {
}
SsaEnv* loop_body_env = Split(env);
+ if (failed()) return loop_body_env;
titzer 2016/10/13 13:24:42 I don't think this check is necessary, since we ha
ahaas 2016/10/13 13:31:55 Done.
builder_->StackCheck(position(), &(loop_body_env->effect),
&(loop_body_env->control));
return loop_body_env;
« no previous file with comments | « no previous file | test/mjsunit/regress/wasm/loop-stack-check.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698