| 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 841 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1541 } | 1545 } |
| 1542 } | 1546 } |
| 1543 MarkLazyDeoptSite(); | 1547 MarkLazyDeoptSite(); |
| 1544 } | 1548 } |
| 1545 | 1549 |
| 1546 #undef __ | 1550 #undef __ |
| 1547 | 1551 |
| 1548 } // namespace compiler | 1552 } // namespace compiler |
| 1549 } // namespace internal | 1553 } // namespace internal |
| 1550 } // namespace v8 | 1554 } // namespace v8 |
| OLD | NEW |