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

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

Issue 1347253003: PPC: Remove --pretenure-call-new (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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
« no previous file with comments | « no previous file | src/ppc/builtins-ppc.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 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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_PPC 5 #if V8_TARGET_ARCH_PPC
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 3164 matching lines...) Expand 10 before | Expand all | Expand 10 after
3175 3175
3176 // Call the construct call builtin that handles allocation and 3176 // Call the construct call builtin that handles allocation and
3177 // constructor invocation. 3177 // constructor invocation.
3178 SetConstructCallPosition(expr); 3178 SetConstructCallPosition(expr);
3179 3179
3180 // Load function and argument count into r4 and r3. 3180 // Load function and argument count into r4 and r3.
3181 __ mov(r3, Operand(arg_count)); 3181 __ mov(r3, Operand(arg_count));
3182 __ LoadP(r4, MemOperand(sp, arg_count * kPointerSize), r0); 3182 __ LoadP(r4, MemOperand(sp, arg_count * kPointerSize), r0);
3183 3183
3184 // Record call targets in unoptimized code. 3184 // Record call targets in unoptimized code.
3185 if (FLAG_pretenuring_call_new) {
3186 EnsureSlotContainsAllocationSite(expr->AllocationSiteFeedbackSlot());
3187 DCHECK(expr->AllocationSiteFeedbackSlot().ToInt() ==
3188 expr->CallNewFeedbackSlot().ToInt() + 1);
3189 }
3190
3191 __ Move(r5, FeedbackVector()); 3185 __ Move(r5, FeedbackVector());
3192 __ LoadSmiLiteral(r6, SmiFromSlot(expr->CallNewFeedbackSlot())); 3186 __ LoadSmiLiteral(r6, SmiFromSlot(expr->CallNewFeedbackSlot()));
3193 3187
3194 CallConstructStub stub(isolate(), RECORD_CONSTRUCTOR_TARGET); 3188 CallConstructStub stub(isolate(), RECORD_CONSTRUCTOR_TARGET);
3195 __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); 3189 __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL);
3196 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); 3190 PrepareForBailoutForId(expr->ReturnId(), TOS_REG);
3197 // Restore context register. 3191 // Restore context register.
3198 __ LoadP(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 3192 __ LoadP(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
3199 context()->Plug(r3); 3193 context()->Plug(r3);
3200 } 3194 }
(...skipping 20 matching lines...) Expand all
3221 3215
3222 // Load original constructor into r7. 3216 // Load original constructor into r7.
3223 VisitForAccumulatorValue(super_call_ref->new_target_var()); 3217 VisitForAccumulatorValue(super_call_ref->new_target_var());
3224 __ mr(r7, result_register()); 3218 __ mr(r7, result_register());
3225 3219
3226 // Load function and argument count into r1 and r0. 3220 // Load function and argument count into r1 and r0.
3227 __ mov(r3, Operand(arg_count)); 3221 __ mov(r3, Operand(arg_count));
3228 __ LoadP(r4, MemOperand(sp, arg_count * kPointerSize)); 3222 __ LoadP(r4, MemOperand(sp, arg_count * kPointerSize));
3229 3223
3230 // Record call targets in unoptimized code. 3224 // Record call targets in unoptimized code.
3231 if (FLAG_pretenuring_call_new) {
3232 UNREACHABLE();
3233 /* TODO(dslomov): support pretenuring.
3234 EnsureSlotContainsAllocationSite(expr->AllocationSiteFeedbackSlot());
3235 DCHECK(expr->AllocationSiteFeedbackSlot().ToInt() ==
3236 expr->CallNewFeedbackSlot().ToInt() + 1);
3237 */
3238 }
3239
3240 __ Move(r5, FeedbackVector()); 3225 __ Move(r5, FeedbackVector());
3241 __ LoadSmiLiteral(r6, SmiFromSlot(expr->CallFeedbackSlot())); 3226 __ LoadSmiLiteral(r6, SmiFromSlot(expr->CallFeedbackSlot()));
3242 3227
3243 CallConstructStub stub(isolate(), SUPER_CALL_RECORD_TARGET); 3228 CallConstructStub stub(isolate(), SUPER_CALL_RECORD_TARGET);
3244 __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL); 3229 __ Call(stub.GetCode(), RelocInfo::CONSTRUCT_CALL);
3245 3230
3246 RecordJSReturnSite(expr); 3231 RecordJSReturnSite(expr);
3247 3232
3248 // Restore context register. 3233 // Restore context register.
3249 __ LoadP(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 3234 __ LoadP(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
(...skipping 1974 matching lines...) Expand 10 before | Expand all | Expand 10 after
5224 return ON_STACK_REPLACEMENT; 5209 return ON_STACK_REPLACEMENT;
5225 } 5210 }
5226 5211
5227 DCHECK(interrupt_address == 5212 DCHECK(interrupt_address ==
5228 isolate->builtins()->OsrAfterStackCheck()->entry()); 5213 isolate->builtins()->OsrAfterStackCheck()->entry());
5229 return OSR_AFTER_STACK_CHECK; 5214 return OSR_AFTER_STACK_CHECK;
5230 } 5215 }
5231 } // namespace internal 5216 } // namespace internal
5232 } // namespace v8 5217 } // namespace v8
5233 #endif // V8_TARGET_ARCH_PPC 5218 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « no previous file | src/ppc/builtins-ppc.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698