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

Side by Side Diff: test/mjsunit/wasm/asm-wasm-heap.js

Issue 2771183002: [wasm][asm.js] Fix and enable several asm.js tests with the new parser. (Closed)
Patch Set: Created 3 years, 9 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
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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: --validate-asm --allow-natives-syntax 5 // Flags: --validate-asm --allow-natives-syntax --fast-validate-asm
6 6
7 const stdlib = { 7 const stdlib = {
8 Math: Math, 8 Math: Math,
9 Int8Array: Int8Array, 9 Int8Array: Int8Array,
10 Int16Array: Int16Array, 10 Int16Array: Int16Array,
11 Int32Array: Int32Array, 11 Int32Array: Int32Array,
12 Uint8Array: Uint8Array, 12 Uint8Array: Uint8Array,
13 Uint16Array: Uint16Array, 13 Uint16Array: Uint16Array,
14 Uint32Array: Uint32Array, 14 Uint32Array: Uint32Array,
15 Float32Array: Float32Array, 15 Float32Array: Float32Array,
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 227
228 RunAsmJsTest(LoadAt_f64, function(module) { 228 RunAsmJsTest(LoadAt_f64, function(module) {
229 var load = module.load; 229 var load = module.load;
230 for (index of OOB_INDEXES) assertEquals(NaN, load(index)); 230 for (index of OOB_INDEXES) assertEquals(NaN, load(index));
231 checkView(new Float64Array(buffer), load, 3); 231 checkView(new Float64Array(buffer), load, 3);
232 }); 232 });
233 233
234 // TODO(titzer): constant heap indexes 234 // TODO(titzer): constant heap indexes
235 // TODO(titzer): heap accesses with offsets and arithmetic 235 // TODO(titzer): heap accesses with offsets and arithmetic
236 // TODO(titzer): [i >> K] where K is greater than log(size) 236 // TODO(titzer): [i >> K] where K is greater than log(size)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698