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

Side by Side Diff: src/full-codegen/x87/full-codegen-x87.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/x64/full-codegen-x64.cc ('k') | src/ia32/macro-assembler-ia32.h » ('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_X87 5 #if V8_TARGET_ARCH_X87
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 2110 matching lines...) Expand 10 before | Expand all | Expand 10 after
2121 // esp[kPointerSize] : receiver 2121 // esp[kPointerSize] : receiver
2122 2122
2123 PopOperand(StoreDescriptor::NameRegister()); // Key. 2123 PopOperand(StoreDescriptor::NameRegister()); // Key.
2124 PopOperand(StoreDescriptor::ReceiverRegister()); 2124 PopOperand(StoreDescriptor::ReceiverRegister());
2125 DCHECK(StoreDescriptor::ValueRegister().is(eax)); 2125 DCHECK(StoreDescriptor::ValueRegister().is(eax));
2126 CallKeyedStoreIC(expr->AssignmentSlot()); 2126 CallKeyedStoreIC(expr->AssignmentSlot());
2127 PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER); 2127 PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER);
2128 context()->Plug(eax); 2128 context()->Plug(eax);
2129 } 2129 }
2130 2130
2131
2132 void FullCodeGenerator::CallIC(Handle<Code> code,
2133 TypeFeedbackId ast_id) {
2134 ic_total_count_++;
2135 __ call(code, RelocInfo::CODE_TARGET, ast_id);
2136 }
2137
2138
2139 // Code common for calls using the IC. 2131 // Code common for calls using the IC.
2140 void FullCodeGenerator::EmitCallWithLoadIC(Call* expr) { 2132 void FullCodeGenerator::EmitCallWithLoadIC(Call* expr) {
2141 Expression* callee = expr->expression(); 2133 Expression* callee = expr->expression();
2142 2134
2143 // Get the target function. 2135 // Get the target function.
2144 ConvertReceiverMode convert_mode; 2136 ConvertReceiverMode convert_mode;
2145 if (callee->IsVariableProxy()) { 2137 if (callee->IsVariableProxy()) {
2146 { StackValueContext context(this); 2138 { StackValueContext context(this);
2147 EmitVariableLoad(callee->AsVariableProxy()); 2139 EmitVariableLoad(callee->AsVariableProxy());
2148 PrepareForBailout(callee, BailoutState::NO_REGISTERS); 2140 PrepareForBailout(callee, BailoutState::NO_REGISTERS);
(...skipping 1376 matching lines...) Expand 10 before | Expand all | Expand 10 after
3525 isolate->builtins()->OnStackReplacement()->entry(), 3517 isolate->builtins()->OnStackReplacement()->entry(),
3526 Assembler::target_address_at(call_target_address, unoptimized_code)); 3518 Assembler::target_address_at(call_target_address, unoptimized_code));
3527 return ON_STACK_REPLACEMENT; 3519 return ON_STACK_REPLACEMENT;
3528 } 3520 }
3529 3521
3530 3522
3531 } // namespace internal 3523 } // namespace internal
3532 } // namespace v8 3524 } // namespace v8
3533 3525
3534 #endif // V8_TARGET_ARCH_X87 3526 #endif // V8_TARGET_ARCH_X87
OLDNEW
« no previous file with comments | « src/full-codegen/x64/full-codegen-x64.cc ('k') | src/ia32/macro-assembler-ia32.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698