| 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 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 Node* IfValue(int32_t value, Node* sw); | 149 Node* IfValue(int32_t value, Node* sw); |
| 150 Node* IfDefault(Node* sw); | 150 Node* IfDefault(Node* sw); |
| 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 entry_index, uint32_t table_index, Node** args, |
| 160 wasm::WasmCodePosition position); | 160 wasm::WasmCodePosition position); |
| 161 void BuildJSToWasmWrapper(Handle<Code> wasm_code, wasm::FunctionSig* sig); | 161 void BuildJSToWasmWrapper(Handle<Code> wasm_code, wasm::FunctionSig* sig); |
| 162 void BuildWasmToJSWrapper(Handle<JSFunction> function, | 162 void BuildWasmToJSWrapper(Handle<JSFunction> function, |
| 163 wasm::FunctionSig* sig); | 163 wasm::FunctionSig* sig); |
| 164 | 164 |
| 165 Node* ToJS(Node* node, Node* context, wasm::LocalType type); | 165 Node* ToJS(Node* node, Node* context, wasm::LocalType type); |
| 166 Node* FromJS(Node* node, Node* context, wasm::LocalType type); | 166 Node* FromJS(Node* node, Node* context, wasm::LocalType type); |
| 167 Node* Invert(Node* node); | 167 Node* Invert(Node* node); |
| 168 Node* FunctionTable(uint32_t index); | 168 Node* FunctionTable(uint32_t index); |
| 169 Node* ChangeToRuntimeCall(Node* node, Runtime::FunctionId function_id, | 169 Node* ChangeToRuntimeCall(Node* node, Runtime::FunctionId function_id, |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 347 } | 347 } |
| 348 | 348 |
| 349 // Simd helper functions | 349 // Simd helper functions |
| 350 MachineOperatorBuilder* simd(); | 350 MachineOperatorBuilder* simd(); |
| 351 }; | 351 }; |
| 352 } // namespace compiler | 352 } // namespace compiler |
| 353 } // namespace internal | 353 } // namespace internal |
| 354 } // namespace v8 | 354 } // namespace v8 |
| 355 | 355 |
| 356 #endif // V8_COMPILER_WASM_COMPILER_H_ | 356 #endif // V8_COMPILER_WASM_COMPILER_H_ |
| OLD | NEW |