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_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 5 #ifndef V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 6 #define V8_CRANKSHAFT_PPC_LITHIUM_PPC_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 505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
516 public: | 516 public: |
517 LApplyArguments(LOperand* function, LOperand* receiver, LOperand* length, | 517 LApplyArguments(LOperand* function, LOperand* receiver, LOperand* length, |
518 LOperand* elements) { | 518 LOperand* elements) { |
519 inputs_[0] = function; | 519 inputs_[0] = function; |
520 inputs_[1] = receiver; | 520 inputs_[1] = receiver; |
521 inputs_[2] = length; | 521 inputs_[2] = length; |
522 inputs_[3] = elements; | 522 inputs_[3] = elements; |
523 } | 523 } |
524 | 524 |
525 DECLARE_CONCRETE_INSTRUCTION(ApplyArguments, "apply-arguments") | 525 DECLARE_CONCRETE_INSTRUCTION(ApplyArguments, "apply-arguments") |
| 526 DECLARE_HYDROGEN_ACCESSOR(ApplyArguments) |
526 | 527 |
527 LOperand* function() { return inputs_[0]; } | 528 LOperand* function() { return inputs_[0]; } |
528 LOperand* receiver() { return inputs_[1]; } | 529 LOperand* receiver() { return inputs_[1]; } |
529 LOperand* length() { return inputs_[2]; } | 530 LOperand* length() { return inputs_[2]; } |
530 LOperand* elements() { return inputs_[3]; } | 531 LOperand* elements() { return inputs_[3]; } |
531 }; | 532 }; |
532 | 533 |
533 | 534 |
534 class LAccessArgumentsAt final : public LTemplateInstruction<1, 3, 0> { | 535 class LAccessArgumentsAt final : public LTemplateInstruction<1, 3, 0> { |
535 public: | 536 public: |
(...skipping 2020 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2556 | 2557 |
2557 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2558 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2558 }; | 2559 }; |
2559 | 2560 |
2560 #undef DECLARE_HYDROGEN_ACCESSOR | 2561 #undef DECLARE_HYDROGEN_ACCESSOR |
2561 #undef DECLARE_CONCRETE_INSTRUCTION | 2562 #undef DECLARE_CONCRETE_INSTRUCTION |
2562 } // namespace internal | 2563 } // namespace internal |
2563 } // namespace v8 | 2564 } // namespace v8 |
2564 | 2565 |
2565 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ | 2566 #endif // V8_CRANKSHAFT_PPC_LITHIUM_PPC_H_ |
OLD | NEW |