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 #include "src/compiler/code-generator.h" | 5 #include "src/compiler/code-generator.h" |
6 | 6 |
7 #include "src/compiler/code-generator-impl.h" | 7 #include "src/compiler/code-generator-impl.h" |
8 #include "src/compiler/gap-resolver.h" | 8 #include "src/compiler/gap-resolver.h" |
9 #include "src/compiler/node-matchers.h" | 9 #include "src/compiler/node-matchers.h" |
10 #include "src/ppc/macro-assembler-ppc.h" | 10 #include "src/ppc/macro-assembler-ppc.h" |
(...skipping 669 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 break; | 680 break; |
681 } | 681 } |
682 case kArchRet: | 682 case kArchRet: |
683 AssembleReturn(); | 683 AssembleReturn(); |
684 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 684 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
685 break; | 685 break; |
686 case kArchStackPointer: | 686 case kArchStackPointer: |
687 __ mr(i.OutputRegister(), sp); | 687 __ mr(i.OutputRegister(), sp); |
688 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 688 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
689 break; | 689 break; |
| 690 case kArchFramePointer: |
| 691 __ mr(i.OutputRegister(), fp); |
| 692 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
| 693 break; |
690 case kArchTruncateDoubleToI: | 694 case kArchTruncateDoubleToI: |
691 // TODO(mbrandy): move slow call to stub out of line. | 695 // TODO(mbrandy): move slow call to stub out of line. |
692 __ TruncateDoubleToI(i.OutputRegister(), i.InputDoubleRegister(0)); | 696 __ TruncateDoubleToI(i.OutputRegister(), i.InputDoubleRegister(0)); |
693 DCHECK_EQ(LeaveRC, i.OutputRCBit()); | 697 DCHECK_EQ(LeaveRC, i.OutputRCBit()); |
694 break; | 698 break; |
695 case kPPC_And: | 699 case kPPC_And: |
696 if (HasRegisterInput(instr, 1)) { | 700 if (HasRegisterInput(instr, 1)) { |
697 __ and_(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1), | 701 __ and_(i.OutputRegister(), i.InputRegister(0), i.InputRegister(1), |
698 i.OutputRCBit()); | 702 i.OutputRCBit()); |
699 } else { | 703 } else { |
(...skipping 852 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1552 } | 1556 } |
1553 } | 1557 } |
1554 MarkLazyDeoptSite(); | 1558 MarkLazyDeoptSite(); |
1555 } | 1559 } |
1556 | 1560 |
1557 #undef __ | 1561 #undef __ |
1558 | 1562 |
1559 } // namespace compiler | 1563 } // namespace compiler |
1560 } // namespace internal | 1564 } // namespace internal |
1561 } // namespace v8 | 1565 } // namespace v8 |
OLD | NEW |