| 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 2804 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2815 SetSourcePosition(expr->position()); | 2815 SetSourcePosition(expr->position()); |
| 2816 | 2816 |
| 2817 // Load function and argument count into rdi and rax. | 2817 // Load function and argument count into rdi and rax. |
| 2818 __ Set(rax, arg_count); | 2818 __ Set(rax, arg_count); |
| 2819 __ movp(rdi, Operand(rsp, arg_count * kPointerSize)); | 2819 __ movp(rdi, Operand(rsp, arg_count * kPointerSize)); |
| 2820 | 2820 |
| 2821 // Record call targets in unoptimized code, but not in the snapshot. | 2821 // Record call targets in unoptimized code, but not in the snapshot. |
| 2822 Handle<Object> uninitialized = | 2822 Handle<Object> uninitialized = |
| 2823 TypeFeedbackInfo::UninitializedSentinel(isolate()); | 2823 TypeFeedbackInfo::UninitializedSentinel(isolate()); |
| 2824 StoreFeedbackVectorSlot(expr->CallNewFeedbackSlot(), uninitialized); | 2824 StoreFeedbackVectorSlot(expr->CallNewFeedbackSlot(), uninitialized); |
| 2825 if (FLAG_pretenuring_call_new) { |
| 2826 StoreFeedbackVectorSlot(expr->AllocationSiteFeedbackSlot(), |
| 2827 isolate()->factory()->NewAllocationSite()); |
| 2828 ASSERT(expr->AllocationSiteFeedbackSlot() == |
| 2829 expr->CallNewFeedbackSlot() + 1); |
| 2830 } |
| 2831 |
| 2825 __ Move(rbx, FeedbackVector()); | 2832 __ Move(rbx, FeedbackVector()); |
| 2826 __ Move(rdx, Smi::FromInt(expr->CallNewFeedbackSlot())); | 2833 __ Move(rdx, Smi::FromInt(expr->CallNewFeedbackSlot())); |
| 2827 | 2834 |
| 2828 CallConstructStub stub(RECORD_CALL_TARGET); | 2835 CallConstructStub stub(RECORD_CALL_TARGET); |
| 2829 __ Call(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL); | 2836 __ Call(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL); |
| 2830 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); | 2837 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); |
| 2831 context()->Plug(rax); | 2838 context()->Plug(rax); |
| 2832 } | 2839 } |
| 2833 | 2840 |
| 2834 | 2841 |
| (...skipping 2058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4893 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), | 4900 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), |
| 4894 Assembler::target_address_at(call_target_address, | 4901 Assembler::target_address_at(call_target_address, |
| 4895 unoptimized_code)); | 4902 unoptimized_code)); |
| 4896 return OSR_AFTER_STACK_CHECK; | 4903 return OSR_AFTER_STACK_CHECK; |
| 4897 } | 4904 } |
| 4898 | 4905 |
| 4899 | 4906 |
| 4900 } } // namespace v8::internal | 4907 } } // namespace v8::internal |
| 4901 | 4908 |
| 4902 #endif // V8_TARGET_ARCH_X64 | 4909 #endif // V8_TARGET_ARCH_X64 |
| OLD | NEW |