| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 4307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4318 ToInteger32(LConstantOperand::cast(instr->index())); | 4318 ToInteger32(LConstantOperand::cast(instr->index())); |
| 4319 if (instr->hydrogen()->length()->representation().IsTagged()) { | 4319 if (instr->hydrogen()->length()->representation().IsTagged()) { |
| 4320 __ mov(ip, Operand(Smi::FromInt(constant_index))); | 4320 __ mov(ip, Operand(Smi::FromInt(constant_index))); |
| 4321 } else { | 4321 } else { |
| 4322 __ mov(ip, Operand(constant_index)); | 4322 __ mov(ip, Operand(constant_index)); |
| 4323 } | 4323 } |
| 4324 __ cmp(ip, ToRegister(instr->length())); | 4324 __ cmp(ip, ToRegister(instr->length())); |
| 4325 } else { | 4325 } else { |
| 4326 __ cmp(ToRegister(instr->index()), ToRegister(instr->length())); | 4326 __ cmp(ToRegister(instr->index()), ToRegister(instr->length())); |
| 4327 } | 4327 } |
| 4328 DeoptimizeIf(hs, instr->environment()); | 4328 if (instr->hydrogen()->allow_equality()) { |
| 4329 DeoptimizeIf(hi, instr->environment()); |
| 4330 } else { |
| 4331 DeoptimizeIf(hs, instr->environment()); |
| 4332 } |
| 4329 } | 4333 } |
| 4330 | 4334 |
| 4331 | 4335 |
| 4332 void LCodeGen::DoStoreKeyedExternalArray(LStoreKeyed* instr) { | 4336 void LCodeGen::DoStoreKeyedExternalArray(LStoreKeyed* instr) { |
| 4333 Register external_pointer = ToRegister(instr->elements()); | 4337 Register external_pointer = ToRegister(instr->elements()); |
| 4334 Register key = no_reg; | 4338 Register key = no_reg; |
| 4335 ElementsKind elements_kind = instr->elements_kind(); | 4339 ElementsKind elements_kind = instr->elements_kind(); |
| 4336 bool key_is_constant = instr->key()->IsConstantOperand(); | 4340 bool key_is_constant = instr->key()->IsConstantOperand(); |
| 4337 int constant_key = 0; | 4341 int constant_key = 0; |
| 4338 if (key_is_constant) { | 4342 if (key_is_constant) { |
| (...skipping 1664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6003 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); | 6007 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); |
| 6004 __ ldr(result, FieldMemOperand(scratch, | 6008 __ ldr(result, FieldMemOperand(scratch, |
| 6005 FixedArray::kHeaderSize - kPointerSize)); | 6009 FixedArray::kHeaderSize - kPointerSize)); |
| 6006 __ bind(&done); | 6010 __ bind(&done); |
| 6007 } | 6011 } |
| 6008 | 6012 |
| 6009 | 6013 |
| 6010 #undef __ | 6014 #undef __ |
| 6011 | 6015 |
| 6012 } } // namespace v8::internal | 6016 } } // namespace v8::internal |
| OLD | NEW |