| OLD | NEW | 
|    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  Loading... | 
|   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  Loading... | 
|  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_ | 
| OLD | NEW |