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

Side by Side Diff: test/mjsunit/regress/wasm/regression-670683.js

Issue 2548223002: [wasm] Update WasmMemoryObject correctly when module memory is exported. (Closed)
Patch Set: Rebase Created 4 years 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 | « src/wasm/wasm-module.cc ('k') | test/mjsunit/wasm/import-memory.js » ('j') | 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 2016 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 // Flags: --expose-wasm
6
7 const bytes = new Uint8Array([
8 0x00, 0x61, 0x73, 0x6d, 0x0d, 0x00, 0x00, 0x00,
9 0x01, 0x05, 0x01, 0x60, 0x00, 0x01, 0x7f, 0x03,
10 0x02, 0x01, 0x00, 0x05, 0x03, 0x01, 0x00, 0x01,
11 0x07, 0x11, 0x02, 0x04, 0x67, 0x72, 0x6f, 0x77,
12 0x00, 0x00, 0x06, 0x6d, 0x65, 0x6d, 0x6f, 0x72,
13 0x79, 0x02, 0x00, 0x0a, 0x07, 0x01, 0x05, 0x00,
14 0x41, 0x01, 0x40, 0x00]);
15
16 WebAssembly.compile(bytes).then(
17 m => new WebAssembly.Instance(m).exports.grow());
OLDNEW
« no previous file with comments | « src/wasm/wasm-module.cc ('k') | test/mjsunit/wasm/import-memory.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698