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

Side by Side Diff: src/full-codegen/ia32/full-codegen-ia32.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
« no previous file with comments | « src/full-codegen/full-codegen.cc ('k') | src/full-codegen/mips/full-codegen-mips.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_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/full-codegen/full-codegen.h" 7 #include "src/full-codegen/full-codegen.h"
8 #include "src/ast/compile-time-value.h" 8 #include "src/ast/compile-time-value.h"
9 #include "src/ast/scopes.h" 9 #include "src/ast/scopes.h"
10 #include "src/code-factory.h" 10 #include "src/code-factory.h"
(...skipping 2118 matching lines...) Expand 10 before | Expand all | Expand 10 after
2129 // esp[kPointerSize] : receiver 2129 // esp[kPointerSize] : receiver
2130 2130
2131 PopOperand(StoreDescriptor::NameRegister()); // Key. 2131 PopOperand(StoreDescriptor::NameRegister()); // Key.
2132 PopOperand(StoreDescriptor::ReceiverRegister()); 2132 PopOperand(StoreDescriptor::ReceiverRegister());
2133 DCHECK(StoreDescriptor::ValueRegister().is(eax)); 2133 DCHECK(StoreDescriptor::ValueRegister().is(eax));
2134 CallKeyedStoreIC(expr->AssignmentSlot()); 2134 CallKeyedStoreIC(expr->AssignmentSlot());
2135 PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER); 2135 PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER);
2136 context()->Plug(eax); 2136 context()->Plug(eax);
2137 } 2137 }
2138 2138
2139
2140 void FullCodeGenerator::CallIC(Handle<Code> code,
2141 TypeFeedbackId ast_id) {
2142 ic_total_count_++;
2143 __ call(code, RelocInfo::CODE_TARGET, ast_id);
2144 }
2145
2146
2147 // Code common for calls using the IC. 2139 // Code common for calls using the IC.
2148 void FullCodeGenerator::EmitCallWithLoadIC(Call* expr) { 2140 void FullCodeGenerator::EmitCallWithLoadIC(Call* expr) {
2149 Expression* callee = expr->expression(); 2141 Expression* callee = expr->expression();
2150 2142
2151 // Get the target function. 2143 // Get the target function.
2152 ConvertReceiverMode convert_mode; 2144 ConvertReceiverMode convert_mode;
2153 if (callee->IsVariableProxy()) { 2145 if (callee->IsVariableProxy()) {
2154 { StackValueContext context(this); 2146 { StackValueContext context(this);
2155 EmitVariableLoad(callee->AsVariableProxy()); 2147 EmitVariableLoad(callee->AsVariableProxy());
2156 PrepareForBailout(callee, BailoutState::NO_REGISTERS); 2148 PrepareForBailout(callee, BailoutState::NO_REGISTERS);
(...skipping 1376 matching lines...) Expand 10 before | Expand all | Expand 10 after
3533 isolate->builtins()->OnStackReplacement()->entry(), 3525 isolate->builtins()->OnStackReplacement()->entry(),
3534 Assembler::target_address_at(call_target_address, unoptimized_code)); 3526 Assembler::target_address_at(call_target_address, unoptimized_code));
3535 return ON_STACK_REPLACEMENT; 3527 return ON_STACK_REPLACEMENT;
3536 } 3528 }
3537 3529
3538 3530
3539 } // namespace internal 3531 } // namespace internal
3540 } // namespace v8 3532 } // namespace v8
3541 3533
3542 #endif // V8_TARGET_ARCH_IA32 3534 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/full-codegen/full-codegen.cc ('k') | src/full-codegen/mips/full-codegen-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698