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

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

Issue 1698133002: [wasm] Clean up handling of function names. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 10 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-module.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 17 matching lines...) Expand all
28 28
29 // Expose {Node} and {Graph} opaquely as {wasm::TFNode} and {wasm::TFGraph}. 29 // Expose {Node} and {Graph} opaquely as {wasm::TFNode} and {wasm::TFGraph}.
30 typedef compiler::Node TFNode; 30 typedef compiler::Node TFNode;
31 typedef compiler::JSGraph TFGraph; 31 typedef compiler::JSGraph TFGraph;
32 } 32 }
33 33
34 namespace compiler { 34 namespace compiler {
35 // Compiles a single function, producing a code object. 35 // Compiles a single function, producing a code object.
36 Handle<Code> CompileWasmFunction(wasm::ErrorThrower& thrower, Isolate* isolate, 36 Handle<Code> CompileWasmFunction(wasm::ErrorThrower& thrower, Isolate* isolate,
37 wasm::ModuleEnv* module_env, 37 wasm::ModuleEnv* module_env,
38 const wasm::WasmFunction& function, int index); 38 const wasm::WasmFunction& function);
39 39
40 // Wraps a JS function, producing a code object that can be called from WASM. 40 // Wraps a JS function, producing a code object that can be called from WASM.
41 Handle<Code> CompileWasmToJSWrapper(Isolate* isolate, wasm::ModuleEnv* module, 41 Handle<Code> CompileWasmToJSWrapper(Isolate* isolate, wasm::ModuleEnv* module,
42 Handle<JSFunction> function, 42 Handle<JSFunction> function,
43 uint32_t index); 43 uint32_t index);
44 44
45 // Wraps a given wasm code object, producing a JSFunction that can be called 45 // Wraps a given wasm code object, producing a JSFunction that can be called
46 // from JavaScript. 46 // from JavaScript.
47 Handle<JSFunction> CompileJSToWasmWrapper( 47 Handle<JSFunction> CompileJSToWasmWrapper(
48 Isolate* isolate, wasm::ModuleEnv* module, Handle<String> name, 48 Isolate* isolate, wasm::ModuleEnv* module, Handle<String> name,
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 Node** buf = Buffer(count); 194 Node** buf = Buffer(count);
195 if (buf != buffer) memcpy(buf, buffer, count * sizeof(Node*)); 195 if (buf != buffer) memcpy(buf, buffer, count * sizeof(Node*));
196 return buf; 196 return buf;
197 } 197 }
198 }; 198 };
199 } // namespace compiler 199 } // namespace compiler
200 } // namespace internal 200 } // namespace internal
201 } // namespace v8 201 } // namespace v8
202 202
203 #endif // V8_COMPILER_WASM_COMPILER_H_ 203 #endif // V8_COMPILER_WASM_COMPILER_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/wasm-compiler.cc » ('j') | src/wasm/wasm-module.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698