| 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 4031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4042 ToInteger32(LConstantOperand::cast(instr->index())); | 4042 ToInteger32(LConstantOperand::cast(instr->index())); |
| 4043 if (instr->hydrogen()->length()->representation().IsTagged()) { | 4043 if (instr->hydrogen()->length()->representation().IsTagged()) { |
| 4044 __ Cmp(length, Smi::FromInt(constant_index)); | 4044 __ Cmp(length, Smi::FromInt(constant_index)); |
| 4045 } else { | 4045 } else { |
| 4046 __ cmpq(length, Immediate(constant_index)); | 4046 __ cmpq(length, Immediate(constant_index)); |
| 4047 } | 4047 } |
| 4048 } else { | 4048 } else { |
| 4049 __ cmpq(length, ToRegister(instr->index())); | 4049 __ cmpq(length, ToRegister(instr->index())); |
| 4050 } | 4050 } |
| 4051 } | 4051 } |
| 4052 DeoptimizeIf(below_equal, instr->environment()); | 4052 if (instr->hydrogen()->allow_equality()) { |
| 4053 DeoptimizeIf(below, instr->environment()); |
| 4054 } else { |
| 4055 DeoptimizeIf(below_equal, instr->environment()); |
| 4056 } |
| 4053 } | 4057 } |
| 4054 | 4058 |
| 4055 | 4059 |
| 4056 void LCodeGen::DoStoreKeyedExternalArray(LStoreKeyed* instr) { | 4060 void LCodeGen::DoStoreKeyedExternalArray(LStoreKeyed* instr) { |
| 4057 ElementsKind elements_kind = instr->elements_kind(); | 4061 ElementsKind elements_kind = instr->elements_kind(); |
| 4058 LOperand* key = instr->key(); | 4062 LOperand* key = instr->key(); |
| 4059 if (!key->IsConstantOperand()) { | 4063 if (!key->IsConstantOperand()) { |
| 4060 Register key_reg = ToRegister(key); | 4064 Register key_reg = ToRegister(key); |
| 4061 // Even though the HLoad/StoreKeyedFastElement instructions force | 4065 // Even though the HLoad/StoreKeyedFastElement instructions force |
| 4062 // the input representation for the key to be an integer, the input | 4066 // the input representation for the key to be an integer, the input |
| (...skipping 1542 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5605 FixedArray::kHeaderSize - kPointerSize)); | 5609 FixedArray::kHeaderSize - kPointerSize)); |
| 5606 __ bind(&done); | 5610 __ bind(&done); |
| 5607 } | 5611 } |
| 5608 | 5612 |
| 5609 | 5613 |
| 5610 #undef __ | 5614 #undef __ |
| 5611 | 5615 |
| 5612 } } // namespace v8::internal | 5616 } } // namespace v8::internal |
| 5613 | 5617 |
| 5614 #endif // V8_TARGET_ARCH_X64 | 5618 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |