OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
699 ASSERT(info()->IsOptimizing() || info()->IsStub()); | 699 ASSERT(info()->IsOptimizing() || info()->IsStub()); |
700 Address entry = | 700 Address entry = |
701 Deoptimizer::GetDeoptimizationEntry(isolate(), id, bailout_type); | 701 Deoptimizer::GetDeoptimizationEntry(isolate(), id, bailout_type); |
702 if (entry == NULL) { | 702 if (entry == NULL) { |
703 Abort("bailout was not prepared"); | 703 Abort("bailout was not prepared"); |
704 return; | 704 return; |
705 } | 705 } |
706 | 706 |
707 ASSERT(FLAG_deopt_every_n_times == 0); // Not yet implemented on x64. | 707 ASSERT(FLAG_deopt_every_n_times == 0); // Not yet implemented on x64. |
708 | 708 |
709 if (FLAG_trap_on_deopt) { | 709 if (FLAG_trap_on_deopt && info()->IsOptimizing()) { |
710 Label done; | 710 Label done; |
711 if (cc != no_condition) { | 711 if (cc != no_condition) { |
712 __ j(NegateCondition(cc), &done, Label::kNear); | 712 __ j(NegateCondition(cc), &done, Label::kNear); |
713 } | 713 } |
714 __ int3(); | 714 __ int3(); |
715 __ bind(&done); | 715 __ bind(&done); |
716 } | 716 } |
717 | 717 |
718 ASSERT(info()->IsStub() || frame_is_built_); | 718 ASSERT(info()->IsStub() || frame_is_built_); |
719 bool needs_lazy_deopt = info()->IsStub(); | 719 bool needs_lazy_deopt = info()->IsStub(); |
(...skipping 990 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1710 } | 1710 } |
1711 | 1711 |
1712 | 1712 |
1713 void LCodeGen::DoAddI(LAddI* instr) { | 1713 void LCodeGen::DoAddI(LAddI* instr) { |
1714 LOperand* left = instr->left(); | 1714 LOperand* left = instr->left(); |
1715 LOperand* right = instr->right(); | 1715 LOperand* right = instr->right(); |
1716 | 1716 |
1717 if (LAddI::UseLea(instr->hydrogen()) && !left->Equals(instr->result())) { | 1717 if (LAddI::UseLea(instr->hydrogen()) && !left->Equals(instr->result())) { |
1718 if (right->IsConstantOperand()) { | 1718 if (right->IsConstantOperand()) { |
1719 int32_t offset = ToInteger32(LConstantOperand::cast(right)); | 1719 int32_t offset = ToInteger32(LConstantOperand::cast(right)); |
1720 __ lea(ToRegister(instr->result()), MemOperand(ToRegister(left), offset)); | 1720 __ leal(ToRegister(instr->result()), |
| 1721 MemOperand(ToRegister(left), offset)); |
1721 } else { | 1722 } else { |
1722 Operand address(ToRegister(left), ToRegister(right), times_1, 0); | 1723 Operand address(ToRegister(left), ToRegister(right), times_1, 0); |
1723 __ lea(ToRegister(instr->result()), address); | 1724 __ leal(ToRegister(instr->result()), address); |
1724 } | 1725 } |
1725 } else { | 1726 } else { |
1726 if (right->IsConstantOperand()) { | 1727 if (right->IsConstantOperand()) { |
1727 __ addl(ToRegister(left), | 1728 __ addl(ToRegister(left), |
1728 Immediate(ToInteger32(LConstantOperand::cast(right)))); | 1729 Immediate(ToInteger32(LConstantOperand::cast(right)))); |
1729 } else if (right->IsRegister()) { | 1730 } else if (right->IsRegister()) { |
1730 __ addl(ToRegister(left), ToRegister(right)); | 1731 __ addl(ToRegister(left), ToRegister(right)); |
1731 } else { | 1732 } else { |
1732 __ addl(ToRegister(left), ToOperand(right)); | 1733 __ addl(ToRegister(left), ToOperand(right)); |
1733 } | 1734 } |
(...skipping 3870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5604 FixedArray::kHeaderSize - kPointerSize)); | 5605 FixedArray::kHeaderSize - kPointerSize)); |
5605 __ bind(&done); | 5606 __ bind(&done); |
5606 } | 5607 } |
5607 | 5608 |
5608 | 5609 |
5609 #undef __ | 5610 #undef __ |
5610 | 5611 |
5611 } } // namespace v8::internal | 5612 } } // namespace v8::internal |
5612 | 5613 |
5613 #endif // V8_TARGET_ARCH_X64 | 5614 #endif // V8_TARGET_ARCH_X64 |
OLD | NEW |