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

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

Issue 2235013002: Revert runtime lowering of wasm SIMD ops (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 4 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/wasm/test-wasm-simd-ops.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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 var kExprF64SConvertI64 = 0xb0; 300 var kExprF64SConvertI64 = 0xb0;
301 var kExprF64UConvertI64 = 0xb1; 301 var kExprF64UConvertI64 = 0xb1;
302 var kExprF64ConvertF32 = 0xb2; 302 var kExprF64ConvertF32 = 0xb2;
303 var kExprF64ReinterpretI64 = 0xb3; 303 var kExprF64ReinterpretI64 = 0xb3;
304 var kExprI32ReinterpretF32 = 0xb4; 304 var kExprI32ReinterpretF32 = 0xb4;
305 var kExprI64ReinterpretF64 = 0xb5; 305 var kExprI64ReinterpretF64 = 0xb5;
306 var kExprI32Ror = 0xb6; 306 var kExprI32Ror = 0xb6;
307 var kExprI32Rol = 0xb7; 307 var kExprI32Rol = 0xb7;
308 var kExprI64Ror = 0xb8; 308 var kExprI64Ror = 0xb8;
309 var kExprI64Rol = 0xb9; 309 var kExprI64Rol = 0xb9;
310 var kExprSimdPrefix = 0xe5;
311 var kExprI32x4Splat = 0x1b;
312 var kExprI32x4ExtractLane = 0x1c;
313 310
314 var kTrapUnreachable = 0; 311 var kTrapUnreachable = 0;
315 var kTrapMemOutOfBounds = 1; 312 var kTrapMemOutOfBounds = 1;
316 var kTrapDivByZero = 2; 313 var kTrapDivByZero = 2;
317 var kTrapDivUnrepresentable = 3; 314 var kTrapDivUnrepresentable = 3;
318 var kTrapRemByZero = 4; 315 var kTrapRemByZero = 4;
319 var kTrapFloatUnrepresentable = 5; 316 var kTrapFloatUnrepresentable = 5;
320 var kTrapFuncInvalid = 6; 317 var kTrapFuncInvalid = 6;
321 var kTrapFuncSigMismatch = 7; 318 var kTrapFuncSigMismatch = 7;
322 var kTrapInvalidIndex = 8; 319 var kTrapInvalidIndex = 8;
(...skipping 20 matching lines...) Expand all
343 } 340 }
344 threwException = false; 341 threwException = false;
345 } catch (e) { 342 } catch (e) {
346 assertEquals("object", typeof e); 343 assertEquals("object", typeof e);
347 assertEquals(kTrapMsgs[trap], e.message); 344 assertEquals(kTrapMsgs[trap], e.message);
348 // Success. 345 // Success.
349 return; 346 return;
350 } 347 }
351 throw new MjsUnitAssertionError("Did not trap, expected: " + kTrapMsgs[trap] ); 348 throw new MjsUnitAssertionError("Did not trap, expected: " + kTrapMsgs[trap] );
352 } 349 }
OLDNEW
« no previous file with comments | « test/mjsunit/wasm/test-wasm-simd-ops.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698