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 2888 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2899 SetSourcePosition(expr->position()); | 2899 SetSourcePosition(expr->position()); |
2900 | 2900 |
2901 // Load function and argument count into r1 and r0. | 2901 // Load function and argument count into r1 and r0. |
2902 __ mov(r0, Operand(arg_count)); | 2902 __ mov(r0, Operand(arg_count)); |
2903 __ ldr(r1, MemOperand(sp, arg_count * kPointerSize)); | 2903 __ ldr(r1, MemOperand(sp, arg_count * kPointerSize)); |
2904 | 2904 |
2905 // Record call targets in unoptimized code. | 2905 // Record call targets in unoptimized code. |
2906 Handle<Object> uninitialized = | 2906 Handle<Object> uninitialized = |
2907 TypeFeedbackInfo::UninitializedSentinel(isolate()); | 2907 TypeFeedbackInfo::UninitializedSentinel(isolate()); |
2908 StoreFeedbackVectorSlot(expr->CallNewFeedbackSlot(), uninitialized); | 2908 StoreFeedbackVectorSlot(expr->CallNewFeedbackSlot(), uninitialized); |
| 2909 StoreFeedbackVectorSlot(expr->AllocationSiteFeedbackSlot(), |
| 2910 isolate()->factory()->NewAllocationSite()); |
| 2911 ASSERT(expr->AllocationSiteFeedbackSlot() == |
| 2912 expr->CallNewFeedbackSlot() + 1); |
2909 __ Move(r2, FeedbackVector()); | 2913 __ Move(r2, FeedbackVector()); |
2910 __ mov(r3, Operand(Smi::FromInt(expr->CallNewFeedbackSlot()))); | 2914 __ mov(r3, Operand(Smi::FromInt(expr->CallNewFeedbackSlot()))); |
2911 | 2915 |
2912 CallConstructStub stub(RECORD_CALL_TARGET); | 2916 CallConstructStub stub(RECORD_CALL_TARGET); |
2913 __ Call(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL); | 2917 __ Call(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL); |
2914 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); | 2918 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); |
2915 context()->Plug(r0); | 2919 context()->Plug(r0); |
2916 } | 2920 } |
2917 | 2921 |
2918 | 2922 |
(...skipping 1998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4917 ASSERT(Memory::uint32_at(interrupt_address_pointer) == | 4921 ASSERT(Memory::uint32_at(interrupt_address_pointer) == |
4918 reinterpret_cast<uint32_t>( | 4922 reinterpret_cast<uint32_t>( |
4919 isolate->builtins()->OsrAfterStackCheck()->entry())); | 4923 isolate->builtins()->OsrAfterStackCheck()->entry())); |
4920 return OSR_AFTER_STACK_CHECK; | 4924 return OSR_AFTER_STACK_CHECK; |
4921 } | 4925 } |
4922 | 4926 |
4923 | 4927 |
4924 } } // namespace v8::internal | 4928 } } // namespace v8::internal |
4925 | 4929 |
4926 #endif // V8_TARGET_ARCH_ARM | 4930 #endif // V8_TARGET_ARCH_ARM |
OLD | NEW |