OLD | NEW |
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 #include <stdint.h> | 5 #include <stdint.h> |
6 #include <stdlib.h> | 6 #include <stdlib.h> |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/wasm/wasm-macro-gen.h" | 10 #include "src/wasm/wasm-macro-gen.h" |
11 | 11 |
12 #include "test/cctest/cctest.h" | 12 #include "test/cctest/cctest.h" |
13 #include "test/cctest/compiler/value-helper.h" | 13 #include "test/cctest/compiler/value-helper.h" |
14 #include "test/cctest/wasm/test-signatures.h" | |
15 #include "test/cctest/wasm/wasm-run-utils.h" | 14 #include "test/cctest/wasm/wasm-run-utils.h" |
| 15 #include "test/common/wasm/test-signatures.h" |
16 | 16 |
17 // If the target architecture is 64-bit, enable all tests. | 17 // If the target architecture is 64-bit, enable all tests. |
18 #if !V8_TARGET_ARCH_32_BIT || V8_TARGET_ARCH_X64 | 18 #if !V8_TARGET_ARCH_32_BIT || V8_TARGET_ARCH_X64 |
19 #define WASM_64 1 | 19 #define WASM_64 1 |
20 #else | 20 #else |
21 #define WASM_64 0 | 21 #define WASM_64 0 |
22 #endif | 22 #endif |
23 | 23 |
24 #define CHECK_TRAP32(x) \ | 24 #define CHECK_TRAP32(x) \ |
25 CHECK_EQ(0xdeadbeef, (bit_cast<uint32_t>(x)) & 0xFFFFFFFF) | 25 CHECK_EQ(0xdeadbeef, (bit_cast<uint32_t>(x)) & 0xFFFFFFFF) |
(...skipping 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1567 CHECK_EQ(expected, result); | 1567 CHECK_EQ(expected, result); |
1568 } | 1568 } |
1569 } | 1569 } |
1570 } | 1570 } |
1571 } | 1571 } |
1572 | 1572 |
1573 WASM_EXEC_TEST(MixedCall_i64_0) { Run_WasmMixedCall_N(execution_mode, 0); } | 1573 WASM_EXEC_TEST(MixedCall_i64_0) { Run_WasmMixedCall_N(execution_mode, 0); } |
1574 WASM_EXEC_TEST(MixedCall_i64_1) { Run_WasmMixedCall_N(execution_mode, 1); } | 1574 WASM_EXEC_TEST(MixedCall_i64_1) { Run_WasmMixedCall_N(execution_mode, 1); } |
1575 WASM_EXEC_TEST(MixedCall_i64_2) { Run_WasmMixedCall_N(execution_mode, 2); } | 1575 WASM_EXEC_TEST(MixedCall_i64_2) { Run_WasmMixedCall_N(execution_mode, 2); } |
1576 WASM_EXEC_TEST(MixedCall_i64_3) { Run_WasmMixedCall_N(execution_mode, 3); } | 1576 WASM_EXEC_TEST(MixedCall_i64_3) { Run_WasmMixedCall_N(execution_mode, 3); } |
OLD | NEW |