| 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 1170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1181 } else { | 1181 } else { |
| 1182 __ mul(left, left, right); | 1182 __ mul(left, left, right); |
| 1183 } | 1183 } |
| 1184 | 1184 |
| 1185 if (instr->hydrogen()->CheckFlag(HValue::kBailoutOnMinusZero)) { | 1185 if (instr->hydrogen()->CheckFlag(HValue::kBailoutOnMinusZero)) { |
| 1186 // Bail out if the result is supposed to be negative zero. | 1186 // Bail out if the result is supposed to be negative zero. |
| 1187 Label done; | 1187 Label done; |
| 1188 __ tst(left, Operand(left)); | 1188 __ tst(left, Operand(left)); |
| 1189 __ b(ne, &done); | 1189 __ b(ne, &done); |
| 1190 if (instr->InputAt(1)->IsConstantOperand()) { | 1190 if (instr->InputAt(1)->IsConstantOperand()) { |
| 1191 if (ToInteger32(LConstantOperand::cast(instr->InputAt(1))) < 0) { | 1191 if (ToInteger32(LConstantOperand::cast(instr->InputAt(1))) <= 0) { |
| 1192 DeoptimizeIf(kNoCondition, instr->environment()); | 1192 DeoptimizeIf(kNoCondition, instr->environment()); |
| 1193 } | 1193 } |
| 1194 } else { | 1194 } else { |
| 1195 // Test the non-zero operand for negative sign. | 1195 // Test the non-zero operand for negative sign. |
| 1196 __ cmp(ToRegister(instr->TempAt(0)), Operand(0)); | 1196 __ cmp(ToRegister(instr->TempAt(0)), Operand(0)); |
| 1197 DeoptimizeIf(mi, instr->environment()); | 1197 DeoptimizeIf(mi, instr->environment()); |
| 1198 } | 1198 } |
| 1199 __ bind(&done); | 1199 __ bind(&done); |
| 1200 } | 1200 } |
| 1201 } | 1201 } |
| (...skipping 2616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3818 | 3818 |
| 3819 | 3819 |
| 3820 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { | 3820 void LCodeGen::DoOsrEntry(LOsrEntry* instr) { |
| 3821 Abort("DoOsrEntry unimplemented."); | 3821 Abort("DoOsrEntry unimplemented."); |
| 3822 } | 3822 } |
| 3823 | 3823 |
| 3824 | 3824 |
| 3825 #undef __ | 3825 #undef __ |
| 3826 | 3826 |
| 3827 } } // namespace v8::internal | 3827 } } // namespace v8::internal |
| OLD | NEW |