OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_CRANKSHAFT_X64_LITHIUM_X64_H_ | 5 #ifndef V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_H_ | 6 #define V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
7 | 7 |
8 #include "src/crankshaft/hydrogen.h" | 8 #include "src/crankshaft/hydrogen.h" |
9 #include "src/crankshaft/lithium.h" | 9 #include "src/crankshaft/lithium.h" |
10 #include "src/crankshaft/lithium-allocator.h" | 10 #include "src/crankshaft/lithium-allocator.h" |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 inputs_[2] = length; | 535 inputs_[2] = length; |
536 inputs_[3] = elements; | 536 inputs_[3] = elements; |
537 } | 537 } |
538 | 538 |
539 LOperand* function() { return inputs_[0]; } | 539 LOperand* function() { return inputs_[0]; } |
540 LOperand* receiver() { return inputs_[1]; } | 540 LOperand* receiver() { return inputs_[1]; } |
541 LOperand* length() { return inputs_[2]; } | 541 LOperand* length() { return inputs_[2]; } |
542 LOperand* elements() { return inputs_[3]; } | 542 LOperand* elements() { return inputs_[3]; } |
543 | 543 |
544 DECLARE_CONCRETE_INSTRUCTION(ApplyArguments, "apply-arguments") | 544 DECLARE_CONCRETE_INSTRUCTION(ApplyArguments, "apply-arguments") |
| 545 DECLARE_HYDROGEN_ACCESSOR(ApplyArguments) |
545 }; | 546 }; |
546 | 547 |
547 | 548 |
548 class LAccessArgumentsAt final : public LTemplateInstruction<1, 3, 0> { | 549 class LAccessArgumentsAt final : public LTemplateInstruction<1, 3, 0> { |
549 public: | 550 public: |
550 LAccessArgumentsAt(LOperand* arguments, LOperand* length, LOperand* index) { | 551 LAccessArgumentsAt(LOperand* arguments, LOperand* length, LOperand* index) { |
551 inputs_[0] = arguments; | 552 inputs_[0] = arguments; |
552 inputs_[1] = length; | 553 inputs_[1] = length; |
553 inputs_[2] = index; | 554 inputs_[2] = index; |
554 } | 555 } |
(...skipping 2098 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2653 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2654 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2654 }; | 2655 }; |
2655 | 2656 |
2656 #undef DECLARE_HYDROGEN_ACCESSOR | 2657 #undef DECLARE_HYDROGEN_ACCESSOR |
2657 #undef DECLARE_CONCRETE_INSTRUCTION | 2658 #undef DECLARE_CONCRETE_INSTRUCTION |
2658 | 2659 |
2659 } // namespace internal | 2660 } // namespace internal |
2660 } // namespace v8 | 2661 } // namespace v8 |
2661 | 2662 |
2662 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ | 2663 #endif // V8_CRANKSHAFT_X64_LITHIUM_X64_H_ |
OLD | NEW |