| 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 5229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5240 Operand right = ToOperand32I(instr->right()); | 5240 Operand right = ToOperand32I(instr->right()); |
| 5241 if (can_overflow) { | 5241 if (can_overflow) { |
| 5242 __ Subs(result, left, right); | 5242 __ Subs(result, left, right); |
| 5243 DeoptimizeIf(vs, instr->environment()); | 5243 DeoptimizeIf(vs, instr->environment()); |
| 5244 } else { | 5244 } else { |
| 5245 __ Sub(result, left, right); | 5245 __ Sub(result, left, right); |
| 5246 } | 5246 } |
| 5247 } | 5247 } |
| 5248 | 5248 |
| 5249 | 5249 |
| 5250 void LCodeGen::DoSubS(LSubS* instr) { |
| 5251 bool can_overflow = instr->hydrogen()->CheckFlag(HValue::kCanOverflow); |
| 5252 Register result = ToRegister(instr->result()); |
| 5253 Register left = ToRegister(instr->left()); |
| 5254 Operand right = ToOperand(instr->right()); |
| 5255 if (can_overflow) { |
| 5256 __ Subs(result, left, right); |
| 5257 DeoptimizeIf(vs, instr->environment()); |
| 5258 } else { |
| 5259 __ Sub(result, left, right); |
| 5260 } |
| 5261 } |
| 5262 |
| 5263 |
| 5250 void LCodeGen::DoDeferredTaggedToI(LTaggedToI* instr, | 5264 void LCodeGen::DoDeferredTaggedToI(LTaggedToI* instr, |
| 5251 LOperand* value, | 5265 LOperand* value, |
| 5252 LOperand* temp1, | 5266 LOperand* temp1, |
| 5253 LOperand* temp2) { | 5267 LOperand* temp2) { |
| 5254 Register input = ToRegister(value); | 5268 Register input = ToRegister(value); |
| 5255 Register scratch1 = ToRegister(temp1); | 5269 Register scratch1 = ToRegister(temp1); |
| 5256 DoubleRegister dbl_scratch1 = double_scratch(); | 5270 DoubleRegister dbl_scratch1 = double_scratch(); |
| 5257 | 5271 |
| 5258 Label done; | 5272 Label done; |
| 5259 | 5273 |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5662 __ Bind(&out_of_object); | 5676 __ Bind(&out_of_object); |
| 5663 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); | 5677 __ Ldr(result, FieldMemOperand(object, JSObject::kPropertiesOffset)); |
| 5664 // Index is equal to negated out of object property index plus 1. | 5678 // Index is equal to negated out of object property index plus 1. |
| 5665 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); | 5679 __ Sub(result, result, Operand::UntagSmiAndScale(index, kPointerSizeLog2)); |
| 5666 __ Ldr(result, FieldMemOperand(result, | 5680 __ Ldr(result, FieldMemOperand(result, |
| 5667 FixedArray::kHeaderSize - kPointerSize)); | 5681 FixedArray::kHeaderSize - kPointerSize)); |
| 5668 __ Bind(&done); | 5682 __ Bind(&done); |
| 5669 } | 5683 } |
| 5670 | 5684 |
| 5671 } } // namespace v8::internal | 5685 } } // namespace v8::internal |
| OLD | NEW |