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 7499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7510 // and value is Smi. | 7510 // and value is Smi. |
7511 __ bind(&smi_element); | 7511 __ bind(&smi_element); |
7512 __ ldr(r5, FieldMemOperand(r1, JSObject::kElementsOffset)); | 7512 __ ldr(r5, FieldMemOperand(r1, JSObject::kElementsOffset)); |
7513 __ add(r6, r5, Operand(r3, LSL, kPointerSizeLog2 - kSmiTagSize)); | 7513 __ add(r6, r5, Operand(r3, LSL, kPointerSizeLog2 - kSmiTagSize)); |
7514 __ str(r0, FieldMemOperand(r6, FixedArray::kHeaderSize)); | 7514 __ str(r0, FieldMemOperand(r6, FixedArray::kHeaderSize)); |
7515 __ Ret(); | 7515 __ Ret(); |
7516 | 7516 |
7517 // Array literal has ElementsKind of FAST_DOUBLE_ELEMENTS. | 7517 // Array literal has ElementsKind of FAST_DOUBLE_ELEMENTS. |
7518 __ bind(&double_elements); | 7518 __ bind(&double_elements); |
7519 __ ldr(r5, FieldMemOperand(r1, JSObject::kElementsOffset)); | 7519 __ ldr(r5, FieldMemOperand(r1, JSObject::kElementsOffset)); |
7520 __ StoreNumberToDoubleElements(r0, r3, r1, | 7520 __ StoreNumberToDoubleElements(r0, r3, |
7521 // Overwrites all regs after this. | 7521 // Overwrites all regs after this. |
7522 r5, r6, r7, r9, r2, | 7522 r5, r6, r7, r9, r2, |
7523 &slow_elements); | 7523 &slow_elements); |
7524 __ Ret(); | 7524 __ Ret(); |
7525 } | 7525 } |
7526 | 7526 |
7527 | 7527 |
7528 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { | 7528 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { |
7529 if (entry_hook_ != NULL) { | 7529 if (entry_hook_ != NULL) { |
7530 PredictableCodeSizeScope predictable(masm); | 7530 PredictableCodeSizeScope predictable(masm); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7582 | 7582 |
7583 __ Pop(lr, r5, r1); | 7583 __ Pop(lr, r5, r1); |
7584 __ Ret(); | 7584 __ Ret(); |
7585 } | 7585 } |
7586 | 7586 |
7587 #undef __ | 7587 #undef __ |
7588 | 7588 |
7589 } } // namespace v8::internal | 7589 } } // namespace v8::internal |
7590 | 7590 |
7591 #endif // V8_TARGET_ARCH_ARM | 7591 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |