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_MIPS_LITHIUM_MIPS_H_ | 5 #ifndef V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 6 #define V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_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 512 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
523 LOperand* receiver, | 523 LOperand* receiver, |
524 LOperand* length, | 524 LOperand* length, |
525 LOperand* elements) { | 525 LOperand* elements) { |
526 inputs_[0] = function; | 526 inputs_[0] = function; |
527 inputs_[1] = receiver; | 527 inputs_[1] = receiver; |
528 inputs_[2] = length; | 528 inputs_[2] = length; |
529 inputs_[3] = elements; | 529 inputs_[3] = elements; |
530 } | 530 } |
531 | 531 |
532 DECLARE_CONCRETE_INSTRUCTION(ApplyArguments, "apply-arguments") | 532 DECLARE_CONCRETE_INSTRUCTION(ApplyArguments, "apply-arguments") |
| 533 DECLARE_HYDROGEN_ACCESSOR(ApplyArguments) |
533 | 534 |
534 LOperand* function() { return inputs_[0]; } | 535 LOperand* function() { return inputs_[0]; } |
535 LOperand* receiver() { return inputs_[1]; } | 536 LOperand* receiver() { return inputs_[1]; } |
536 LOperand* length() { return inputs_[2]; } | 537 LOperand* length() { return inputs_[2]; } |
537 LOperand* elements() { return inputs_[3]; } | 538 LOperand* elements() { return inputs_[3]; } |
538 }; | 539 }; |
539 | 540 |
540 | 541 |
541 class LAccessArgumentsAt final : public LTemplateInstruction<1, 3, 0> { | 542 class LAccessArgumentsAt final : public LTemplateInstruction<1, 3, 0> { |
542 public: | 543 public: |
(...skipping 2086 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2629 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); | 2630 DISALLOW_COPY_AND_ASSIGN(LChunkBuilder); |
2630 }; | 2631 }; |
2631 | 2632 |
2632 #undef DECLARE_HYDROGEN_ACCESSOR | 2633 #undef DECLARE_HYDROGEN_ACCESSOR |
2633 #undef DECLARE_CONCRETE_INSTRUCTION | 2634 #undef DECLARE_CONCRETE_INSTRUCTION |
2634 | 2635 |
2635 } // namespace internal | 2636 } // namespace internal |
2636 } // namespace v8 | 2637 } // namespace v8 |
2637 | 2638 |
2638 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ | 2639 #endif // V8_CRANKSHAFT_MIPS_LITHIUM_MIPS_H_ |
OLD | NEW |