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 "src/wasm/wasm-macro-gen.h" | 5 #include "src/wasm/wasm-macro-gen.h" |
6 | 6 |
7 #include "test/cctest/cctest.h" | 7 #include "test/cctest/cctest.h" |
8 #include "test/cctest/compiler/value-helper.h" | 8 #include "test/cctest/compiler/value-helper.h" |
9 #include "test/cctest/wasm/test-signatures.h" | |
10 #include "test/cctest/wasm/wasm-run-utils.h" | 9 #include "test/cctest/wasm/wasm-run-utils.h" |
| 10 #include "test/common/wasm/test-signatures.h" |
11 | 11 |
12 using namespace v8::base; | 12 using namespace v8::base; |
13 using namespace v8::internal; | 13 using namespace v8::internal; |
14 using namespace v8::internal::compiler; | 14 using namespace v8::internal::compiler; |
15 using namespace v8::internal::wasm; | 15 using namespace v8::internal::wasm; |
16 | 16 |
17 using v8::Local; | 17 using v8::Local; |
18 using v8::Utils; | 18 using v8::Utils; |
19 | 19 |
20 namespace { | 20 namespace { |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 CHECK(returnObjMaybe.is_null()); | 131 CHECK(returnObjMaybe.is_null()); |
132 | 132 |
133 // The column is 1-based, so add 1 to the actual byte offset. | 133 // The column is 1-based, so add 1 to the actual byte offset. |
134 ExceptionInfo expected_exceptions[] = { | 134 ExceptionInfo expected_exceptions[] = { |
135 {"<WASM UNNAMED>", static_cast<int>(wasm_index), 8}, // -- | 135 {"<WASM UNNAMED>", static_cast<int>(wasm_index), 8}, // -- |
136 {"<WASM UNNAMED>", static_cast<int>(wasm_index_2), 3}, // -- | 136 {"<WASM UNNAMED>", static_cast<int>(wasm_index_2), 3}, // -- |
137 {"callFn", 1, 24} // -- | 137 {"callFn", 1, 24} // -- |
138 }; | 138 }; |
139 CheckExceptionInfos(maybe_exc.ToHandleChecked(), expected_exceptions); | 139 CheckExceptionInfos(maybe_exc.ToHandleChecked(), expected_exceptions); |
140 } | 140 } |
OLD | NEW |