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

Side by Side Diff: test/mjsunit/wasm/wasm-constants.js

Issue 2794693002: [wasm] Gate SIMD load/store opcodes with the --wasm-simd-prototype flag. (Closed)
Patch Set: Fix copyright header Created 3 years, 8 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 unified diff | Download patch
« no previous file with comments | « test/mjsunit/regress/wasm/regression-702460.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Flags: --expose-wasm 5 // Flags: --expose-wasm
6 6
7 function bytes() { 7 function bytes() {
8 var buffer = new ArrayBuffer(arguments.length); 8 var buffer = new ArrayBuffer(arguments.length);
9 var view = new Uint8Array(buffer); 9 var view = new Uint8Array(buffer);
10 for (var i = 0; i < arguments.length; i++) { 10 for (var i = 0; i < arguments.length; i++) {
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 let kExprF32ConvertF64 = 0xb6; 308 let kExprF32ConvertF64 = 0xb6;
309 let kExprF64SConvertI32 = 0xb7; 309 let kExprF64SConvertI32 = 0xb7;
310 let kExprF64UConvertI32 = 0xb8; 310 let kExprF64UConvertI32 = 0xb8;
311 let kExprF64SConvertI64 = 0xb9; 311 let kExprF64SConvertI64 = 0xb9;
312 let kExprF64UConvertI64 = 0xba; 312 let kExprF64UConvertI64 = 0xba;
313 let kExprF64ConvertF32 = 0xbb; 313 let kExprF64ConvertF32 = 0xbb;
314 let kExprI32ReinterpretF32 = 0xbc; 314 let kExprI32ReinterpretF32 = 0xbc;
315 let kExprI64ReinterpretF64 = 0xbd; 315 let kExprI64ReinterpretF64 = 0xbd;
316 let kExprF32ReinterpretI32 = 0xbe; 316 let kExprF32ReinterpretI32 = 0xbe;
317 let kExprF64ReinterpretI64 = 0xbf; 317 let kExprF64ReinterpretI64 = 0xbf;
318 let kExprS128LoadMem = 0xc0;
318 319
319 let kTrapUnreachable = 0; 320 let kTrapUnreachable = 0;
320 let kTrapMemOutOfBounds = 1; 321 let kTrapMemOutOfBounds = 1;
321 let kTrapDivByZero = 2; 322 let kTrapDivByZero = 2;
322 let kTrapDivUnrepresentable = 3; 323 let kTrapDivUnrepresentable = 3;
323 let kTrapRemByZero = 4; 324 let kTrapRemByZero = 4;
324 let kTrapFloatUnrepresentable = 5; 325 let kTrapFloatUnrepresentable = 5;
325 let kTrapFuncInvalid = 6; 326 let kTrapFuncInvalid = 6;
326 let kTrapFuncSigMismatch = 7; 327 let kTrapFuncSigMismatch = 7;
327 let kTrapInvalidIndex = 8; 328 let kTrapInvalidIndex = 8;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 eval(code); 364 eval(code);
364 } 365 }
365 } catch (e) { 366 } catch (e) {
366 assertEquals('number', typeof e); 367 assertEquals('number', typeof e);
367 assertEquals(value, e); 368 assertEquals(value, e);
368 // Success. 369 // Success.
369 return; 370 return;
370 } 371 }
371 throw new MjsUnitAssertionError('Did not throw, expected: ' + value); 372 throw new MjsUnitAssertionError('Did not throw, expected: ' + value);
372 } 373 }
OLDNEW
« no previous file with comments | « test/mjsunit/regress/wasm/regression-702460.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698