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 <memory> | 5 #include <memory> |
6 | 6 |
7 #include "src/assembler-inl.h" | 7 #include "src/assembler-inl.h" |
8 #include "src/base/adapters.h" | 8 #include "src/base/adapters.h" |
9 #include "src/base/atomic-utils.h" | 9 #include "src/base/atomic-utils.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
11 #include "src/compiler/wasm-compiler.h" | 11 #include "src/compiler/wasm-compiler.h" |
12 #include "src/debug/interface-types.h" | 12 #include "src/debug/interface-types.h" |
13 #include "src/objects.h" | 13 #include "src/objects.h" |
14 #include "src/property-descriptor.h" | 14 #include "src/property-descriptor.h" |
15 #include "src/simulator.h" | 15 #include "src/simulator.h" |
16 #include "src/snapshot/snapshot.h" | 16 #include "src/snapshot/snapshot.h" |
17 #include "src/v8.h" | 17 #include "src/v8.h" |
18 | 18 |
19 #include "src/wasm/ast-decoder.h" | 19 #include "src/wasm/function-body-decoder.h" |
20 #include "src/wasm/module-decoder.h" | 20 #include "src/wasm/module-decoder.h" |
21 #include "src/wasm/wasm-js.h" | 21 #include "src/wasm/wasm-js.h" |
22 #include "src/wasm/wasm-limits.h" | 22 #include "src/wasm/wasm-limits.h" |
23 #include "src/wasm/wasm-module.h" | 23 #include "src/wasm/wasm-module.h" |
24 #include "src/wasm/wasm-objects.h" | 24 #include "src/wasm/wasm-objects.h" |
25 #include "src/wasm/wasm-result.h" | 25 #include "src/wasm/wasm-result.h" |
26 | 26 |
27 using namespace v8::internal; | 27 using namespace v8::internal; |
28 using namespace v8::internal::wasm; | 28 using namespace v8::internal::wasm; |
29 namespace base = v8::base; | 29 namespace base = v8::base; |
(...skipping 2268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2298 CHECK(!compiled_module->has_weak_owning_instance()); | 2298 CHECK(!compiled_module->has_weak_owning_instance()); |
2299 } | 2299 } |
2300 | 2300 |
2301 void testing::ValidateOrphanedInstance(Isolate* isolate, | 2301 void testing::ValidateOrphanedInstance(Isolate* isolate, |
2302 Handle<WasmInstanceObject> instance) { | 2302 Handle<WasmInstanceObject> instance) { |
2303 DisallowHeapAllocation no_gc; | 2303 DisallowHeapAllocation no_gc; |
2304 WasmCompiledModule* compiled_module = instance->compiled_module(); | 2304 WasmCompiledModule* compiled_module = instance->compiled_module(); |
2305 CHECK(compiled_module->has_weak_wasm_module()); | 2305 CHECK(compiled_module->has_weak_wasm_module()); |
2306 CHECK(compiled_module->ptr_to_weak_wasm_module()->cleared()); | 2306 CHECK(compiled_module->ptr_to_weak_wasm_module()->cleared()); |
2307 } | 2307 } |
OLD | NEW |