| 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 1726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1737 __ ldr(r4, MemOperand(sp, offset_to_argv)); | 1737 __ ldr(r4, MemOperand(sp, offset_to_argv)); |
| 1738 | 1738 |
| 1739 // Push a frame with special values setup to mark it as an entry frame. | 1739 // Push a frame with special values setup to mark it as an entry frame. |
| 1740 // r0: code entry | 1740 // r0: code entry |
| 1741 // r1: function | 1741 // r1: function |
| 1742 // r2: receiver | 1742 // r2: receiver |
| 1743 // r3: argc | 1743 // r3: argc |
| 1744 // r4: argv | 1744 // r4: argv |
| 1745 Isolate* isolate = masm->isolate(); | 1745 Isolate* isolate = masm->isolate(); |
| 1746 int marker = is_construct ? StackFrame::ENTRY_CONSTRUCT : StackFrame::ENTRY; | 1746 int marker = is_construct ? StackFrame::ENTRY_CONSTRUCT : StackFrame::ENTRY; |
| 1747 __ mov(r8, Operand(Smi::FromInt(marker))); | 1747 if (FLAG_enable_ool_constant_pool) { |
| 1748 __ mov(r8, Operand(Smi::FromInt(marker))); |
| 1749 } |
| 1750 __ mov(r7, Operand(Smi::FromInt(marker))); |
| 1748 __ mov(r6, Operand(Smi::FromInt(marker))); | 1751 __ mov(r6, Operand(Smi::FromInt(marker))); |
| 1749 __ mov(r5, | 1752 __ mov(r5, |
| 1750 Operand(ExternalReference(Isolate::kCEntryFPAddress, isolate))); | 1753 Operand(ExternalReference(Isolate::kCEntryFPAddress, isolate))); |
| 1751 __ ldr(r5, MemOperand(r5)); | 1754 __ ldr(r5, MemOperand(r5)); |
| 1752 __ mov(ip, Operand(-1)); // Push a bad frame pointer to fail if it is used. | 1755 __ mov(ip, Operand(-1)); // Push a bad frame pointer to fail if it is used. |
| 1753 __ Push(ip, r8, r6, r5); | 1756 __ stm(db_w, sp, r5.bit() | r6.bit() | r7.bit() | |
| 1757 (FLAG_enable_ool_constant_pool ? r8.bit() : 0) | |
| 1758 ip.bit()); |
| 1754 | 1759 |
| 1755 // Set up frame pointer for the frame to be pushed. | 1760 // Set up frame pointer for the frame to be pushed. |
| 1756 __ add(fp, sp, Operand(-EntryFrameConstants::kCallerFPOffset)); | 1761 __ add(fp, sp, Operand(-EntryFrameConstants::kCallerFPOffset)); |
| 1757 | 1762 |
| 1758 // If this is the outermost JS call, set js_entry_sp value. | 1763 // If this is the outermost JS call, set js_entry_sp value. |
| 1759 Label non_outermost_js; | 1764 Label non_outermost_js; |
| 1760 ExternalReference js_entry_sp(Isolate::kJSEntrySPAddress, isolate); | 1765 ExternalReference js_entry_sp(Isolate::kJSEntrySPAddress, isolate); |
| 1761 __ mov(r5, Operand(ExternalReference(js_entry_sp))); | 1766 __ mov(r5, Operand(ExternalReference(js_entry_sp))); |
| 1762 __ ldr(r6, MemOperand(r5)); | 1767 __ ldr(r6, MemOperand(r5)); |
| 1763 __ cmp(r6, Operand::Zero()); | 1768 __ cmp(r6, Operand::Zero()); |
| (...skipping 4041 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5805 __ bind(&fast_elements_case); | 5810 __ bind(&fast_elements_case); |
| 5806 GenerateCase(masm, FAST_ELEMENTS); | 5811 GenerateCase(masm, FAST_ELEMENTS); |
| 5807 } | 5812 } |
| 5808 | 5813 |
| 5809 | 5814 |
| 5810 #undef __ | 5815 #undef __ |
| 5811 | 5816 |
| 5812 } } // namespace v8::internal | 5817 } } // namespace v8::internal |
| 5813 | 5818 |
| 5814 #endif // V8_TARGET_ARCH_ARM | 5819 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |