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

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

Issue 2134593002: [wasm] cloning compiled module before instantiation (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: [wasm] cloning compiled module before instantiation Created 4 years, 5 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 | « no previous file | src/compiler/wasm-compiler.cc » ('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 #ifndef V8_COMPILER_WASM_COMPILER_H_ 5 #ifndef V8_COMPILER_WASM_COMPILER_H_
6 #define V8_COMPILER_WASM_COMPILER_H_ 6 #define V8_COMPILER_WASM_COMPILER_H_
7 7
8 // Clients of this interface shouldn't depend on lots of compiler internals. 8 // Clients of this interface shouldn't depend on lots of compiler internals.
9 // Do not include anything from src/compiler here! 9 // Do not include anything from src/compiler here!
10 #include "src/compiler.h" 10 #include "src/compiler.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 bool ok_; 76 bool ok_;
77 }; 77 };
78 78
79 // Wraps a JS function, producing a code object that can be called from WASM. 79 // Wraps a JS function, producing a code object that can be called from WASM.
80 Handle<Code> CompileWasmToJSWrapper(Isolate* isolate, 80 Handle<Code> CompileWasmToJSWrapper(Isolate* isolate,
81 Handle<JSFunction> function, 81 Handle<JSFunction> function,
82 wasm::FunctionSig* sig, uint32_t index, 82 wasm::FunctionSig* sig, uint32_t index,
83 Handle<String> import_module, 83 Handle<String> import_module,
84 MaybeHandle<String> import_function); 84 MaybeHandle<String> import_function);
85 85
86 // Wraps a given wasm code object, producing a JSFunction that can be called 86 // Wraps a given wasm code object, producing a code object.
87 // from JavaScript. 87 Handle<Code> CompileJSToWasmWrapper(Isolate* isolate, wasm::ModuleEnv* module,
88 Handle<JSFunction> CompileJSToWasmWrapper(Isolate* isolate, 88 Handle<Code> wasm_code, uint32_t index);
89 wasm::ModuleEnv* module,
90 Handle<String> name,
91 Handle<Code> wasm_code,
92 uint32_t index);
93 89
94 // Abstracts details of building TurboFan graph nodes for WASM to separate 90 // Abstracts details of building TurboFan graph nodes for WASM to separate
95 // the WASM decoder from the internal details of TurboFan. 91 // the WASM decoder from the internal details of TurboFan.
96 class WasmTrapHelper; 92 class WasmTrapHelper;
97 class WasmGraphBuilder { 93 class WasmGraphBuilder {
98 public: 94 public:
99 WasmGraphBuilder( 95 WasmGraphBuilder(
100 Zone* z, JSGraph* g, wasm::FunctionSig* function_signature, 96 Zone* z, JSGraph* g, wasm::FunctionSig* function_signature,
101 compiler::SourcePositionTable* source_position_table = nullptr); 97 compiler::SourcePositionTable* source_position_table = nullptr);
102 98
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 Node** buf = Buffer(new_count); 343 Node** buf = Buffer(new_count);
348 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); 344 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*));
349 return buf; 345 return buf;
350 } 346 }
351 }; 347 };
352 } // namespace compiler 348 } // namespace compiler
353 } // namespace internal 349 } // namespace internal
354 } // namespace v8 350 } // namespace v8
355 351
356 #endif // V8_COMPILER_WASM_COMPILER_H_ 352 #endif // V8_COMPILER_WASM_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/wasm-compiler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698