OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
797 if (instr->hydrogen()->CheckFlag(HValue::kCanOverflow)) { | 797 if (instr->hydrogen()->CheckFlag(HValue::kCanOverflow)) { |
798 DeoptimizeIf(overflow, instr->environment()); | 798 DeoptimizeIf(overflow, instr->environment()); |
799 } | 799 } |
800 | 800 |
801 if (instr->hydrogen()->CheckFlag(HValue::kBailoutOnMinusZero)) { | 801 if (instr->hydrogen()->CheckFlag(HValue::kBailoutOnMinusZero)) { |
802 // Bail out if the result is supposed to be negative zero. | 802 // Bail out if the result is supposed to be negative zero. |
803 NearLabel done; | 803 NearLabel done; |
804 __ test(left, Operand(left)); | 804 __ test(left, Operand(left)); |
805 __ j(not_zero, &done); | 805 __ j(not_zero, &done); |
806 if (right->IsConstantOperand()) { | 806 if (right->IsConstantOperand()) { |
807 if (ToInteger32(LConstantOperand::cast(right)) < 0) { | 807 if (ToInteger32(LConstantOperand::cast(right)) <= 0) { |
808 DeoptimizeIf(no_condition, instr->environment()); | 808 DeoptimizeIf(no_condition, instr->environment()); |
809 } | 809 } |
810 } else { | 810 } else { |
811 // Test the non-zero operand for negative sign. | 811 // Test the non-zero operand for negative sign. |
812 __ or_(ToRegister(instr->TempAt(0)), ToOperand(right)); | 812 __ or_(ToRegister(instr->TempAt(0)), ToOperand(right)); |
813 DeoptimizeIf(sign, instr->environment()); | 813 DeoptimizeIf(sign, instr->environment()); |
814 } | 814 } |
815 __ bind(&done); | 815 __ bind(&done); |
816 } | 816 } |
817 } | 817 } |
(...skipping 2829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3647 ASSERT(osr_pc_offset_ == -1); | 3647 ASSERT(osr_pc_offset_ == -1); |
3648 osr_pc_offset_ = masm()->pc_offset(); | 3648 osr_pc_offset_ = masm()->pc_offset(); |
3649 } | 3649 } |
3650 | 3650 |
3651 | 3651 |
3652 #undef __ | 3652 #undef __ |
3653 | 3653 |
3654 } } // namespace v8::internal | 3654 } } // namespace v8::internal |
3655 | 3655 |
3656 #endif // V8_TARGET_ARCH_IA32 | 3656 #endif // V8_TARGET_ARCH_IA32 |
OLD | NEW |