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

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

Issue 1910213004: [wasm] Replace WasmName by Vector<const char> (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@wasm-offset-table-2
Patch Set: Created 4 years, 8 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') | src/wasm/wasm-opcodes.h » ('J')
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/wasm/wasm-opcodes.h" 10 #include "src/wasm/wasm-opcodes.h"
(...skipping 25 matching lines...) Expand all
36 namespace compiler { 36 namespace compiler {
37 // Compiles a single function, producing a code object. 37 // Compiles a single function, producing a code object.
38 Handle<Code> CompileWasmFunction(wasm::ErrorThrower& thrower, Isolate* isolate, 38 Handle<Code> CompileWasmFunction(wasm::ErrorThrower& thrower, Isolate* isolate,
39 wasm::ModuleEnv* module_env, 39 wasm::ModuleEnv* module_env,
40 const wasm::WasmFunction& function); 40 const wasm::WasmFunction& function);
41 41
42 // Wraps a JS function, producing a code object that can be called from WASM. 42 // Wraps a JS function, producing a code object that can be called from WASM.
43 Handle<Code> CompileWasmToJSWrapper(Isolate* isolate, wasm::ModuleEnv* module, 43 Handle<Code> CompileWasmToJSWrapper(Isolate* isolate, wasm::ModuleEnv* module,
44 Handle<JSFunction> function, 44 Handle<JSFunction> function,
45 wasm::FunctionSig* sig, 45 wasm::FunctionSig* sig,
46 wasm::WasmName module_name, 46 Vector<const char> module_name,
47 wasm::WasmName function_name); 47 Vector<const char> function_name);
48 48
49 // Wraps a given wasm code object, producing a JSFunction that can be called 49 // Wraps a given wasm code object, producing a JSFunction that can be called
50 // from JavaScript. 50 // from JavaScript.
51 Handle<JSFunction> CompileJSToWasmWrapper( 51 Handle<JSFunction> CompileJSToWasmWrapper(
52 Isolate* isolate, wasm::ModuleEnv* module, Handle<String> name, 52 Isolate* isolate, wasm::ModuleEnv* module, Handle<String> name,
53 Handle<Code> wasm_code, Handle<JSObject> module_object, uint32_t index); 53 Handle<Code> wasm_code, Handle<JSObject> module_object, uint32_t index);
54 54
55 // Abstracts details of building TurboFan graph nodes for WASM to separate 55 // Abstracts details of building TurboFan graph nodes for WASM to separate
56 // the WASM decoder from the internal details of TurboFan. 56 // the WASM decoder from the internal details of TurboFan.
57 class WasmTrapHelper; 57 class WasmTrapHelper;
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 Node** buf = Buffer(new_count); 275 Node** buf = Buffer(new_count);
276 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*)); 276 if (buf != buffer) memcpy(buf, buffer, old_count * sizeof(Node*));
277 return buf; 277 return buf;
278 } 278 }
279 }; 279 };
280 } // namespace compiler 280 } // namespace compiler
281 } // namespace internal 281 } // namespace internal
282 } // namespace v8 282 } // namespace v8
283 283
284 #endif // V8_COMPILER_WASM_COMPILER_H_ 284 #endif // V8_COMPILER_WASM_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/wasm-compiler.cc » ('j') | src/wasm/wasm-opcodes.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698