| 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 245 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 256   } | 256   } | 
| 257   void MarkAsFloat32(Node* node) { | 257   void MarkAsFloat32(Node* node) { | 
| 258     MarkAsRepresentation(MachineRepresentation::kFloat32, node); | 258     MarkAsRepresentation(MachineRepresentation::kFloat32, node); | 
| 259   } | 259   } | 
| 260   void MarkAsFloat64(Node* node) { | 260   void MarkAsFloat64(Node* node) { | 
| 261     MarkAsRepresentation(MachineRepresentation::kFloat64, node); | 261     MarkAsRepresentation(MachineRepresentation::kFloat64, node); | 
| 262   } | 262   } | 
| 263   void MarkAsSimd128(Node* node) { | 263   void MarkAsSimd128(Node* node) { | 
| 264     MarkAsRepresentation(MachineRepresentation::kSimd128, node); | 264     MarkAsRepresentation(MachineRepresentation::kSimd128, node); | 
| 265   } | 265   } | 
|  | 266   void MarkAsSimd1x4(Node* node) { | 
|  | 267     if (kSimdMaskRegisters) { | 
|  | 268       MarkAsRepresentation(MachineRepresentation::kSimd1x4, node); | 
|  | 269     } else { | 
|  | 270       MarkAsSimd128(node); | 
|  | 271     } | 
|  | 272   } | 
|  | 273   void MarkAsSimd1x8(Node* node) { | 
|  | 274     if (kSimdMaskRegisters) { | 
|  | 275       MarkAsRepresentation(MachineRepresentation::kSimd1x8, node); | 
|  | 276     } else { | 
|  | 277       MarkAsSimd128(node); | 
|  | 278     } | 
|  | 279   } | 
|  | 280   void MarkAsSimd1x16(Node* node) { | 
|  | 281     if (kSimdMaskRegisters) { | 
|  | 282       MarkAsRepresentation(MachineRepresentation::kSimd1x16, node); | 
|  | 283     } else { | 
|  | 284       MarkAsSimd128(node); | 
|  | 285     } | 
|  | 286   } | 
| 266   void MarkAsReference(Node* node) { | 287   void MarkAsReference(Node* node) { | 
| 267     MarkAsRepresentation(MachineRepresentation::kTagged, node); | 288     MarkAsRepresentation(MachineRepresentation::kTagged, node); | 
| 268   } | 289   } | 
| 269 | 290 | 
| 270   // Inform the register allocation of the representation of the unallocated | 291   // Inform the register allocation of the representation of the unallocated | 
| 271   // operand {op}. | 292   // operand {op}. | 
| 272   void MarkAsRepresentation(MachineRepresentation rep, | 293   void MarkAsRepresentation(MachineRepresentation rep, | 
| 273                             const InstructionOperand& op); | 294                             const InstructionOperand& op); | 
| 274 | 295 | 
| 275   enum CallBufferFlag { | 296   enum CallBufferFlag { | 
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 390   EnableSerialization enable_serialization_; | 411   EnableSerialization enable_serialization_; | 
| 391   Frame* frame_; | 412   Frame* frame_; | 
| 392   bool instruction_selection_failed_; | 413   bool instruction_selection_failed_; | 
| 393 }; | 414 }; | 
| 394 | 415 | 
| 395 }  // namespace compiler | 416 }  // namespace compiler | 
| 396 }  // namespace internal | 417 }  // namespace internal | 
| 397 }  // namespace v8 | 418 }  // namespace v8 | 
| 398 | 419 | 
| 399 #endif  // V8_COMPILER_INSTRUCTION_SELECTOR_H_ | 420 #endif  // V8_COMPILER_INSTRUCTION_SELECTOR_H_ | 
| OLD | NEW | 
|---|