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

Side by Side Diff: test/cctest/wasm/test-signatures.h

Issue 2324733002: [wasm] Do not support grow_memory for asmjs modules. (Closed)
Patch Set: Fixed a typo Created 4 years, 3 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/cctest/wasm/test-run-wasm-asmjs.cc ('k') | test/unittests/wasm/ast-decoder-unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 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 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 #ifndef TEST_SIGNATURES_H 5 #ifndef TEST_SIGNATURES_H
6 #define TEST_SIGNATURES_H 6 #define TEST_SIGNATURES_H
7 7
8 #include "src/signature.h" 8 #include "src/signature.h"
9 #include "src/wasm/wasm-opcodes.h" 9 #include "src/wasm/wasm-opcodes.h"
10 10
(...skipping 12 matching lines...) Expand all
23 sig_i_ii(1, 2, kIntTypes4), 23 sig_i_ii(1, 2, kIntTypes4),
24 sig_i_iii(1, 3, kIntTypes4), 24 sig_i_iii(1, 3, kIntTypes4),
25 sig_i_f(1, 1, kIntFloatTypes4), 25 sig_i_f(1, 1, kIntFloatTypes4),
26 sig_i_ff(1, 2, kIntFloatTypes4), 26 sig_i_ff(1, 2, kIntFloatTypes4),
27 sig_i_d(1, 1, kIntDoubleTypes4), 27 sig_i_d(1, 1, kIntDoubleTypes4),
28 sig_i_dd(1, 2, kIntDoubleTypes4), 28 sig_i_dd(1, 2, kIntDoubleTypes4),
29 sig_l_v(1, 0, kLongTypes4), 29 sig_l_v(1, 0, kLongTypes4),
30 sig_l_l(1, 1, kLongTypes4), 30 sig_l_l(1, 1, kLongTypes4),
31 sig_l_ll(1, 2, kLongTypes4), 31 sig_l_ll(1, 2, kLongTypes4),
32 sig_i_ll(1, 2, kIntLongTypes4), 32 sig_i_ll(1, 2, kIntLongTypes4),
33 sig_f_f(1, 1, kFloatTypes4),
33 sig_f_ff(1, 2, kFloatTypes4), 34 sig_f_ff(1, 2, kFloatTypes4),
35 sig_d_d(1, 1, kDoubleTypes4),
34 sig_d_dd(1, 2, kDoubleTypes4), 36 sig_d_dd(1, 2, kDoubleTypes4),
35 sig_v_v(0, 0, kIntTypes4), 37 sig_v_v(0, 0, kIntTypes4),
36 sig_v_i(0, 1, kIntTypes4), 38 sig_v_i(0, 1, kIntTypes4),
37 sig_v_ii(0, 2, kIntTypes4), 39 sig_v_ii(0, 2, kIntTypes4),
38 sig_v_iii(0, 3, kIntTypes4), 40 sig_v_iii(0, 3, kIntTypes4),
39 sig_s_i(1, 1, kSimd128IntTypes4) { 41 sig_s_i(1, 1, kSimd128IntTypes4) {
40 // I used C++ and you won't believe what happened next.... 42 // I used C++ and you won't believe what happened next....
41 for (int i = 0; i < 4; i++) kIntTypes4[i] = kAstI32; 43 for (int i = 0; i < 4; i++) kIntTypes4[i] = kAstI32;
42 for (int i = 0; i < 4; i++) kLongTypes4[i] = kAstI64; 44 for (int i = 0; i < 4; i++) kLongTypes4[i] = kAstI64;
43 for (int i = 0; i < 4; i++) kFloatTypes4[i] = kAstF32; 45 for (int i = 0; i < 4; i++) kFloatTypes4[i] = kAstF32;
(...skipping 16 matching lines...) Expand all
60 FunctionSig* i_f() { return &sig_i_f; } 62 FunctionSig* i_f() { return &sig_i_f; }
61 FunctionSig* i_ff() { return &sig_i_ff; } 63 FunctionSig* i_ff() { return &sig_i_ff; }
62 FunctionSig* i_d() { return &sig_i_d; } 64 FunctionSig* i_d() { return &sig_i_d; }
63 FunctionSig* i_dd() { return &sig_i_dd; } 65 FunctionSig* i_dd() { return &sig_i_dd; }
64 66
65 FunctionSig* l_v() { return &sig_l_v; } 67 FunctionSig* l_v() { return &sig_l_v; }
66 FunctionSig* l_l() { return &sig_l_l; } 68 FunctionSig* l_l() { return &sig_l_l; }
67 FunctionSig* l_ll() { return &sig_l_ll; } 69 FunctionSig* l_ll() { return &sig_l_ll; }
68 FunctionSig* i_ll() { return &sig_i_ll; } 70 FunctionSig* i_ll() { return &sig_i_ll; }
69 71
72 FunctionSig* f_f() { return &sig_f_f; }
70 FunctionSig* f_ff() { return &sig_f_ff; } 73 FunctionSig* f_ff() { return &sig_f_ff; }
74 FunctionSig* d_d() { return &sig_d_d; }
71 FunctionSig* d_dd() { return &sig_d_dd; } 75 FunctionSig* d_dd() { return &sig_d_dd; }
72 76
73 FunctionSig* v_v() { return &sig_v_v; } 77 FunctionSig* v_v() { return &sig_v_v; }
74 FunctionSig* v_i() { return &sig_v_i; } 78 FunctionSig* v_i() { return &sig_v_i; }
75 FunctionSig* v_ii() { return &sig_v_ii; } 79 FunctionSig* v_ii() { return &sig_v_ii; }
76 FunctionSig* v_iii() { return &sig_v_iii; } 80 FunctionSig* v_iii() { return &sig_v_iii; }
77 FunctionSig* s_i() { return &sig_s_i; } 81 FunctionSig* s_i() { return &sig_s_i; }
78 82
79 FunctionSig* many(Zone* zone, LocalType ret, LocalType param, int count) { 83 FunctionSig* many(Zone* zone, LocalType ret, LocalType param, int count) {
80 FunctionSig::Builder builder(zone, ret == kAstStmt ? 0 : 1, count); 84 FunctionSig::Builder builder(zone, ret == kAstStmt ? 0 : 1, count);
(...skipping 22 matching lines...) Expand all
103 FunctionSig sig_i_f; 107 FunctionSig sig_i_f;
104 FunctionSig sig_i_ff; 108 FunctionSig sig_i_ff;
105 FunctionSig sig_i_d; 109 FunctionSig sig_i_d;
106 FunctionSig sig_i_dd; 110 FunctionSig sig_i_dd;
107 111
108 FunctionSig sig_l_v; 112 FunctionSig sig_l_v;
109 FunctionSig sig_l_l; 113 FunctionSig sig_l_l;
110 FunctionSig sig_l_ll; 114 FunctionSig sig_l_ll;
111 FunctionSig sig_i_ll; 115 FunctionSig sig_i_ll;
112 116
117 FunctionSig sig_f_f;
113 FunctionSig sig_f_ff; 118 FunctionSig sig_f_ff;
119 FunctionSig sig_d_d;
114 FunctionSig sig_d_dd; 120 FunctionSig sig_d_dd;
115 121
116 FunctionSig sig_v_v; 122 FunctionSig sig_v_v;
117 FunctionSig sig_v_i; 123 FunctionSig sig_v_i;
118 FunctionSig sig_v_ii; 124 FunctionSig sig_v_ii;
119 FunctionSig sig_v_iii; 125 FunctionSig sig_v_iii;
120 FunctionSig sig_s_i; 126 FunctionSig sig_s_i;
121 }; 127 };
122 } // namespace wasm 128 } // namespace wasm
123 } // namespace internal 129 } // namespace internal
124 } // namespace v8 130 } // namespace v8
125 131
126 #endif // TEST_SIGNATURES_H 132 #endif // TEST_SIGNATURES_H
OLDNEW
« no previous file with comments | « test/cctest/wasm/test-run-wasm-asmjs.cc ('k') | test/unittests/wasm/ast-decoder-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698