| 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 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Node* Throw(Node* input); |
| 138 Node* Catch(Node* input, wasm::WasmCodePosition position); | 138 Node* Catch(Node* input, wasm::WasmCodePosition position); |
| 139 unsigned InputCount(Node* node); | 139 unsigned InputCount(Node* node); |
| 140 bool IsPhiWithMerge(Node* phi, Node* merge); | 140 bool IsPhiWithMerge(Node* phi, Node* merge); |
| 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); | 145 void StackCheck(wasm::WasmCodePosition position, Node** effect = nullptr, |
| 146 Node** control = nullptr); |
| 146 | 147 |
| 147 //----------------------------------------------------------------------- | 148 //----------------------------------------------------------------------- |
| 148 // Operations that read and/or write {control} and {effect}. | 149 // Operations that read and/or write {control} and {effect}. |
| 149 //----------------------------------------------------------------------- | 150 //----------------------------------------------------------------------- |
| 150 Node* Branch(Node* cond, Node** true_node, Node** false_node); | 151 Node* Branch(Node* cond, Node** true_node, Node** false_node); |
| 151 Node* Switch(unsigned count, Node* key); | 152 Node* Switch(unsigned count, Node* key); |
| 152 Node* IfValue(int32_t value, Node* sw); | 153 Node* IfValue(int32_t value, Node* sw); |
| 153 Node* IfDefault(Node* sw); | 154 Node* IfDefault(Node* sw); |
| 154 Node* Return(unsigned count, Node** vals); | 155 Node* Return(unsigned count, Node** vals); |
| 155 Node* ReturnVoid(); | 156 Node* ReturnVoid(); |
| (...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 } | 345 } |
| 345 | 346 |
| 346 int AddParameterNodes(Node** args, int pos, int param_count, | 347 int AddParameterNodes(Node** args, int pos, int param_count, |
| 347 wasm::FunctionSig* sig); | 348 wasm::FunctionSig* sig); |
| 348 }; | 349 }; |
| 349 } // namespace compiler | 350 } // namespace compiler |
| 350 } // namespace internal | 351 } // namespace internal |
| 351 } // namespace v8 | 352 } // namespace v8 |
| 352 | 353 |
| 353 #endif // V8_COMPILER_WASM_COMPILER_H_ | 354 #endif // V8_COMPILER_WASM_COMPILER_H_ |
| OLD | NEW |