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

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

Issue 2472653002: [compiler] Sanitize IC counts for vector based ICs. (Closed)
Patch Set: Fix compile. Created 4 years, 1 month 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 2224 matching lines...) Expand 10 before | Expand all | Expand 10 after
2235 PopOperands(StoreDescriptor::ReceiverRegister(), 2235 PopOperands(StoreDescriptor::ReceiverRegister(),
2236 StoreDescriptor::NameRegister()); 2236 StoreDescriptor::NameRegister());
2237 DCHECK(StoreDescriptor::ValueRegister().is(a0)); 2237 DCHECK(StoreDescriptor::ValueRegister().is(a0));
2238 2238
2239 CallKeyedStoreIC(expr->AssignmentSlot()); 2239 CallKeyedStoreIC(expr->AssignmentSlot());
2240 2240
2241 PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER); 2241 PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER);
2242 context()->Plug(v0); 2242 context()->Plug(v0);
2243 } 2243 }
2244 2244
2245
2246 void FullCodeGenerator::CallIC(Handle<Code> code,
2247 TypeFeedbackId id) {
2248 ic_total_count_++;
2249 __ Call(code, RelocInfo::CODE_TARGET, id);
2250 }
2251
2252
2253 // Code common for calls using the IC. 2245 // Code common for calls using the IC.
2254 void FullCodeGenerator::EmitCallWithLoadIC(Call* expr) { 2246 void FullCodeGenerator::EmitCallWithLoadIC(Call* expr) {
2255 Expression* callee = expr->expression(); 2247 Expression* callee = expr->expression();
2256 2248
2257 // Get the target function. 2249 // Get the target function.
2258 ConvertReceiverMode convert_mode; 2250 ConvertReceiverMode convert_mode;
2259 if (callee->IsVariableProxy()) { 2251 if (callee->IsVariableProxy()) {
2260 { StackValueContext context(this); 2252 { StackValueContext context(this);
2261 EmitVariableLoad(callee->AsVariableProxy()); 2253 EmitVariableLoad(callee->AsVariableProxy());
2262 PrepareForBailout(callee, BailoutState::NO_REGISTERS); 2254 PrepareForBailout(callee, BailoutState::NO_REGISTERS);
(...skipping 1384 matching lines...) Expand 10 before | Expand all | Expand 10 after
3647 reinterpret_cast<uint32_t>( 3639 reinterpret_cast<uint32_t>(
3648 isolate->builtins()->OnStackReplacement()->entry())); 3640 isolate->builtins()->OnStackReplacement()->entry()));
3649 return ON_STACK_REPLACEMENT; 3641 return ON_STACK_REPLACEMENT;
3650 } 3642 }
3651 3643
3652 3644
3653 } // namespace internal 3645 } // namespace internal
3654 } // namespace v8 3646 } // namespace v8
3655 3647
3656 #endif // V8_TARGET_ARCH_MIPS 3648 #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