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

Side by Side Diff: test/mjsunit/wasm/direct-import-call.js

Issue 2433273002: [wasm] Avoid double-serializing the wire bytes (Closed)
Patch Set: externalize/internalize buffer Created 4 years, 2 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
(Empty)
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
3 // found in the LICENSE file.
4
5 // Flags: --expose-wasm
6
7 load("test/mjsunit/wasm/wasm-constants.js");
8 load("test/mjsunit/wasm/wasm-module-builder.js");
9
10 (function testCallImport() {
11 var builder = new WasmModuleBuilder();
12
13 var sig_index = builder.addType(kSig_d_dd);
14 builder.addImport("func", sig_index);
15 builder.addFunction("main", sig_index)
16 .addBody([
17 kExprGetLocal, 0, // --
18 kExprGetLocal, 1, // --
19 kExprCallFunction, 0]) // --
20 .exportAs("main");
21
22 var main = builder.instantiate({func: experimentalDoubleAdder}).exports.main ;
23 assertEquals(3.8, main(1.5, 2.3));
24 })();
OLDNEW
« src/runtime/runtime-test.cc ('K') | « test/mjsunit/wasm/compiled-module-serialization.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698