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

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

Issue 2008043006: [wasm] separate snapshot-able stages (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@refactoring
Patch Set: Created 4 years, 7 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
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 #ifndef V8_WASM_MODULE_H_ 5 #ifndef V8_WASM_MODULE_H_
6 #define V8_WASM_MODULE_H_ 6 #define V8_WASM_MODULE_H_
7 7
8 #include "src/wasm/wasm-opcodes.h" 8 #include "src/wasm/wasm-opcodes.h"
9 #include "src/wasm/wasm-result.h" 9 #include "src/wasm/wasm-result.h"
10 10
(...skipping 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 mem_size_(0), 229 mem_size_(0),
230 globals_start_(nullptr) {} 230 globals_start_(nullptr) {}
231 231
232 void CreateJSObjectInstance(); 232 void CreateJSObjectInstance();
233 233
234 void SetOrCreateMemory(Handle<JSArrayBuffer> memory, ErrorThrower* thrower); 234 void SetOrCreateMemory(Handle<JSArrayBuffer> memory, ErrorThrower* thrower);
235 void AllocateGlobals(ErrorThrower* thrower); 235 void AllocateGlobals(ErrorThrower* thrower);
236 void BuildFunctionTable(); 236 void BuildFunctionTable();
237 // TODO(mtrofin): remove once we codegen away from the js heap. 237 // TODO(mtrofin): remove once we codegen away from the js heap.
238 void InitializeFunctions(); 238 void InitializeFunctions();
239 void ProcessFunctionsPostLinking();
239 240
240 const WasmModule* module() const { return module_; } 241 const WasmModule* module() const { return module_; }
241 Handle<Context> native_context() { return native_context_; } 242 Handle<Context> native_context() { return native_context_; }
242 243
243 void set_native_context(Handle<Context> context) { 244 void set_native_context(Handle<Context> context) {
244 native_context_ = context; 245 native_context_ = context;
245 } 246 }
246 byte* globals_start() const { return globals_start_; } 247 byte* globals_start() const { return globals_start_; }
247 size_t globals_size() const { return module()->globals_size; } 248 size_t globals_size() const { return module()->globals_size; }
248 249
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 // Returns a null handle if the function is unnamed or the name is not a valid 374 // Returns a null handle if the function is unnamed or the name is not a valid
374 // UTF-8 string. 375 // UTF-8 string.
375 MaybeHandle<String> GetWasmFunctionName(Handle<JSObject> wasm, 376 MaybeHandle<String> GetWasmFunctionName(Handle<JSObject> wasm,
376 uint32_t func_index); 377 uint32_t func_index);
377 378
378 } // namespace wasm 379 } // namespace wasm
379 } // namespace internal 380 } // namespace internal
380 } // namespace v8 381 } // namespace v8
381 382
382 #endif // V8_WASM_MODULE_H_ 383 #endif // V8_WASM_MODULE_H_
OLDNEW
« no previous file with comments | « src/compiler/wasm-compiler.cc ('k') | src/wasm/wasm-module.cc » ('j') | src/wasm/wasm-module.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698