Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(111)

Side by Side Diff: src/wasm/wasm-module.cc

Issue 2415533003: [wasm] Rename WasmModuleInstance to WasmInstance. (Closed)
Patch Set: Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/wasm/wasm-module.h ('k') | test/cctest/wasm/wasm-run-utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « src/wasm/wasm-module.h ('k') | test/cctest/wasm/wasm-run-utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698