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

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

Issue 2701003003: [V8] Implement remaining SIMD operations on ARM. (Closed)
Patch Set: Created 3 years, 10 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 | « src/wasm/function-body-decoder-impl.h ('k') | src/wasm/wasm-opcodes.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/wasm/module-decoder.cc
diff --git a/src/wasm/module-decoder.cc b/src/wasm/module-decoder.cc
index e0b3bba1e1aecef26ff973feb4b71f5c7c68536a..93a2684cdebbf4f76c7e1ec7dc1982c638115601 100644
--- a/src/wasm/module-decoder.cc
+++ b/src/wasm/module-decoder.cc
@@ -1030,14 +1030,21 @@ class ModuleDecoder : public Decoder {
return kWasmF32;
case kLocalF64:
return kWasmF64;
- case kLocalS128:
+ default:
if (origin_ != kAsmJsOrigin && FLAG_wasm_simd_prototype) {
- return kWasmS128;
- } else {
- error(pc_ - 1, "invalid local type");
- return kWasmStmt;
+ switch (t) {
+ case kLocalS128:
+ return kWasmS128;
+ case kLocalS1x4:
+ return kWasmS1x4;
+ case kLocalS1x8:
+ return kWasmS1x8;
+ case kLocalS1x16:
+ return kWasmS1x16;
+ default:
+ break;
+ }
}
- default:
error(pc_ - 1, "invalid local type");
return kWasmStmt;
}
« no previous file with comments | « src/wasm/function-body-decoder-impl.h ('k') | src/wasm/wasm-opcodes.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698