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 2975 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2986 element_size_shift) + | 2986 element_size_shift) + |
2987 FixedDoubleArray::kHeaderSize - kHeapObjectTag) | 2987 FixedDoubleArray::kHeaderSize - kHeapObjectTag) |
2988 : Operand(key, LSL, shift_size); | 2988 : Operand(key, LSL, shift_size); |
2989 __ add(elements, elements, operand); | 2989 __ add(elements, elements, operand); |
2990 if (!key_is_constant) { | 2990 if (!key_is_constant) { |
2991 __ add(elements, elements, | 2991 __ add(elements, elements, |
2992 Operand((FixedDoubleArray::kHeaderSize - kHeapObjectTag) + | 2992 Operand((FixedDoubleArray::kHeaderSize - kHeapObjectTag) + |
2993 (instr->additional_index() << element_size_shift))); | 2993 (instr->additional_index() << element_size_shift))); |
2994 } | 2994 } |
2995 | 2995 |
| 2996 __ vldr(result, elements, 0); |
2996 if (instr->hydrogen()->RequiresHoleCheck()) { | 2997 if (instr->hydrogen()->RequiresHoleCheck()) { |
2997 __ ldr(scratch, MemOperand(elements, sizeof(kHoleNanLower32))); | 2998 __ ldr(scratch, MemOperand(elements, sizeof(kHoleNanLower32))); |
2998 __ cmp(scratch, Operand(kHoleNanUpper32)); | 2999 __ cmp(scratch, Operand(kHoleNanUpper32)); |
2999 DeoptimizeIf(eq, instr->environment()); | 3000 DeoptimizeIf(eq, instr->environment()); |
3000 } | 3001 } |
3001 | |
3002 __ vldr(result, elements, 0); | |
3003 } | 3002 } |
3004 | 3003 |
3005 | 3004 |
3006 MemOperand LCodeGen::PrepareKeyedOperand(Register key, | 3005 MemOperand LCodeGen::PrepareKeyedOperand(Register key, |
3007 Register base, | 3006 Register base, |
3008 bool key_is_constant, | 3007 bool key_is_constant, |
3009 int constant_key, | 3008 int constant_key, |
3010 int element_size, | 3009 int element_size, |
3011 int shift_size, | 3010 int shift_size, |
3012 int additional_index, | 3011 int additional_index, |
(...skipping 2667 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5680 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); | 5679 __ sub(scratch, result, Operand(index, LSL, kPointerSizeLog2 - kSmiTagSize)); |
5681 __ ldr(result, FieldMemOperand(scratch, | 5680 __ ldr(result, FieldMemOperand(scratch, |
5682 FixedArray::kHeaderSize - kPointerSize)); | 5681 FixedArray::kHeaderSize - kPointerSize)); |
5683 __ bind(&done); | 5682 __ bind(&done); |
5684 } | 5683 } |
5685 | 5684 |
5686 | 5685 |
5687 #undef __ | 5686 #undef __ |
5688 | 5687 |
5689 } } // namespace v8::internal | 5688 } } // namespace v8::internal |
OLD | NEW |