| 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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 // Operations that read and/or write {control} and {effect}. | 145 // Operations that read and/or write {control} and {effect}. |
| 146 //----------------------------------------------------------------------- | 146 //----------------------------------------------------------------------- |
| 147 Node* Branch(Node* cond, Node** true_node, Node** false_node); | 147 Node* Branch(Node* cond, Node** true_node, Node** false_node); |
| 148 Node* Switch(unsigned count, Node* key); | 148 Node* Switch(unsigned count, Node* key); |
| 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** CallIndirect(uint32_t index, Node** args, |
| 158 wasm::WasmCodePosition position); | 158 wasm::WasmCodePosition position); |
| 159 Node* CallIndirect(uint32_t index, Node** args, | 159 |
| 160 wasm::WasmCodePosition position); | |
| 161 void BuildJSToWasmWrapper(Handle<Code> wasm_code, wasm::FunctionSig* sig); | 160 void BuildJSToWasmWrapper(Handle<Code> wasm_code, wasm::FunctionSig* sig); |
| 162 void BuildWasmToJSWrapper(Handle<JSReceiver> target, wasm::FunctionSig* sig); | 161 void BuildWasmToJSWrapper(Handle<JSReceiver> target, wasm::FunctionSig* sig); |
| 163 | 162 |
| 164 Node* ToJS(Node* node, wasm::LocalType type); | 163 Node* ToJS(Node* node, wasm::LocalType type); |
| 165 Node* FromJS(Node* node, Node* context, wasm::LocalType type); | 164 Node* FromJS(Node* node, Node* context, wasm::LocalType type); |
| 166 Node* Invert(Node* node); | 165 Node* Invert(Node* node); |
| 167 Node* FunctionTable(uint32_t index); | 166 Node* FunctionTable(uint32_t index); |
| 168 | 167 |
| 169 //----------------------------------------------------------------------- | 168 //----------------------------------------------------------------------- |
| 170 // Operations that concern the linear memory. | 169 // Operations that concern the linear memory. |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 void BoundsCheckMem(MachineType memtype, Node* index, uint32_t offset, | 231 void BoundsCheckMem(MachineType memtype, Node* index, uint32_t offset, |
| 233 wasm::WasmCodePosition position); | 232 wasm::WasmCodePosition position); |
| 234 | 233 |
| 235 Node* BuildChangeEndianness(Node* node, MachineType type, | 234 Node* BuildChangeEndianness(Node* node, MachineType type, |
| 236 wasm::LocalType wasmtype = wasm::kAstStmt); | 235 wasm::LocalType wasmtype = wasm::kAstStmt); |
| 237 | 236 |
| 238 Node* MaskShiftCount32(Node* node); | 237 Node* MaskShiftCount32(Node* node); |
| 239 Node* MaskShiftCount64(Node* node); | 238 Node* MaskShiftCount64(Node* node); |
| 240 | 239 |
| 241 Node* BuildCCall(MachineSignature* sig, Node** args); | 240 Node* BuildCCall(MachineSignature* sig, Node** args); |
| 242 Node* BuildWasmCall(wasm::FunctionSig* sig, Node** args, | 241 Node** BuildWasmCall(wasm::FunctionSig* sig, Node** args, |
| 243 wasm::WasmCodePosition position); | 242 wasm::WasmCodePosition position); |
| 244 | 243 |
| 245 Node* BuildF32CopySign(Node* left, Node* right); | 244 Node* BuildF32CopySign(Node* left, Node* right); |
| 246 Node* BuildF64CopySign(Node* left, Node* right); | 245 Node* BuildF64CopySign(Node* left, Node* right); |
| 247 Node* BuildI32SConvertF32(Node* input, wasm::WasmCodePosition position); | 246 Node* BuildI32SConvertF32(Node* input, wasm::WasmCodePosition position); |
| 248 Node* BuildI32SConvertF64(Node* input, wasm::WasmCodePosition position); | 247 Node* BuildI32SConvertF64(Node* input, wasm::WasmCodePosition position); |
| 249 Node* BuildI32UConvertF32(Node* input, wasm::WasmCodePosition position); | 248 Node* BuildI32UConvertF32(Node* input, wasm::WasmCodePosition position); |
| 250 Node* BuildI32UConvertF64(Node* input, wasm::WasmCodePosition position); | 249 Node* BuildI32UConvertF64(Node* input, wasm::WasmCodePosition position); |
| 251 Node* BuildI32Ctz(Node* input); | 250 Node* BuildI32Ctz(Node* input); |
| 252 Node* BuildI32Popcnt(Node* input); | 251 Node* BuildI32Popcnt(Node* input); |
| 253 Node* BuildI64Ctz(Node* input); | 252 Node* BuildI64Ctz(Node* input); |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 340 } | 339 } |
| 341 | 340 |
| 342 int AddParameterNodes(Node** args, int pos, int param_count, | 341 int AddParameterNodes(Node** args, int pos, int param_count, |
| 343 wasm::FunctionSig* sig); | 342 wasm::FunctionSig* sig); |
| 344 }; | 343 }; |
| 345 } // namespace compiler | 344 } // namespace compiler |
| 346 } // namespace internal | 345 } // namespace internal |
| 347 } // namespace v8 | 346 } // namespace v8 |
| 348 | 347 |
| 349 #endif // V8_COMPILER_WASM_COMPILER_H_ | 348 #endif // V8_COMPILER_WASM_COMPILER_H_ |
| OLD | NEW |