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

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

Issue 1476413003: 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: REBASE. 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/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/x64/full-codegen-x64.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_MIPS64 5 #if V8_TARGET_ARCH_MIPS64
6 6
7 // Note on Mips implementation: 7 // Note on Mips implementation:
8 // 8 //
9 // The result_register() for mips is the 'v0' register, which is defined 9 // The result_register() for mips is the 'v0' register, which is defined
10 // by the ABI to contain function return values. However, the first 10 // by the ABI to contain function return values. However, the first
(...skipping 3004 matching lines...) Expand 10 before | Expand all | Expand 10 after
3015 SetConstructCallPosition(expr, arg_count); 3015 SetConstructCallPosition(expr, arg_count);
3016 3016
3017 // Load function and argument count into a1 and a0. 3017 // Load function and argument count into a1 and a0.
3018 __ li(a0, Operand(arg_count)); 3018 __ li(a0, Operand(arg_count));
3019 __ ld(a1, MemOperand(sp, arg_count * kPointerSize)); 3019 __ ld(a1, MemOperand(sp, arg_count * kPointerSize));
3020 3020
3021 // Record call targets in unoptimized code. 3021 // Record call targets in unoptimized code.
3022 __ EmitLoadTypeFeedbackVector(a2); 3022 __ EmitLoadTypeFeedbackVector(a2);
3023 __ li(a3, Operand(SmiFromSlot(expr->CallNewFeedbackSlot()))); 3023 __ li(a3, Operand(SmiFromSlot(expr->CallNewFeedbackSlot())));
3024 3024
3025 CallConstructStub stub(isolate()); 3025 Handle<Code> code = CodeFactory::ConstructIC(isolate()).code();
3026 __ Call(stub.GetCode(), RelocInfo::CODE_TARGET); 3026 __ Call(code, RelocInfo::CODE_TARGET);
3027 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); 3027 PrepareForBailoutForId(expr->ReturnId(), TOS_REG);
3028 // Restore context register. 3028 // Restore context register.
3029 __ ld(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 3029 __ ld(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
3030 context()->Plug(v0); 3030 context()->Plug(v0);
3031 } 3031 }
3032 3032
3033 3033
3034 void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) { 3034 void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) {
3035 SuperCallReference* super_call_ref = 3035 SuperCallReference* super_call_ref =
3036 expr->expression()->AsSuperCallReference(); 3036 expr->expression()->AsSuperCallReference();
(...skipping 1940 matching lines...) Expand 10 before | Expand all | Expand 10 after
4977 reinterpret_cast<uint64_t>( 4977 reinterpret_cast<uint64_t>(
4978 isolate->builtins()->OsrAfterStackCheck()->entry())); 4978 isolate->builtins()->OsrAfterStackCheck()->entry()));
4979 return OSR_AFTER_STACK_CHECK; 4979 return OSR_AFTER_STACK_CHECK;
4980 } 4980 }
4981 4981
4982 4982
4983 } // namespace internal 4983 } // namespace internal
4984 } // namespace v8 4984 } // namespace v8
4985 4985
4986 #endif // V8_TARGET_ARCH_MIPS64 4986 #endif // V8_TARGET_ARCH_MIPS64
OLDNEW
« no previous file with comments | « src/full-codegen/mips/full-codegen-mips.cc ('k') | src/full-codegen/x64/full-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698