OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 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_ARM64_LITHIUM_ARM64_H_ | 5 #ifndef V8_ARM64_LITHIUM_ARM64_H_ |
6 #define V8_ARM64_LITHIUM_ARM64_H_ | 6 #define V8_ARM64_LITHIUM_ARM64_H_ |
7 | 7 |
8 #include "src/hydrogen.h" | 8 #include "src/hydrogen.h" |
9 #include "src/lithium.h" | 9 #include "src/lithium.h" |
10 #include "src/lithium-allocator.h" | 10 #include "src/lithium-allocator.h" |
(...skipping 1501 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1512 } | 1512 } |
1513 | 1513 |
1514 LOperand* value() { return inputs_[0]; } | 1514 LOperand* value() { return inputs_[0]; } |
1515 | 1515 |
1516 DECLARE_CONCRETE_INSTRUCTION(Integer32ToDouble, "int32-to-double") | 1516 DECLARE_CONCRETE_INSTRUCTION(Integer32ToDouble, "int32-to-double") |
1517 }; | 1517 }; |
1518 | 1518 |
1519 | 1519 |
1520 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> { | 1520 class LCallWithDescriptor V8_FINAL : public LTemplateResultInstruction<1> { |
1521 public: | 1521 public: |
1522 LCallWithDescriptor(const CallInterfaceDescriptor* descriptor, | 1522 LCallWithDescriptor(const InterfaceDescriptor* descriptor, |
1523 const ZoneList<LOperand*>& operands, | 1523 const ZoneList<LOperand*>& operands, |
1524 Zone* zone) | 1524 Zone* zone) |
1525 : descriptor_(descriptor), | 1525 : descriptor_(descriptor), |
1526 inputs_(descriptor->environment_length() + 1, zone) { | 1526 inputs_(descriptor->GetRegisterParameterCount() + 1, zone) { |
1527 ASSERT(descriptor->environment_length() + 1 == operands.length()); | 1527 ASSERT(descriptor->GetRegisterParameterCount() + 1 == operands.length()); |
1528 inputs_.AddAll(operands, zone); | 1528 inputs_.AddAll(operands, zone); |
1529 } | 1529 } |
1530 | 1530 |
1531 LOperand* target() const { return inputs_[0]; } | 1531 LOperand* target() const { return inputs_[0]; } |
1532 | 1532 |
1533 const CallInterfaceDescriptor* descriptor() { return descriptor_; } | 1533 const InterfaceDescriptor* descriptor() { return descriptor_; } |
1534 | 1534 |
1535 private: | 1535 private: |
1536 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") | 1536 DECLARE_CONCRETE_INSTRUCTION(CallWithDescriptor, "call-with-descriptor") |
1537 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) | 1537 DECLARE_HYDROGEN_ACCESSOR(CallWithDescriptor) |
1538 | 1538 |
1539 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; | 1539 virtual void PrintDataTo(StringStream* stream) V8_OVERRIDE; |
1540 | 1540 |
1541 int arity() const { return hydrogen()->argument_count() - 1; } | 1541 int arity() const { return hydrogen()->argument_count() - 1; } |
1542 | 1542 |
1543 const CallInterfaceDescriptor* descriptor_; | 1543 const InterfaceDescriptor* descriptor_; |
1544 ZoneList<LOperand*> inputs_; | 1544 ZoneList<LOperand*> inputs_; |
1545 | 1545 |
1546 // Iterator support. | 1546 // Iterator support. |
1547 virtual int InputCount() V8_FINAL V8_OVERRIDE { return inputs_.length(); } | 1547 virtual int InputCount() V8_FINAL V8_OVERRIDE { return inputs_.length(); } |
1548 virtual LOperand* InputAt(int i) V8_FINAL V8_OVERRIDE { return inputs_[i]; } | 1548 virtual LOperand* InputAt(int i) V8_FINAL V8_OVERRIDE { return inputs_[i]; } |
1549 | 1549 |
1550 virtual int TempCount() V8_FINAL V8_OVERRIDE { return 0; } | 1550 virtual int TempCount() V8_FINAL V8_OVERRIDE { return 0; } |
1551 virtual LOperand* TempAt(int i) V8_FINAL V8_OVERRIDE { return NULL; } | 1551 virtual LOperand* TempAt(int i) V8_FINAL V8_OVERRIDE { return NULL; } |
1552 }; | 1552 }; |
1553 | 1553 |
(...skipping 1685 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3239 | 3239 |
3240 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 3240 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
3241 }; | 3241 }; |
3242 | 3242 |
3243 #undef DECLARE_HYDROGEN_ACCESSOR | 3243 #undef DECLARE_HYDROGEN_ACCESSOR |
3244 #undef DECLARE_CONCRETE_INSTRUCTION | 3244 #undef DECLARE_CONCRETE_INSTRUCTION |
3245 | 3245 |
3246 } } // namespace v8::internal | 3246 } } // namespace v8::internal |
3247 | 3247 |
3248 #endif // V8_ARM64_LITHIUM_ARM64_H_ | 3248 #endif // V8_ARM64_LITHIUM_ARM64_H_ |
OLD | NEW |