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/base/atomic-utils.h" | 7 #include "src/base/atomic-utils.h" |
8 #include "src/code-stubs.h" | 8 #include "src/code-stubs.h" |
9 | 9 |
10 #include "src/macro-assembler.h" | 10 #include "src/macro-assembler.h" |
(...skipping 911 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
922 } | 922 } |
923 entry->set(value_index, *value); | 923 entry->set(value_index, *value); |
924 } | 924 } |
925 | 925 |
926 MaybeHandle<WasmCompiledModule> WasmModule::CompileFunctions( | 926 MaybeHandle<WasmCompiledModule> WasmModule::CompileFunctions( |
927 Isolate* isolate, ErrorThrower* thrower) const { | 927 Isolate* isolate, ErrorThrower* thrower) const { |
928 Factory* factory = isolate->factory(); | 928 Factory* factory = isolate->factory(); |
929 | 929 |
930 MaybeHandle<WasmCompiledModule> nothing; | 930 MaybeHandle<WasmCompiledModule> nothing; |
931 | 931 |
932 WasmModuleInstance temp_instance(this); | 932 WasmInstance temp_instance(this); |
933 temp_instance.context = isolate->native_context(); | 933 temp_instance.context = isolate->native_context(); |
934 temp_instance.mem_size = GetMinModuleMemSize(this); | 934 temp_instance.mem_size = GetMinModuleMemSize(this); |
935 temp_instance.mem_start = nullptr; | 935 temp_instance.mem_start = nullptr; |
936 temp_instance.globals_start = nullptr; | 936 temp_instance.globals_start = nullptr; |
937 | 937 |
938 MaybeHandle<FixedArray> indirect_table = | 938 MaybeHandle<FixedArray> indirect_table = |
939 function_tables.size() | 939 function_tables.size() |
940 ? factory->NewFixedArray(static_cast<int>(function_tables.size()), | 940 ? factory->NewFixedArray(static_cast<int>(function_tables.size()), |
941 TENURED) | 941 TENURED) |
942 : MaybeHandle<FixedArray>(); | 942 : MaybeHandle<FixedArray>(); |
(...skipping 1370 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2313 CHECK(IsWasmObject(*instance)); | 2313 CHECK(IsWasmObject(*instance)); |
2314 WasmCompiledModule* compiled_module = GetCompiledModule(*instance); | 2314 WasmCompiledModule* compiled_module = GetCompiledModule(*instance); |
2315 CHECK(compiled_module->has_weak_module_object()); | 2315 CHECK(compiled_module->has_weak_module_object()); |
2316 CHECK(compiled_module->ptr_to_weak_module_object()->cleared()); | 2316 CHECK(compiled_module->ptr_to_weak_module_object()->cleared()); |
2317 } | 2317 } |
2318 | 2318 |
2319 } // namespace testing | 2319 } // namespace testing |
2320 } // namespace wasm | 2320 } // namespace wasm |
2321 } // namespace internal | 2321 } // namespace internal |
2322 } // namespace v8 | 2322 } // namespace v8 |
OLD | NEW |