| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_INSTRUCTION_SELECTOR_H_ | 5 #ifndef V8_COMPILER_INSTRUCTION_SELECTOR_H_ |
| 6 #define V8_COMPILER_INSTRUCTION_SELECTOR_H_ | 6 #define V8_COMPILER_INSTRUCTION_SELECTOR_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "src/compiler/common-operator.h" | 10 #include "src/compiler/common-operator.h" |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 // to the inputs and outputs of the call. | 169 // to the inputs and outputs of the call. |
| 170 // {call_code_immediate} to generate immediate operands to calls of code. | 170 // {call_code_immediate} to generate immediate operands to calls of code. |
| 171 // {call_address_immediate} to generate immediate operands to address calls. | 171 // {call_address_immediate} to generate immediate operands to address calls. |
| 172 void InitializeCallBuffer(Node* call, CallBuffer* buffer, | 172 void InitializeCallBuffer(Node* call, CallBuffer* buffer, |
| 173 bool call_code_immediate, | 173 bool call_code_immediate, |
| 174 bool call_address_immediate); | 174 bool call_address_immediate); |
| 175 bool IsTailCallAddressImmediate(); | 175 bool IsTailCallAddressImmediate(); |
| 176 | 176 |
| 177 FrameStateDescriptor* GetFrameStateDescriptor(Node* node); | 177 FrameStateDescriptor* GetFrameStateDescriptor(Node* node); |
| 178 | 178 |
| 179 enum class FrameStateInputKind { kAny, kStackSlot }; | |
| 180 void AddFrameStateInputs(Node* state, InstructionOperandVector* inputs, | |
| 181 FrameStateDescriptor* descriptor, | |
| 182 FrameStateInputKind kind); | |
| 183 static InstructionOperand OperandForDeopt(OperandGenerator* g, Node* input, | |
| 184 FrameStateInputKind kind); | |
| 185 | |
| 186 // =========================================================================== | 179 // =========================================================================== |
| 187 // ============= Architecture-specific graph covering methods. =============== | 180 // ============= Architecture-specific graph covering methods. =============== |
| 188 // =========================================================================== | 181 // =========================================================================== |
| 189 | 182 |
| 190 // Visit nodes in the given block and generate code. | 183 // Visit nodes in the given block and generate code. |
| 191 void VisitBlock(BasicBlock* block); | 184 void VisitBlock(BasicBlock* block); |
| 192 | 185 |
| 193 // Visit the node for the control flow at the end of the block, generating | 186 // Visit the node for the control flow at the end of the block, generating |
| 194 // code if necessary. | 187 // code if necessary. |
| 195 void VisitControl(BasicBlock* block); | 188 void VisitControl(BasicBlock* block); |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 242 BoolVector defined_; | 235 BoolVector defined_; |
| 243 BoolVector used_; | 236 BoolVector used_; |
| 244 IntVector virtual_registers_; | 237 IntVector virtual_registers_; |
| 245 }; | 238 }; |
| 246 | 239 |
| 247 } // namespace compiler | 240 } // namespace compiler |
| 248 } // namespace internal | 241 } // namespace internal |
| 249 } // namespace v8 | 242 } // namespace v8 |
| 250 | 243 |
| 251 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ | 244 #endif // V8_COMPILER_INSTRUCTION_SELECTOR_H_ |
| OLD | NEW |