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 7543 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7554 // and value is Smi. | 7554 // and value is Smi. |
7555 __ bind(&smi_element); | 7555 __ bind(&smi_element); |
7556 __ ldr(r5, FieldMemOperand(r1, JSObject::kElementsOffset)); | 7556 __ ldr(r5, FieldMemOperand(r1, JSObject::kElementsOffset)); |
7557 __ add(r6, r5, Operand(r3, LSL, kPointerSizeLog2 - kSmiTagSize)); | 7557 __ add(r6, r5, Operand(r3, LSL, kPointerSizeLog2 - kSmiTagSize)); |
7558 __ str(r0, FieldMemOperand(r6, FixedArray::kHeaderSize)); | 7558 __ str(r0, FieldMemOperand(r6, FixedArray::kHeaderSize)); |
7559 __ Ret(); | 7559 __ Ret(); |
7560 | 7560 |
7561 // Array literal has ElementsKind of FAST_DOUBLE_ELEMENTS. | 7561 // Array literal has ElementsKind of FAST_DOUBLE_ELEMENTS. |
7562 __ bind(&double_elements); | 7562 __ bind(&double_elements); |
7563 __ ldr(r5, FieldMemOperand(r1, JSObject::kElementsOffset)); | 7563 __ ldr(r5, FieldMemOperand(r1, JSObject::kElementsOffset)); |
7564 __ StoreNumberToDoubleElements(r0, r3, r1, r5, r6, r7, r9, r2, | 7564 __ StoreNumberToDoubleElements(r0, r3, r1, |
| 7565 // Overwrites all regs after this. |
| 7566 r5, r6, r7, r9, r2, |
7565 &slow_elements); | 7567 &slow_elements); |
7566 __ Ret(); | 7568 __ Ret(); |
7567 } | 7569 } |
7568 | 7570 |
7569 | 7571 |
7570 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { | 7572 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { |
7571 if (entry_hook_ != NULL) { | 7573 if (entry_hook_ != NULL) { |
7572 ProfileEntryHookStub stub; | 7574 ProfileEntryHookStub stub; |
7573 __ push(lr); | 7575 __ push(lr); |
7574 __ CallStub(&stub); | 7576 __ CallStub(&stub); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7623 | 7625 |
7624 __ Pop(lr, r5, r1); | 7626 __ Pop(lr, r5, r1); |
7625 __ Ret(); | 7627 __ Ret(); |
7626 } | 7628 } |
7627 | 7629 |
7628 #undef __ | 7630 #undef __ |
7629 | 7631 |
7630 } } // namespace v8::internal | 7632 } } // namespace v8::internal |
7631 | 7633 |
7632 #endif // V8_TARGET_ARCH_ARM | 7634 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |