Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(321)

Side by Side Diff: src/x64/full-codegen-x64.cc

Issue 132963012: Pretenure call new support. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comment response. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 2816 matching lines...) Expand 10 before | Expand all | Expand 10 after
2827 SetSourcePosition(expr->position()); 2827 SetSourcePosition(expr->position());
2828 2828
2829 // Load function and argument count into rdi and rax. 2829 // Load function and argument count into rdi and rax.
2830 __ Set(rax, arg_count); 2830 __ Set(rax, arg_count);
2831 __ movp(rdi, Operand(rsp, arg_count * kPointerSize)); 2831 __ movp(rdi, Operand(rsp, arg_count * kPointerSize));
2832 2832
2833 // Record call targets in unoptimized code, but not in the snapshot. 2833 // Record call targets in unoptimized code, but not in the snapshot.
2834 Handle<Object> uninitialized = 2834 Handle<Object> uninitialized =
2835 TypeFeedbackInfo::UninitializedSentinel(isolate()); 2835 TypeFeedbackInfo::UninitializedSentinel(isolate());
2836 StoreFeedbackVectorSlot(expr->CallNewFeedbackSlot(), uninitialized); 2836 StoreFeedbackVectorSlot(expr->CallNewFeedbackSlot(), uninitialized);
2837 StoreFeedbackVectorSlot(expr->AllocationSiteFeedbackSlot(),
2838 isolate()->factory()->NewAllocationSite());
2839 ASSERT(expr->AllocationSiteFeedbackSlot() ==
2840 expr->CallNewFeedbackSlot() + 1);
2841
2837 __ Move(rbx, FeedbackVector()); 2842 __ Move(rbx, FeedbackVector());
2838 __ Move(rdx, Smi::FromInt(expr->CallNewFeedbackSlot())); 2843 __ Move(rdx, Smi::FromInt(expr->CallNewFeedbackSlot()));
2839 2844
2840 CallConstructStub stub(RECORD_CALL_TARGET); 2845 CallConstructStub stub(RECORD_CALL_TARGET);
2841 __ Call(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL); 2846 __ Call(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL);
2842 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); 2847 PrepareForBailoutForId(expr->ReturnId(), TOS_REG);
2843 context()->Plug(rax); 2848 context()->Plug(rax);
2844 } 2849 }
2845 2850
2846 2851
(...skipping 2061 matching lines...) Expand 10 before | Expand all | Expand 10 after
4908 4913
4909 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(), 4914 ASSERT_EQ(isolate->builtins()->OsrAfterStackCheck()->entry(),
4910 Assembler::target_address_at(call_target_address)); 4915 Assembler::target_address_at(call_target_address));
4911 return OSR_AFTER_STACK_CHECK; 4916 return OSR_AFTER_STACK_CHECK;
4912 } 4917 }
4913 4918
4914 4919
4915 } } // namespace v8::internal 4920 } } // namespace v8::internal
4916 4921
4917 #endif // V8_TARGET_ARCH_X64 4922 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698