| 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 3314 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3325 __ vldr(d0, r5, HeapNumber::kValueOffset); | 3325 __ vldr(d0, r5, HeapNumber::kValueOffset); |
| 3326 __ add(r5, r3, Operand(key, LSL, 1)); | 3326 __ add(r5, r3, Operand(key, LSL, 1)); |
| 3327 __ vcvt_f32_f64(s0, d0); | 3327 __ vcvt_f32_f64(s0, d0); |
| 3328 __ vstr(s0, r5, 0); | 3328 __ vstr(s0, r5, 0); |
| 3329 } else if (elements_kind == EXTERNAL_DOUBLE_ELEMENTS) { | 3329 } else if (elements_kind == EXTERNAL_DOUBLE_ELEMENTS) { |
| 3330 __ sub(r5, r0, Operand(kHeapObjectTag)); | 3330 __ sub(r5, r0, Operand(kHeapObjectTag)); |
| 3331 __ vldr(d0, r5, HeapNumber::kValueOffset); | 3331 __ vldr(d0, r5, HeapNumber::kValueOffset); |
| 3332 __ add(r5, r3, Operand(key, LSL, 2)); | 3332 __ add(r5, r3, Operand(key, LSL, 2)); |
| 3333 __ vstr(d0, r5, 0); | 3333 __ vstr(d0, r5, 0); |
| 3334 } else { | 3334 } else { |
| 3335 // Hoisted load. vldr requires offset to be a multiple of 4 so we can | 3335 __ TruncateDoubleToI(r5, value, |
| 3336 // not include -kHeapObjectTag into it. | 3336 HeapNumber::kValueOffset - kHeapObjectTag); |
| 3337 __ sub(r5, value, Operand(kHeapObjectTag)); | |
| 3338 __ vldr(d0, r5, HeapNumber::kValueOffset); | |
| 3339 __ ECMAToInt32(r5, d0, r6, r7, r9, d1); | |
| 3340 | 3337 |
| 3341 switch (elements_kind) { | 3338 switch (elements_kind) { |
| 3342 case EXTERNAL_BYTE_ELEMENTS: | 3339 case EXTERNAL_BYTE_ELEMENTS: |
| 3343 case EXTERNAL_UNSIGNED_BYTE_ELEMENTS: | 3340 case EXTERNAL_UNSIGNED_BYTE_ELEMENTS: |
| 3344 __ strb(r5, MemOperand(r3, key, LSR, 1)); | 3341 __ strb(r5, MemOperand(r3, key, LSR, 1)); |
| 3345 break; | 3342 break; |
| 3346 case EXTERNAL_SHORT_ELEMENTS: | 3343 case EXTERNAL_SHORT_ELEMENTS: |
| 3347 case EXTERNAL_UNSIGNED_SHORT_ELEMENTS: | 3344 case EXTERNAL_UNSIGNED_SHORT_ELEMENTS: |
| 3348 __ strh(r5, MemOperand(r3, key, LSL, 0)); | 3345 __ strh(r5, MemOperand(r3, key, LSL, 0)); |
| 3349 break; | 3346 break; |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3691 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); | 3688 TailCallBuiltin(masm, Builtins::kKeyedStoreIC_Slow); |
| 3692 } | 3689 } |
| 3693 } | 3690 } |
| 3694 | 3691 |
| 3695 | 3692 |
| 3696 #undef __ | 3693 #undef __ |
| 3697 | 3694 |
| 3698 } } // namespace v8::internal | 3695 } } // namespace v8::internal |
| 3699 | 3696 |
| 3700 #endif // V8_TARGET_ARCH_ARM | 3697 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |