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

Side by Side Diff: test/mjsunit/regress/wasm/ast-fuzz-2.js

Issue 2658723006: [wasm] Syntax- and Type-aware Fuzzer (Closed)
Patch Set: Adding support for more binops, etc. Created 3 years, 10 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 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() {
9 var builder = new WasmModuleBuilder();
10 builder.addMemory(32, 32, false);
11 builder.addFunction("test", kSig_i_iii)
12 .addBodyWithEnd([
13 // body:
14 kExprBlock, 0x7e, // @1 i64
15 kExprI64Const, 0xa2, 0xed, 0xdd, 0xc5, 0xaa, 0xd4, 0xa8, 0xbb, 0xb7, 0x7f,
16 kExprEnd, // @14
17 kExprI64Const, 0xba, 0xaa, 0x81, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x00,
18 kExprI64Const, 0xa2, 0xc5, 0x8a, 0x95, 0xaa, 0xd4, 0xa8, 0x80, 0x80, 0x00,
19 kExprI64Const, 0xa2, 0xc5, 0x8a, 0x85, 0x80, 0x80, 0x80, 0x80, 0x80, 0x00,
20 kExprI64Mul,
21 kExprI64Const, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x80, 0x00,
22 kExprI64Const, 0xa2, 0xc5, 0x8a, 0x95, 0xaa, 0xd4, 0xa8, 0x80, 0x80, 0x00,
23 kExprI64Mul,
24 kExprI64Add,
25 kExprI64Mul,
26 kExprI64Mul,
27 kExprI64Const, 0xef, 0xff, 0x8b, 0x95, 0x8a, 0x80, 0x80, 0x80, 0x80, 0x00,
28 kExprI64GeS,
29 kExprEnd, // @87
30 ])
31 .exportFunc();
32 var module = builder.instantiate();
33 assertEquals(1, module.exports.test(1, 2, 3));
34 })();
OLDNEW
« test/fuzzer/wasm-compile.cc ('K') | « test/mjsunit/regress/wasm/ast-fuzz-1.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698