| 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 4331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4342 | 4342 |
| 4343 if (instr->index()->IsConstantOperand()) { | 4343 if (instr->index()->IsConstantOperand()) { |
| 4344 int constant_index = | 4344 int constant_index = |
| 4345 ToInteger32(LConstantOperand::cast(instr->index())); | 4345 ToInteger32(LConstantOperand::cast(instr->index())); |
| 4346 if (instr->hydrogen()->length()->representation().IsTagged()) { | 4346 if (instr->hydrogen()->length()->representation().IsTagged()) { |
| 4347 __ cmp(ToOperand(instr->length()), | 4347 __ cmp(ToOperand(instr->length()), |
| 4348 Immediate(Smi::FromInt(constant_index))); | 4348 Immediate(Smi::FromInt(constant_index))); |
| 4349 } else { | 4349 } else { |
| 4350 __ cmp(ToOperand(instr->length()), Immediate(constant_index)); | 4350 __ cmp(ToOperand(instr->length()), Immediate(constant_index)); |
| 4351 } | 4351 } |
| 4352 DeoptimizeIf(below_equal, instr->environment()); | 4352 if (instr->hydrogen()->allow_equality()) { |
| 4353 DeoptimizeIf(below, instr->environment()); |
| 4354 } else { |
| 4355 DeoptimizeIf(below_equal, instr->environment()); |
| 4356 } |
| 4353 } else { | 4357 } else { |
| 4354 __ cmp(ToRegister(instr->index()), ToOperand(instr->length())); | 4358 __ cmp(ToRegister(instr->index()), ToOperand(instr->length())); |
| 4355 DeoptimizeIf(above_equal, instr->environment()); | 4359 if (instr->hydrogen()->allow_equality()) { |
| 4360 DeoptimizeIf(above, instr->environment()); |
| 4361 } else { |
| 4362 DeoptimizeIf(above_equal, instr->environment()); |
| 4363 } |
| 4356 } | 4364 } |
| 4357 } | 4365 } |
| 4358 | 4366 |
| 4359 | 4367 |
| 4360 void LCodeGen::DoStoreKeyedExternalArray(LStoreKeyed* instr) { | 4368 void LCodeGen::DoStoreKeyedExternalArray(LStoreKeyed* instr) { |
| 4361 ElementsKind elements_kind = instr->elements_kind(); | 4369 ElementsKind elements_kind = instr->elements_kind(); |
| 4362 LOperand* key = instr->key(); | 4370 LOperand* key = instr->key(); |
| 4363 if (!key->IsConstantOperand() && | 4371 if (!key->IsConstantOperand() && |
| 4364 ExternalArrayOpRequiresTemp(instr->hydrogen()->key()->representation(), | 4372 ExternalArrayOpRequiresTemp(instr->hydrogen()->key()->representation(), |
| 4365 elements_kind)) { | 4373 elements_kind)) { |
| (...skipping 2145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6511 FixedArray::kHeaderSize - kPointerSize)); | 6519 FixedArray::kHeaderSize - kPointerSize)); |
| 6512 __ bind(&done); | 6520 __ bind(&done); |
| 6513 } | 6521 } |
| 6514 | 6522 |
| 6515 | 6523 |
| 6516 #undef __ | 6524 #undef __ |
| 6517 | 6525 |
| 6518 } } // namespace v8::internal | 6526 } } // namespace v8::internal |
| 6519 | 6527 |
| 6520 #endif // V8_TARGET_ARCH_IA32 | 6528 #endif // V8_TARGET_ARCH_IA32 |
| OLD | NEW |