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

Side by Side Diff: test/mjsunit/wasm/large-offset.js

Issue 2903153002: [wasm] Increase WebAssembly.Memory maximum size to ~2GB (Closed)
Patch Set: Remove incorrect DCHECK Created 3 years, 6 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/import-memory.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
(Empty)
1 // Copyright 2017 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 load("test/mjsunit/wasm/wasm-constants.js");
6 load("test/mjsunit/wasm/wasm-module-builder.js");
7
8 function testGrowMemoryOutOfBoundsOffset() {
9 print("testGrowMemoryOutOfBoundsOffset2");
10 var builder = new WasmModuleBuilder();
11 builder.addMemory(16, 128, false);
12 builder.addFunction("main", kSig_v_v)
13 .addBody([
14 kExprI32Const, 20,
15 kExprI32Const, 29,
16 kExprGrowMemory, kMemoryZero,
17 // Assembly equivalent Move <reg>,0xf5fffff
18 // with wasm memory reference relocation information
19 kExprI32StoreMem, 0, 0xFF, 0xFF, 0xFF, 0x7A
20 ])
21 .exportAs("main");
22 var module = builder.instantiate();
23 assertTraps(kTrapMemOutOfBounds, module.exports.main);
24 }
25
26 testGrowMemoryOutOfBoundsOffset();
OLDNEW
« no previous file with comments | « test/mjsunit/wasm/import-memory.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698