| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/v8.h" | 5 #include "src/v8.h" |
| 6 | 6 |
| 7 #if V8_TARGET_ARCH_ARM | 7 #if V8_TARGET_ARCH_ARM |
| 8 | 8 |
| 9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
| 10 #include "src/bootstrapper.h" | 10 #include "src/bootstrapper.h" |
| (...skipping 2544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2555 __ ldr(r5, FieldMemOperand(r2, AllocationSite::kMapOffset)); | 2555 __ ldr(r5, FieldMemOperand(r2, AllocationSite::kMapOffset)); |
| 2556 __ CompareRoot(r5, Heap::kAllocationSiteMapRootIndex); | 2556 __ CompareRoot(r5, Heap::kAllocationSiteMapRootIndex); |
| 2557 __ b(eq, &feedback_register_initialized); | 2557 __ b(eq, &feedback_register_initialized); |
| 2558 __ LoadRoot(r2, Heap::kUndefinedValueRootIndex); | 2558 __ LoadRoot(r2, Heap::kUndefinedValueRootIndex); |
| 2559 __ bind(&feedback_register_initialized); | 2559 __ bind(&feedback_register_initialized); |
| 2560 } | 2560 } |
| 2561 | 2561 |
| 2562 __ AssertUndefinedOrAllocationSite(r2, r5); | 2562 __ AssertUndefinedOrAllocationSite(r2, r5); |
| 2563 } | 2563 } |
| 2564 | 2564 |
| 2565 // Pass function as original constructor. |
| 2566 __ mov(r3, r1); |
| 2567 |
| 2565 // Jump to the function-specific construct stub. | 2568 // Jump to the function-specific construct stub. |
| 2566 Register jmp_reg = r4; | 2569 Register jmp_reg = r4; |
| 2567 __ ldr(jmp_reg, FieldMemOperand(r1, JSFunction::kSharedFunctionInfoOffset)); | 2570 __ ldr(jmp_reg, FieldMemOperand(r1, JSFunction::kSharedFunctionInfoOffset)); |
| 2568 __ ldr(jmp_reg, FieldMemOperand(jmp_reg, | 2571 __ ldr(jmp_reg, FieldMemOperand(jmp_reg, |
| 2569 SharedFunctionInfo::kConstructStubOffset)); | 2572 SharedFunctionInfo::kConstructStubOffset)); |
| 2570 __ add(pc, jmp_reg, Operand(Code::kHeaderSize - kHeapObjectTag)); | 2573 __ add(pc, jmp_reg, Operand(Code::kHeaderSize - kHeapObjectTag)); |
| 2571 | 2574 |
| 2572 // r0: number of arguments | 2575 // r0: number of arguments |
| 2573 // r1: called object | 2576 // r1: called object |
| 2574 // r4: object type | 2577 // r4: object type |
| (...skipping 2211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4786 kStackUnwindSpace, NULL, | 4789 kStackUnwindSpace, NULL, |
| 4787 MemOperand(fp, 6 * kPointerSize), NULL); | 4790 MemOperand(fp, 6 * kPointerSize), NULL); |
| 4788 } | 4791 } |
| 4789 | 4792 |
| 4790 | 4793 |
| 4791 #undef __ | 4794 #undef __ |
| 4792 | 4795 |
| 4793 } } // namespace v8::internal | 4796 } } // namespace v8::internal |
| 4794 | 4797 |
| 4795 #endif // V8_TARGET_ARCH_ARM | 4798 #endif // V8_TARGET_ARCH_ARM |
| OLD | NEW |