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

Unified Diff: test/mjsunit/wasm/asm-wasm-switch.js

Issue 2134333003: V8. ASM-2-WASM. Migrates asm-wasm-builder to the new asm-typer. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: addresses comments. Created 4 years, 5 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 | « test/mjsunit/wasm/asm-wasm-stdlib.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/wasm/asm-wasm-switch.js
diff --git a/test/mjsunit/wasm/asm-wasm-switch.js b/test/mjsunit/wasm/asm-wasm-switch.js
index bbdb1a20f37fe1eb684dce88dc98e526577f82c4..fac76fd29a0da6b35823af4283e13c26f215ab25 100644
--- a/test/mjsunit/wasm/asm-wasm-switch.js
+++ b/test/mjsunit/wasm/asm-wasm-switch.js
@@ -11,7 +11,7 @@
function caller() {
var ret = 0;
var x = 7;
- switch (x) {
+ switch (x|0) {
case 1: {
return 0;
}
@@ -37,7 +37,7 @@
function caller() {
var ret = 0;
var x = 7;
- switch (x) {
+ switch (x|0) {
case 1: return 0;
case 7: {
ret = 12;
@@ -45,7 +45,7 @@
}
default: return 0;
}
- switch (x) {
+ switch (x|0) {
case 1: return 0;
case 8: return 0;
default: ret = (ret + 11)|0;
@@ -66,7 +66,7 @@
function caller() {
var x = 17;
var ret = 0;
- switch (x) {
+ switch (x|0) {
case 17:
case 14: ret = 39;
case 1: ret = (ret + 3)|0;
@@ -89,10 +89,10 @@
function caller() {
var x = 3;
var y = -13;
- switch (x) {
+ switch (x|0) {
case 1: return 0;
case 3: {
- switch (y) {
+ switch (y|0) {
case 2: return 0;
case -13: return 43;
default: return 0;
« no previous file with comments | « test/mjsunit/wasm/asm-wasm-stdlib.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698