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

Side by Side Diff: src/full-codegen/mips/full-codegen-mips.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
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_MIPS 5 #if V8_TARGET_ARCH_MIPS
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 3000 matching lines...) Expand 10 before | Expand all | Expand 10 after
3011 SetConstructCallPosition(expr, arg_count); 3011 SetConstructCallPosition(expr, arg_count);
3012 3012
3013 // Load function and argument count into a1 and a0. 3013 // Load function and argument count into a1 and a0.
3014 __ li(a0, Operand(arg_count)); 3014 __ li(a0, Operand(arg_count));
3015 __ lw(a1, MemOperand(sp, arg_count * kPointerSize)); 3015 __ lw(a1, MemOperand(sp, arg_count * kPointerSize));
3016 3016
3017 // Record call targets in unoptimized code. 3017 // Record call targets in unoptimized code.
3018 __ EmitLoadTypeFeedbackVector(a2); 3018 __ EmitLoadTypeFeedbackVector(a2);
3019 __ li(a3, Operand(SmiFromSlot(expr->CallNewFeedbackSlot()))); 3019 __ li(a3, Operand(SmiFromSlot(expr->CallNewFeedbackSlot())));
3020 3020
3021 Handle<Code> code = CodeFactory::ConstructIC(isolate()).code(); 3021 CallConstructStub stub(isolate());
3022 __ Call(code, RelocInfo::CODE_TARGET); 3022 __ Call(stub.GetCode(), RelocInfo::CODE_TARGET);
3023 PrepareForBailoutForId(expr->ReturnId(), TOS_REG); 3023 PrepareForBailoutForId(expr->ReturnId(), TOS_REG);
3024 // Restore context register. 3024 // Restore context register.
3025 __ lw(cp, MemOperand(fp, StandardFrameConstants::kContextOffset)); 3025 __ lw(cp, MemOperand(fp, StandardFrameConstants::kContextOffset));
3026 context()->Plug(v0); 3026 context()->Plug(v0);
3027 } 3027 }
3028 3028
3029 3029
3030 void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) { 3030 void FullCodeGenerator::EmitSuperConstructorCall(Call* expr) {
3031 SuperCallReference* super_call_ref = 3031 SuperCallReference* super_call_ref =
3032 expr->expression()->AsSuperCallReference(); 3032 expr->expression()->AsSuperCallReference();
(...skipping 1936 matching lines...) Expand 10 before | Expand all | Expand 10 after
4969 reinterpret_cast<uint32_t>( 4969 reinterpret_cast<uint32_t>(
4970 isolate->builtins()->OsrAfterStackCheck()->entry())); 4970 isolate->builtins()->OsrAfterStackCheck()->entry()));
4971 return OSR_AFTER_STACK_CHECK; 4971 return OSR_AFTER_STACK_CHECK;
4972 } 4972 }
4973 4973
4974 4974
4975 } // namespace internal 4975 } // namespace internal
4976 } // namespace v8 4976 } // namespace v8
4977 4977
4978 #endif // V8_TARGET_ARCH_MIPS 4978 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/full-codegen/ia32/full-codegen-ia32.cc ('k') | src/full-codegen/mips64/full-codegen-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698