| 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 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 // Clients of this interface shouldn't depend on lots of compiler internals. | 10 // Clients of this interface shouldn't depend on lots of compiler internals. |
| (...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 151 Node* Return(unsigned count, Node** vals); | 151 Node* Return(unsigned count, Node** vals); |
| 152 Node* ReturnVoid(); | 152 Node* ReturnVoid(); |
| 153 Node* Unreachable(wasm::WasmCodePosition position); | 153 Node* Unreachable(wasm::WasmCodePosition position); |
| 154 | 154 |
| 155 Node* CallDirect(uint32_t index, Node** args, | 155 Node* CallDirect(uint32_t index, Node** args, |
| 156 wasm::WasmCodePosition position); | 156 wasm::WasmCodePosition position); |
| 157 Node* CallImport(uint32_t index, Node** args, | 157 Node* CallImport(uint32_t index, Node** args, |
| 158 wasm::WasmCodePosition position); | 158 wasm::WasmCodePosition position); |
| 159 Node* CallIndirect(uint32_t index, Node** args, | 159 Node* CallIndirect(uint32_t index, Node** args, |
| 160 wasm::WasmCodePosition position); | 160 wasm::WasmCodePosition position); |
| 161 Node* JITSingleFunction(Node* base, Node* length, Node* index, | |
| 162 uint32_t sig_index, wasm::FunctionSig* sig, | |
| 163 wasm::WasmCodePosition position); | |
| 164 void BuildJSToWasmWrapper(Handle<Code> wasm_code, wasm::FunctionSig* sig); | 161 void BuildJSToWasmWrapper(Handle<Code> wasm_code, wasm::FunctionSig* sig); |
| 165 void BuildWasmToJSWrapper(Handle<JSFunction> function, | 162 void BuildWasmToJSWrapper(Handle<JSFunction> function, |
| 166 wasm::FunctionSig* sig); | 163 wasm::FunctionSig* sig); |
| 167 | 164 |
| 168 Node* ToJS(Node* node, Node* context, wasm::LocalType type); | 165 Node* ToJS(Node* node, Node* context, wasm::LocalType type); |
| 169 Node* FromJS(Node* node, Node* context, wasm::LocalType type); | 166 Node* FromJS(Node* node, Node* context, wasm::LocalType type); |
| 170 Node* Invert(Node* node); | 167 Node* Invert(Node* node); |
| 171 Node* FunctionTable(uint32_t index); | 168 Node* FunctionTable(uint32_t index); |
| 172 Node* ChangeToRuntimeCall(Node* node, Runtime::FunctionId function_id, | 169 Node* ChangeToRuntimeCall(Node* node, Runtime::FunctionId function_id, |
| 173 Signature<Conversion>* signature); | 170 Signature<Conversion>* signature); |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 } | 347 } |
| 351 | 348 |
| 352 // Simd helper functions | 349 // Simd helper functions |
| 353 MachineOperatorBuilder* simd(); | 350 MachineOperatorBuilder* simd(); |
| 354 }; | 351 }; |
| 355 } // namespace compiler | 352 } // namespace compiler |
| 356 } // namespace internal | 353 } // namespace internal |
| 357 } // namespace v8 | 354 } // namespace v8 |
| 358 | 355 |
| 359 #endif // V8_COMPILER_WASM_COMPILER_H_ | 356 #endif // V8_COMPILER_WASM_COMPILER_H_ |
| OLD | NEW |