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

Side by Side Diff: src/arm/full-codegen-arm.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/arm/code-stubs-arm.cc ('k') | src/ast.h » ('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 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 2885 matching lines...) Expand 10 before | Expand all | Expand 10 after
2896 SetSourcePosition(expr->position()); 2896 SetSourcePosition(expr->position());
2897 2897
2898 // Load function and argument count into r1 and r0. 2898 // Load function and argument count into r1 and r0.
2899 __ mov(r0, Operand(arg_count)); 2899 __ mov(r0, Operand(arg_count));
2900 __ ldr(r1, MemOperand(sp, arg_count * kPointerSize)); 2900 __ ldr(r1, MemOperand(sp, arg_count * kPointerSize));
2901 2901
2902 // Record call targets in unoptimized code. 2902 // Record call targets in unoptimized code.
2903 Handle<Object> uninitialized = 2903 Handle<Object> uninitialized =
2904 TypeFeedbackInfo::UninitializedSentinel(isolate()); 2904 TypeFeedbackInfo::UninitializedSentinel(isolate());
2905 StoreFeedbackVectorSlot(expr->CallNewFeedbackSlot(), uninitialized); 2905 StoreFeedbackVectorSlot(expr->CallNewFeedbackSlot(), uninitialized);
2906 if (FLAG_pretenuring_call_new) {
2907 StoreFeedbackVectorSlot(expr->AllocationSiteFeedbackSlot(),
2908 isolate()->factory()->NewAllocationSite());
2909 ASSERT(expr->AllocationSiteFeedbackSlot() ==
2910 expr->CallNewFeedbackSlot() + 1);
2911 }
2912
2906 __ Move(r2, FeedbackVector()); 2913 __ Move(r2, FeedbackVector());
2907 __ mov(r3, Operand(Smi::FromInt(expr->CallNewFeedbackSlot()))); 2914 __ mov(r3, Operand(Smi::FromInt(expr->CallNewFeedbackSlot())));
2908 2915
2909 CallConstructStub stub(RECORD_CALL_TARGET); 2916 CallConstructStub stub(RECORD_CALL_TARGET);
2910 __ Call(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL); 2917 __ Call(stub.GetCode(isolate()), RelocInfo::CONSTRUCT_CALL);
2911 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); 2918 PrepareForBailoutForId(expr->ReturnId(), TOS_REG);
2912 context()->Plug(r0); 2919 context()->Plug(r0);
2913 } 2920 }
2914 2921
2915 2922
(...skipping 1999 matching lines...) Expand 10 before | Expand all | Expand 10 after
4915 4922
4916 ASSERT(interrupt_address == 4923 ASSERT(interrupt_address ==
4917 isolate->builtins()->OsrAfterStackCheck()->entry()); 4924 isolate->builtins()->OsrAfterStackCheck()->entry());
4918 return OSR_AFTER_STACK_CHECK; 4925 return OSR_AFTER_STACK_CHECK;
4919 } 4926 }
4920 4927
4921 4928
4922 } } // namespace v8::internal 4929 } } // namespace v8::internal
4923 4930
4924 #endif // V8_TARGET_ARCH_ARM 4931 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/arm/code-stubs-arm.cc ('k') | src/ast.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698