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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 bool ThrowsException(Node* node, Node** if_success, Node** if_exception); | 141 bool ThrowsException(Node* node, Node** if_success, Node** if_exception); |
142 void AppendToMerge(Node* merge, Node* from); | 142 void AppendToMerge(Node* merge, Node* from); |
143 void AppendToPhi(Node* phi, Node* from); | 143 void AppendToPhi(Node* phi, Node* from); |
144 | 144 |
145 void StackCheck(wasm::WasmCodePosition position, Node** effect = nullptr, | 145 void StackCheck(wasm::WasmCodePosition position, Node** effect = nullptr, |
146 Node** control = nullptr); | 146 Node** control = nullptr); |
147 | 147 |
148 //----------------------------------------------------------------------- | 148 //----------------------------------------------------------------------- |
149 // Operations that read and/or write {control} and {effect}. | 149 // Operations that read and/or write {control} and {effect}. |
150 //----------------------------------------------------------------------- | 150 //----------------------------------------------------------------------- |
151 Node* Branch(Node* cond, Node** true_node, Node** false_node); | 151 Node* BranchNoHint(Node* cond, Node** true_node, Node** false_node); |
| 152 Node* BranchExpectTrue(Node* cond, Node** true_node, Node** false_node); |
| 153 Node* BranchExpectFalse(Node* cond, Node** true_node, Node** false_node); |
| 154 |
152 Node* Switch(unsigned count, Node* key); | 155 Node* Switch(unsigned count, Node* key); |
153 Node* IfValue(int32_t value, Node* sw); | 156 Node* IfValue(int32_t value, Node* sw); |
154 Node* IfDefault(Node* sw); | 157 Node* IfDefault(Node* sw); |
155 Node* Return(unsigned count, Node** vals); | 158 Node* Return(unsigned count, Node** vals); |
156 Node* ReturnVoid(); | 159 Node* ReturnVoid(); |
157 Node* Unreachable(wasm::WasmCodePosition position); | 160 Node* Unreachable(wasm::WasmCodePosition position); |
158 | 161 |
159 Node* CallDirect(uint32_t index, Node** args, Node*** rets, | 162 Node* CallDirect(uint32_t index, Node** args, Node*** rets, |
160 wasm::WasmCodePosition position); | 163 wasm::WasmCodePosition position); |
161 Node* CallIndirect(uint32_t index, Node** args, Node*** rets, | 164 Node* CallIndirect(uint32_t index, Node** args, Node*** rets, |
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
345 } | 348 } |
346 | 349 |
347 int AddParameterNodes(Node** args, int pos, int param_count, | 350 int AddParameterNodes(Node** args, int pos, int param_count, |
348 wasm::FunctionSig* sig); | 351 wasm::FunctionSig* sig); |
349 }; | 352 }; |
350 } // namespace compiler | 353 } // namespace compiler |
351 } // namespace internal | 354 } // namespace internal |
352 } // namespace v8 | 355 } // namespace v8 |
353 | 356 |
354 #endif // V8_COMPILER_WASM_COMPILER_H_ | 357 #endif // V8_COMPILER_WASM_COMPILER_H_ |
OLD | NEW |