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_X87_LITHIUM_X87_H_ | 5 #ifndef V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_H_ | 6 #define V8_CRANKSHAFT_X87_LITHIUM_X87_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 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 inputs_[2] = length; | 546 inputs_[2] = length; |
547 inputs_[3] = elements; | 547 inputs_[3] = elements; |
548 } | 548 } |
549 | 549 |
550 LOperand* function() { return inputs_[0]; } | 550 LOperand* function() { return inputs_[0]; } |
551 LOperand* receiver() { return inputs_[1]; } | 551 LOperand* receiver() { return inputs_[1]; } |
552 LOperand* length() { return inputs_[2]; } | 552 LOperand* length() { return inputs_[2]; } |
553 LOperand* elements() { return inputs_[3]; } | 553 LOperand* elements() { return inputs_[3]; } |
554 | 554 |
555 DECLARE_CONCRETE_INSTRUCTION(ApplyArguments, "apply-arguments") | 555 DECLARE_CONCRETE_INSTRUCTION(ApplyArguments, "apply-arguments") |
| 556 DECLARE_HYDROGEN_ACCESSOR(ApplyArguments) |
556 }; | 557 }; |
557 | 558 |
558 | 559 |
559 class LAccessArgumentsAt final : public LTemplateInstruction<1, 3, 0> { | 560 class LAccessArgumentsAt final : public LTemplateInstruction<1, 3, 0> { |
560 public: | 561 public: |
561 LAccessArgumentsAt(LOperand* arguments, LOperand* length, LOperand* index) { | 562 LAccessArgumentsAt(LOperand* arguments, LOperand* length, LOperand* index) { |
562 inputs_[0] = arguments; | 563 inputs_[0] = arguments; |
563 inputs_[1] = length; | 564 inputs_[1] = length; |
564 inputs_[2] = index; | 565 inputs_[2] = index; |
565 } | 566 } |
(...skipping 2119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2685 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2686 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2686 }; | 2687 }; |
2687 | 2688 |
2688 #undef DECLARE_HYDROGEN_ACCESSOR | 2689 #undef DECLARE_HYDROGEN_ACCESSOR |
2689 #undef DECLARE_CONCRETE_INSTRUCTION | 2690 #undef DECLARE_CONCRETE_INSTRUCTION |
2690 | 2691 |
2691 } // namespace internal | 2692 } // namespace internal |
2692 } // namespace v8 | 2693 } // namespace v8 |
2693 | 2694 |
2694 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ | 2695 #endif // V8_CRANKSHAFT_X87_LITHIUM_X87_H_ |
OLD | NEW |