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 <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 <memory> | 9 #include <memory> |
10 | 10 |
11 #include "src/wasm/wasm-macro-gen.h" | 11 #include "src/wasm/wasm-macro-gen.h" |
12 | 12 |
13 #include "src/wasm/wasm-interpreter.h" | 13 #include "src/wasm/wasm-interpreter.h" |
14 | 14 |
15 #include "test/cctest/cctest.h" | 15 #include "test/cctest/cctest.h" |
16 #include "test/cctest/compiler/value-helper.h" | 16 #include "test/cctest/compiler/value-helper.h" |
17 #include "test/cctest/wasm/test-signatures.h" | |
18 #include "test/cctest/wasm/wasm-run-utils.h" | 17 #include "test/cctest/wasm/wasm-run-utils.h" |
| 18 #include "test/common/wasm/test-signatures.h" |
19 | 19 |
20 using namespace v8::base; | 20 using namespace v8::base; |
21 using namespace v8::internal; | 21 using namespace v8::internal; |
22 using namespace v8::internal::compiler; | 22 using namespace v8::internal::compiler; |
23 using namespace v8::internal::wasm; | 23 using namespace v8::internal::wasm; |
24 | 24 |
25 namespace v8 { | 25 namespace v8 { |
26 namespace internal { | 26 namespace internal { |
27 namespace wasm { | 27 namespace wasm { |
28 | 28 |
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 WasmRunner<int32_t> r(&module, MachineType::Uint32()); | 329 WasmRunner<int32_t> r(&module, MachineType::Uint32()); |
330 module.AddMemory(WasmModule::kPageSize); | 330 module.AddMemory(WasmModule::kPageSize); |
331 BUILD(r, WASM_GROW_MEMORY(WASM_GET_LOCAL(0))); | 331 BUILD(r, WASM_GROW_MEMORY(WASM_GET_LOCAL(0))); |
332 CHECK_EQ(-1, r.Call(1048575)); | 332 CHECK_EQ(-1, r.Call(1048575)); |
333 } | 333 } |
334 } | 334 } |
335 | 335 |
336 } // namespace wasm | 336 } // namespace wasm |
337 } // namespace internal | 337 } // namespace internal |
338 } // namespace v8 | 338 } // namespace v8 |
OLD | NEW |