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

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

Issue 1489413006: Revert of Provide call counts for constructor calls, surface them as a vector IC. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years 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 | « src/compiler/js-inlining-heuristic.cc ('k') | src/full-codegen/arm64/full-codegen-arm64.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 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_ARM 5 #if V8_TARGET_ARCH_ARM
6 6
7 #include "src/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/code-factory.h" 8 #include "src/code-factory.h"
9 #include "src/code-stubs.h" 9 #include "src/code-stubs.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 3005 matching lines...) Expand 10 before | Expand all | Expand 10 after
3016 SetConstructCallPosition(expr, arg_count); 3016 SetConstructCallPosition(expr, arg_count);
3017 3017
3018 // Load function and argument count into r1 and r0. 3018 // Load function and argument count into r1 and r0.
3019 __ mov(r0, Operand(arg_count)); 3019 __ mov(r0, Operand(arg_count));
3020 __ ldr(r1, MemOperand(sp, arg_count * kPointerSize)); 3020 __ ldr(r1, MemOperand(sp, arg_count * kPointerSize));
3021 3021
3022 // Record call targets in unoptimized code. 3022 // Record call targets in unoptimized code.
3023 __ EmitLoadTypeFeedbackVector(r2); 3023 __ EmitLoadTypeFeedbackVector(r2);
3024 __ mov(r3, Operand(SmiFromSlot(expr->CallNewFeedbackSlot()))); 3024 __ mov(r3, Operand(SmiFromSlot(expr->CallNewFeedbackSlot())));
3025 3025
3026 Handle<Code> code = CodeFactory::ConstructIC(isolate()).code(); 3026 CallConstructStub stub(isolate());
3027 __ Call(code, RelocInfo::CODE_TARGET); 3027 __ Call(stub.GetCode(), RelocInfo::CODE_TARGET);
3028 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); 3028 PrepareForBailoutForId(expr->ReturnId(), TOS_REG);
3029 // Restore context register. 3029 // Restore context register.
3030 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 3030 __ ldr(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
3031 context()->Plug(r0); 3031 context()->Plug(r0);
3032 } 3032 }
3033 3033
3034 3034
3035 void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) { 3035 void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) {
3036 SuperCallReference* super_call_ref = 3036 SuperCallReference* super_call_ref =
3037 expr->expression()->AsSuperCallReference(); 3037 expr->expression()->AsSuperCallReference();
(...skipping 1963 matching lines...) Expand 10 before | Expand all | Expand 10 after
5001 DCHECK(interrupt_address == 5001 DCHECK(interrupt_address ==
5002 isolate->builtins()->OsrAfterStackCheck()->entry()); 5002 isolate->builtins()->OsrAfterStackCheck()->entry());
5003 return OSR_AFTER_STACK_CHECK; 5003 return OSR_AFTER_STACK_CHECK;
5004 } 5004 }
5005 5005
5006 5006
5007 } // namespace internal 5007 } // namespace internal
5008 } // namespace v8 5008 } // namespace v8
5009 5009
5010 #endif // V8_TARGET_ARCH_ARM 5010 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « src/compiler/js-inlining-heuristic.cc ('k') | src/full-codegen/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698