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

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

Issue 132963012: Pretenure call new support. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: REBASE. Created 6 years, 9 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
« no previous file with comments | « src/a64/code-stubs-a64.cc ('k') | src/arm/builtins-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 2590 matching lines...) Expand 10 before | Expand all | Expand 10 after
2601 SetSourcePosition(expr->position()); 2601 SetSourcePosition(expr->position());
2602 2602
2603 // Load function and argument count into x1 and x0. 2603 // Load function and argument count into x1 and x0.
2604 __ Mov(x0, arg_count); 2604 __ Mov(x0, arg_count);
2605 __ Peek(x1, arg_count * kXRegSize); 2605 __ Peek(x1, arg_count * kXRegSize);
2606 2606
2607 // Record call targets in unoptimized code. 2607 // Record call targets in unoptimized code.
2608 Handle<Object> uninitialized = 2608 Handle<Object> uninitialized =
2609 TypeFeedbackInfo::UninitializedSentinel(isolate()); 2609 TypeFeedbackInfo::UninitializedSentinel(isolate());
2610 StoreFeedbackVectorSlot(expr->CallNewFeedbackSlot(), uninitialized); 2610 StoreFeedbackVectorSlot(expr->CallNewFeedbackSlot(), uninitialized);
2611 if (FLAG_pretenuring_call_new) {
2612 StoreFeedbackVectorSlot(expr->AllocationSiteFeedbackSlot(),
2613 isolate()->factory()->NewAllocationSite());
2614 ASSERT(expr->AllocationSiteFeedbackSlot() ==
2615 expr->CallNewFeedbackSlot() + 1);
2616 }
2617
2611 __ LoadObject(x2, FeedbackVector()); 2618 __ LoadObject(x2, FeedbackVector());
2612 __ Mov(x3, Operand(Smi::FromInt(expr->CallNewFeedbackSlot()))); 2619 __ Mov(x3, Operand(Smi::FromInt(expr->CallNewFeedbackSlot())));
2613 2620
2614 CallConstructStub stub(RECORD_CALL_TARGET); 2621 CallConstructStub stub(RECORD_CALL_TARGET);
2615 __ Call(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL); 2622 __ Call(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL);
2616 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); 2623 PrepareForBailoutForId(expr->ReturnId(), TOS_REG);
2617 context()->Plug(x0); 2624 context()->Plug(x0);
2618 } 2625 }
2619 2626
2620 2627
(...skipping 2345 matching lines...) Expand 10 before | Expand all | Expand 10 after
4966 return previous_; 4973 return previous_;
4967 } 4974 }
4968 4975
4969 4976
4970 #undef __ 4977 #undef __
4971 4978
4972 4979
4973 } } // namespace v8::internal 4980 } } // namespace v8::internal
4974 4981
4975 #endif // V8_TARGET_ARCH_A64 4982 #endif // V8_TARGET_ARCH_A64
OLDNEW
« no previous file with comments | « src/a64/code-stubs-a64.cc ('k') | src/arm/builtins-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698