| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 CHECK(maybe_return_obj.is_null()); | 155 CHECK(maybe_return_obj.is_null()); |
| 156 | 156 |
| 157 // The column is 1-based, so add 1 to the actual byte offset. | 157 // The column is 1-based, so add 1 to the actual byte offset. |
| 158 ExceptionInfo expected_exceptions[] = { | 158 ExceptionInfo expected_exceptions[] = { |
| 159 {"<WASM UNNAMED>", static_cast<int>(wasm_index), 2}, // - | 159 {"<WASM UNNAMED>", static_cast<int>(wasm_index), 2}, // - |
| 160 {"<WASM UNNAMED>", static_cast<int>(wasm_index_2), 2}, // - | 160 {"<WASM UNNAMED>", static_cast<int>(wasm_index_2), 2}, // - |
| 161 {"callFn", 1, 24} //- | 161 {"callFn", 1, 24} //- |
| 162 }; | 162 }; |
| 163 CheckExceptionInfos(maybe_exc.ToHandleChecked(), expected_exceptions); | 163 CheckExceptionInfos(maybe_exc.ToHandleChecked(), expected_exceptions); |
| 164 } | 164 } |
| OLD | NEW |