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

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

Issue 2226053002: [wasm] Remove single function JIT support. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Drop test 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/jit-single-function.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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
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; 310 var kExprSimdPrefix = 0xe5;
311 var kExprI32x4Splat = 0x1b; 311 var kExprI32x4Splat = 0x1b;
312 var kExprI32x4ExtractLane = 0x1c; 312 var kExprI32x4ExtractLane = 0x1c;
313 313
314 var kExprJITSingleFunction = 0xf0;
315
316 var kTrapUnreachable = 0; 314 var kTrapUnreachable = 0;
317 var kTrapMemOutOfBounds = 1; 315 var kTrapMemOutOfBounds = 1;
318 var kTrapDivByZero = 2; 316 var kTrapDivByZero = 2;
319 var kTrapDivUnrepresentable = 3; 317 var kTrapDivUnrepresentable = 3;
320 var kTrapRemByZero = 4; 318 var kTrapRemByZero = 4;
321 var kTrapFloatUnrepresentable = 5; 319 var kTrapFloatUnrepresentable = 5;
322 var kTrapFuncInvalid = 6; 320 var kTrapFuncInvalid = 6;
323 var kTrapFuncSigMismatch = 7; 321 var kTrapFuncSigMismatch = 7;
324 var kTrapInvalidIndex = 8; 322 var kTrapInvalidIndex = 8;
325 323
(...skipping 19 matching lines...) Expand all
345 } 343 }
346 threwException = false; 344 threwException = false;
347 } catch (e) { 345 } catch (e) {
348 assertEquals("object", typeof e); 346 assertEquals("object", typeof e);
349 assertEquals(kTrapMsgs[trap], e.message); 347 assertEquals(kTrapMsgs[trap], e.message);
350 // Success. 348 // Success.
351 return; 349 return;
352 } 350 }
353 throw new MjsUnitAssertionError("Did not trap, expected: " + kTrapMsgs[trap] ); 351 throw new MjsUnitAssertionError("Did not trap, expected: " + kTrapMsgs[trap] );
354 } 352 }
OLDNEW
« no previous file with comments | « test/mjsunit/wasm/jit-single-function.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698