Commit b224651b authored by bradnelson's avatar bradnelson Committed by Commit bot

Fixing invalid asm.js in asm-wasm-literals.js

This was previously undetected due to a now fixed typing bug.

BUG= https://bugs.chromium.org/p/v8/issues/detail?id=4203
TEST=test-asm-validator,asm-wasm
TBR=titzer@chromium.org
LOG=N
NOTRY=true

Review URL: https://codereview.chromium.org/1823333005

Cr-Commit-Position: refs/heads/master@{#35048}
parent e4616fb9
...@@ -109,23 +109,23 @@ function LargeUnsignedLiterals() { ...@@ -109,23 +109,23 @@ function LargeUnsignedLiterals() {
"use asm"; "use asm";
function a() { function a() {
var x = 2147483648; var x = 2147483648;
return +x; return +(x >>> 0);
} }
function b() { function b() {
var x = 2147483649; var x = 2147483649;
return +x; return +(x >>> 0);
} }
function c() { function c() {
var x = 0x80000000; var x = 0x80000000;
return +x; return +(x >>> 0);
} }
function d() { function d() {
var x = 0x80000001; var x = 0x80000001;
return +x; return +(x >>> 0);
} }
function e() { function e() {
var x = 0xffffffff; var x = 0xffffffff;
return +x; return +(x >>> 0);
} }
return {a: a, b: b, c: c, d: d, e: e}; return {a: a, b: b, c: c, d: d, e: e};
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment