| 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 3983 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3994 if (instr->hydrogen()->skip_check()) return; | 3994 if (instr->hydrogen()->skip_check()) return; |
| 3995 | 3995 |
| 3996 if (instr->index()->IsConstantOperand()) { | 3996 if (instr->index()->IsConstantOperand()) { |
| 3997 int constant_index = | 3997 int constant_index = |
| 3998 ToInteger32(LConstantOperand::cast(instr->index())); | 3998 ToInteger32(LConstantOperand::cast(instr->index())); |
| 3999 if (instr->hydrogen()->length()->representation().IsTagged()) { | 3999 if (instr->hydrogen()->length()->representation().IsTagged()) { |
| 4000 __ li(at, Operand(Smi::FromInt(constant_index))); | 4000 __ li(at, Operand(Smi::FromInt(constant_index))); |
| 4001 } else { | 4001 } else { |
| 4002 __ li(at, Operand(constant_index)); | 4002 __ li(at, Operand(constant_index)); |
| 4003 } | 4003 } |
| 4004 DeoptimizeIf(hs, | 4004 if (instr->hydrogen()->allow_equality()) { |
| 4005 instr->environment(), | 4005 DeoptimizeIf(hi, |
| 4006 at, | 4006 instr->environment(), |
| 4007 Operand(ToRegister(instr->length()))); | 4007 at, |
| 4008 Operand(ToRegister(instr->length()))); |
| 4009 } else { |
| 4010 DeoptimizeIf(hs, |
| 4011 instr->environment(), |
| 4012 at, |
| 4013 Operand(ToRegister(instr->length()))); |
| 4014 } |
| 4008 } else { | 4015 } else { |
| 4009 DeoptimizeIf(hs, | 4016 if (instr->hydrogen()->allow_equality()) { |
| 4010 instr->environment(), | 4017 DeoptimizeIf(hi, |
| 4011 ToRegister(instr->index()), | 4018 instr->environment(), |
| 4012 Operand(ToRegister(instr->length()))); | 4019 ToRegister(instr->index()), |
| 4020 Operand(ToRegister(instr->length()))); |
| 4021 } else { |
| 4022 DeoptimizeIf(hs, |
| 4023 instr->environment(), |
| 4024 ToRegister(instr->index()), |
| 4025 Operand(ToRegister(instr->length()))); |
| 4026 } |
| 4013 } | 4027 } |
| 4014 } | 4028 } |
| 4015 | 4029 |
| 4016 | 4030 |
| 4017 void LCodeGen::DoStoreKeyedExternalArray(LStoreKeyed* instr) { | 4031 void LCodeGen::DoStoreKeyedExternalArray(LStoreKeyed* instr) { |
| 4018 Register external_pointer = ToRegister(instr->elements()); | 4032 Register external_pointer = ToRegister(instr->elements()); |
| 4019 Register key = no_reg; | 4033 Register key = no_reg; |
| 4020 ElementsKind elements_kind = instr->elements_kind(); | 4034 ElementsKind elements_kind = instr->elements_kind(); |
| 4021 bool key_is_constant = instr->key()->IsConstantOperand(); | 4035 bool key_is_constant = instr->key()->IsConstantOperand(); |
| 4022 int constant_key = 0; | 4036 int constant_key = 0; |
| (...skipping 1634 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5657 __ Subu(scratch, result, scratch); | 5671 __ Subu(scratch, result, scratch); |
| 5658 __ lw(result, FieldMemOperand(scratch, | 5672 __ lw(result, FieldMemOperand(scratch, |
| 5659 FixedArray::kHeaderSize - kPointerSize)); | 5673 FixedArray::kHeaderSize - kPointerSize)); |
| 5660 __ bind(&done); | 5674 __ bind(&done); |
| 5661 } | 5675 } |
| 5662 | 5676 |
| 5663 | 5677 |
| 5664 #undef __ | 5678 #undef __ |
| 5665 | 5679 |
| 5666 } } // namespace v8::internal | 5680 } } // namespace v8::internal |
| OLD | NEW |