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

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

Issue 1202173002: Remove --pretenuring-call-new (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix 64 bit release build break. Created 5 years, 3 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
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/code-factory.h" 7 #include "src/code-factory.h"
8 #include "src/code-stubs.h" 8 #include "src/code-stubs.h"
9 #include "src/codegen.h" 9 #include "src/codegen.h"
10 #include "src/compiler.h" 10 #include "src/compiler.h"
(...skipping 3062 matching lines...) Expand 10 before | Expand all | Expand 10 after
3073 3073
3074 // Call the construct call builtin that handles allocation and 3074 // Call the construct call builtin that handles allocation and
3075 // constructor invocation. 3075 // constructor invocation.
3076 SetConstructCallPosition(expr); 3076 SetConstructCallPosition(expr);
3077 3077
3078 // Load function and argument count into edi and eax. 3078 // Load function and argument count into edi and eax.
3079 __ Move(eax, Immediate(arg_count)); 3079 __ Move(eax, Immediate(arg_count));
3080 __ mov(edi, Operand(esp, arg_count * kPointerSize)); 3080 __ mov(edi, Operand(esp, arg_count * kPointerSize));
3081 3081
3082 // Record call targets in unoptimized code. 3082 // Record call targets in unoptimized code.
3083 if (FLAG_pretenuring_call_new) {
3084 EnsureSlotContainsAllocationSite(expr->AllocationSiteFeedbackSlot());
3085 DCHECK(expr->AllocationSiteFeedbackSlot().ToInt() ==
3086 expr->CallNewFeedbackSlot().ToInt() + 1);
3087 }
3088
3089 __ LoadHeapObject(ebx, FeedbackVector()); 3083 __ LoadHeapObject(ebx, FeedbackVector());
3090 __ mov(edx, Immediate(SmiFromSlot(expr->CallNewFeedbackSlot()))); 3084 __ mov(edx, Immediate(SmiFromSlot(expr->CallNewFeedbackSlot())));
3091 3085
3092 CallConstructStub stub(isolate(), RECORD_CONSTRUCTOR_TARGET); 3086 CallConstructStub stub(isolate(), RECORD_CONSTRUCTOR_TARGET);
3093 __ call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); 3087 __ call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL);
3094 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); 3088 PrepareForBailoutForId(expr->ReturnId(), TOS_REG);
3095 // Restore context register. 3089 // Restore context register.
3096 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); 3090 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
3097 context()->Plug(eax); 3091 context()->Plug(eax);
3098 } 3092 }
(...skipping 20 matching lines...) Expand all
3119 3113
3120 // Load original constructor into ecx. 3114 // Load original constructor into ecx.
3121 VisitForAccumulatorValue(super_call_ref->new_target_var()); 3115 VisitForAccumulatorValue(super_call_ref->new_target_var());
3122 __ mov(ecx, result_register()); 3116 __ mov(ecx, result_register());
3123 3117
3124 // Load function and argument count into edi and eax. 3118 // Load function and argument count into edi and eax.
3125 __ Move(eax, Immediate(arg_count)); 3119 __ Move(eax, Immediate(arg_count));
3126 __ mov(edi, Operand(esp, arg_count * kPointerSize)); 3120 __ mov(edi, Operand(esp, arg_count * kPointerSize));
3127 3121
3128 // Record call targets in unoptimized code. 3122 // Record call targets in unoptimized code.
3129 if (FLAG_pretenuring_call_new) {
3130 UNREACHABLE();
3131 /* TODO(dslomov): support pretenuring.
3132 EnsureSlotContainsAllocationSite(expr->AllocationSiteFeedbackSlot());
3133 DCHECK(expr->AllocationSiteFeedbackSlot().ToInt() ==
3134 expr->CallNewFeedbackSlot().ToInt() + 1);
3135 */
3136 }
3137
3138 __ LoadHeapObject(ebx, FeedbackVector()); 3123 __ LoadHeapObject(ebx, FeedbackVector());
3139 __ mov(edx, Immediate(SmiFromSlot(expr->CallFeedbackSlot()))); 3124 __ mov(edx, Immediate(SmiFromSlot(expr->CallFeedbackSlot())));
3140 3125
3141 CallConstructStub stub(isolate(), SUPER_CALL_RECORD_TARGET); 3126 CallConstructStub stub(isolate(), SUPER_CALL_RECORD_TARGET);
3142 __ call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); 3127 __ call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL);
3143 3128
3144 RecordJSReturnSite(expr); 3129 RecordJSReturnSite(expr);
3145 3130
3146 // Restore context register. 3131 // Restore context register.
3147 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset)); 3132 __ mov(esi, Operand(ebp, StandardFrameConstants::kContextOffset));
(...skipping 2003 matching lines...) Expand 10 before | Expand all | Expand 10 after
5151 Assembler::target_address_at(call_target_address, 5136 Assembler::target_address_at(call_target_address,
5152 unoptimized_code)); 5137 unoptimized_code));
5153 return OSR_AFTER_STACK_CHECK; 5138 return OSR_AFTER_STACK_CHECK;
5154 } 5139 }
5155 5140
5156 5141
5157 } // namespace internal 5142 } // namespace internal
5158 } // namespace v8 5143 } // namespace v8
5159 5144
5160 #endif // V8_TARGET_ARCH_IA32 5145 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen/arm64/full-codegen-arm64.cc ('k') | src/full-codegen/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698