| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 Node* Int32Constant(int32_t value); | 127 Node* Int32Constant(int32_t value); |
| 128 Node* Int64Constant(int64_t value); | 128 Node* Int64Constant(int64_t value); |
| 129 Node* Float32Constant(float value); | 129 Node* Float32Constant(float value); |
| 130 Node* Float64Constant(double value); | 130 Node* Float64Constant(double value); |
| 131 Node* HeapConstant(Handle<HeapObject> value); | 131 Node* HeapConstant(Handle<HeapObject> value); |
| 132 Node* Binop(wasm::WasmOpcode opcode, Node* left, Node* right, | 132 Node* Binop(wasm::WasmOpcode opcode, Node* left, Node* right, |
| 133 wasm::WasmCodePosition position = wasm::kNoCodePosition); | 133 wasm::WasmCodePosition position = wasm::kNoCodePosition); |
| 134 Node* Unop(wasm::WasmOpcode opcode, Node* input, | 134 Node* Unop(wasm::WasmOpcode opcode, Node* input, |
| 135 wasm::WasmCodePosition position = wasm::kNoCodePosition); | 135 wasm::WasmCodePosition position = wasm::kNoCodePosition); |
| 136 Node* GrowMemory(Node* input); | 136 Node* GrowMemory(Node* input); |
| 137 Node* Throw(Node* input); |
| 137 unsigned InputCount(Node* node); | 138 unsigned InputCount(Node* node); |
| 138 bool IsPhiWithMerge(Node* phi, Node* merge); | 139 bool IsPhiWithMerge(Node* phi, Node* merge); |
| 139 void AppendToMerge(Node* merge, Node* from); | 140 void AppendToMerge(Node* merge, Node* from); |
| 140 void AppendToPhi(Node* phi, Node* from); | 141 void AppendToPhi(Node* phi, Node* from); |
| 141 | 142 |
| 142 void StackCheck(wasm::WasmCodePosition position); | 143 void StackCheck(wasm::WasmCodePosition position); |
| 143 | 144 |
| 144 //----------------------------------------------------------------------- | 145 //----------------------------------------------------------------------- |
| 145 // Operations that read and/or write {control} and {effect}. | 146 // Operations that read and/or write {control} and {effect}. |
| 146 //----------------------------------------------------------------------- | 147 //----------------------------------------------------------------------- |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 Node* BuildI64DivS(Node* left, Node* right, wasm::WasmCodePosition position); | 300 Node* BuildI64DivS(Node* left, Node* right, wasm::WasmCodePosition position); |
| 300 Node* BuildI64RemS(Node* left, Node* right, wasm::WasmCodePosition position); | 301 Node* BuildI64RemS(Node* left, Node* right, wasm::WasmCodePosition position); |
| 301 Node* BuildI64DivU(Node* left, Node* right, wasm::WasmCodePosition position); | 302 Node* BuildI64DivU(Node* left, Node* right, wasm::WasmCodePosition position); |
| 302 Node* BuildI64RemU(Node* left, Node* right, wasm::WasmCodePosition position); | 303 Node* BuildI64RemU(Node* left, Node* right, wasm::WasmCodePosition position); |
| 303 Node* BuildDiv64Call(Node* left, Node* right, ExternalReference ref, | 304 Node* BuildDiv64Call(Node* left, Node* right, ExternalReference ref, |
| 304 MachineType result_type, int trap_zero, | 305 MachineType result_type, int trap_zero, |
| 305 wasm::WasmCodePosition position); | 306 wasm::WasmCodePosition position); |
| 306 | 307 |
| 307 Node* BuildJavaScriptToNumber(Node* node, Node* context, Node* effect, | 308 Node* BuildJavaScriptToNumber(Node* node, Node* context, Node* effect, |
| 308 Node* control); | 309 Node* control); |
| 310 |
| 309 Node* BuildChangeInt32ToTagged(Node* value); | 311 Node* BuildChangeInt32ToTagged(Node* value); |
| 310 Node* BuildChangeFloat64ToTagged(Node* value); | 312 Node* BuildChangeFloat64ToTagged(Node* value); |
| 311 Node* BuildChangeTaggedToFloat64(Node* value); | 313 Node* BuildChangeTaggedToFloat64(Node* value); |
| 312 | 314 |
| 313 Node* BuildChangeInt32ToSmi(Node* value); | 315 Node* BuildChangeInt32ToSmi(Node* value); |
| 314 Node* BuildChangeSmiToInt32(Node* value); | 316 Node* BuildChangeSmiToInt32(Node* value); |
| 315 Node* BuildChangeUint32ToSmi(Node* value); | 317 Node* BuildChangeUint32ToSmi(Node* value); |
| 316 Node* BuildChangeSmiToFloat64(Node* value); | 318 Node* BuildChangeSmiToFloat64(Node* value); |
| 317 Node* BuildTestNotSmi(Node* value); | 319 Node* BuildTestNotSmi(Node* value); |
| 318 Node* BuildSmiShiftBitsConstant(); | 320 Node* BuildSmiShiftBitsConstant(); |
| (...skipping 21 matching lines...) Expand all Loading... |
| 340 } | 342 } |
| 341 | 343 |
| 342 int AddParameterNodes(Node** args, int pos, int param_count, | 344 int AddParameterNodes(Node** args, int pos, int param_count, |
| 343 wasm::FunctionSig* sig); | 345 wasm::FunctionSig* sig); |
| 344 }; | 346 }; |
| 345 } // namespace compiler | 347 } // namespace compiler |
| 346 } // namespace internal | 348 } // namespace internal |
| 347 } // namespace v8 | 349 } // namespace v8 |
| 348 | 350 |
| 349 #endif // V8_COMPILER_WASM_COMPILER_H_ | 351 #endif // V8_COMPILER_WASM_COMPILER_H_ |
| OLD | NEW |