OLD | NEW |
1 // Copyright 2016 the V8 project authors. All rights reserved. | 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 | 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 #include "test/unittests/test-utils.h" | 5 #include "test/unittests/test-utils.h" |
6 | 6 |
7 #include "src/v8.h" | 7 #include "src/v8.h" |
8 | 8 |
9 #include "test/common/wasm/test-signatures.h" | 9 #include "test/common/wasm/test-signatures.h" |
10 | 10 |
11 #include "src/bit-vector.h" | 11 #include "src/bit-vector.h" |
12 #include "src/objects.h" | 12 #include "src/objects.h" |
13 | 13 |
14 #include "src/wasm/ast-decoder.h" | 14 #include "src/wasm/function-body-decoder.h" |
15 #include "src/wasm/wasm-macro-gen.h" | 15 #include "src/wasm/wasm-macro-gen.h" |
16 #include "src/wasm/wasm-module.h" | 16 #include "src/wasm/wasm-module.h" |
17 | 17 |
18 #define WASM_SET_ZERO(i) WASM_SET_LOCAL(i, WASM_ZERO) | 18 #define WASM_SET_ZERO(i) WASM_SET_LOCAL(i, WASM_ZERO) |
19 | 19 |
20 namespace v8 { | 20 namespace v8 { |
21 namespace internal { | 21 namespace internal { |
22 namespace wasm { | 22 namespace wasm { |
23 | 23 |
24 class WasmLoopAssignmentAnalyzerTest : public TestWithZone { | 24 class WasmLoopAssignmentAnalyzerTest : public TestWithZone { |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 static const byte code[] = { | 188 static const byte code[] = { |
189 WASM_LOOP(WASM_ZERO, kExprSetLocal, 0xfa, 0xff, 0xff, 0xff, | 189 WASM_LOOP(WASM_ZERO, kExprSetLocal, 0xfa, 0xff, 0xff, 0xff, |
190 0x0f)}; // local index LEB128 0xfffffffa | 190 0x0f)}; // local index LEB128 0xfffffffa |
191 // Just make sure that the analysis does not crash. | 191 // Just make sure that the analysis does not crash. |
192 Analyze(code, code + arraysize(code)); | 192 Analyze(code, code + arraysize(code)); |
193 } | 193 } |
194 | 194 |
195 } // namespace wasm | 195 } // namespace wasm |
196 } // namespace internal | 196 } // namespace internal |
197 } // namespace v8 | 197 } // namespace v8 |
OLD | NEW |