| 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 4299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4310 ToInteger32(LConstantOperand::cast(instr->index())); | 4310 ToInteger32(LConstantOperand::cast(instr->index())); |
| 4311 if (instr->hydrogen()->length()->representation().IsTagged()) { | 4311 if (instr->hydrogen()->length()->representation().IsTagged()) { |
| 4312 __ mov(ip, Operand(Smi::FromInt(constant_index))); | 4312 __ mov(ip, Operand(Smi::FromInt(constant_index))); |
| 4313 } else { | 4313 } else { |
| 4314 __ mov(ip, Operand(constant_index)); | 4314 __ mov(ip, Operand(constant_index)); |
| 4315 } | 4315 } |
| 4316 __ cmp(ip, ToRegister(instr->length())); | 4316 __ cmp(ip, ToRegister(instr->length())); |
| 4317 } else { | 4317 } else { |
| 4318 __ cmp(ToRegister(instr->index()), ToRegister(instr->length())); | 4318 __ cmp(ToRegister(instr->index()), ToRegister(instr->length())); |
| 4319 } | 4319 } |
| 4320 DeoptimizeIf(hs, instr->environment()); | 4320 if (instr->hydrogen()->allow_equality()) { |
| 4321 DeoptimizeIf(hi, instr->environment()); |
| 4322 } else { |
| 4323 DeoptimizeIf(hs, instr->environment()); |
| 4324 } |
| 4321 } | 4325 } |
| 4322 | 4326 |
| 4323 | 4327 |
| 4324 void LCodeGen::DoStoreKeyedExternalArray(LStoreKeyed* instr) { | 4328 void LCodeGen::DoStoreKeyedExternalArray(LStoreKeyed* instr) { |
| 4325 Register external_pointer = ToRegister(instr->elements()); | 4329 Register external_pointer = ToRegister(instr->elements()); |
| 4326 Register key = no_reg; | 4330 Register key = no_reg; |
| 4327 ElementsKind elements_kind = instr->elements_kind(); | 4331 ElementsKind elements_kind = instr->elements_kind(); |
| 4328 bool key_is_constant = instr->key()->IsConstantOperand(); | 4332 bool key_is_constant = instr->key()->IsConstantOperand(); |
| 4329 int constant_key = 0; | 4333 int constant_key = 0; |
| 4330 if (key_is_constant) { | 4334 if (key_is_constant) { |
| (...skipping 1576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5907 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); | 5911 __ sub(scratch, result, Operand::PointerOffsetFromSmiKey(index)); |
| 5908 __ ldr(result, FieldMemOperand(scratch, | 5912 __ ldr(result, FieldMemOperand(scratch, |
| 5909 FixedArray::kHeaderSize - kPointerSize)); | 5913 FixedArray::kHeaderSize - kPointerSize)); |
| 5910 __ bind(&done); | 5914 __ bind(&done); |
| 5911 } | 5915 } |
| 5912 | 5916 |
| 5913 | 5917 |
| 5914 #undef __ | 5918 #undef __ |
| 5915 | 5919 |
| 5916 } } // namespace v8::internal | 5920 } } // namespace v8::internal |
| OLD | NEW |