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

Side by Side Diff: src/full-codegen/arm/full-codegen-arm.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 | « no previous file | src/full-codegen/arm64/full-codegen-arm64.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_ARM 5 #if V8_TARGET_ARCH_ARM
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 2208 matching lines...) Expand 10 before | Expand all | Expand 10 after
2219 PopOperands(StoreDescriptor::ReceiverRegister(), 2219 PopOperands(StoreDescriptor::ReceiverRegister(),
2220 StoreDescriptor::NameRegister()); 2220 StoreDescriptor::NameRegister());
2221 DCHECK(StoreDescriptor::ValueRegister().is(r0)); 2221 DCHECK(StoreDescriptor::ValueRegister().is(r0));
2222 2222
2223 CallKeyedStoreIC(expr->AssignmentSlot()); 2223 CallKeyedStoreIC(expr->AssignmentSlot());
2224 2224
2225 PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER); 2225 PrepareForBailoutForId(expr->AssignmentId(), BailoutState::TOS_REGISTER);
2226 context()->Plug(r0); 2226 context()->Plug(r0);
2227 } 2227 }
2228 2228
2229
2230 void FullCodeGenerator::CallIC(Handle<Code> code,
2231 TypeFeedbackId ast_id) {
2232 ic_total_count_++;
2233 // All calls must have a predictable size in full-codegen code to ensure that
2234 // the debugger can patch them correctly.
2235 __ Call(code, RelocInfo::CODE_TARGET, ast_id, al,
2236 NEVER_INLINE_TARGET_ADDRESS);
2237 }
2238
2239
2240 // Code common for calls using the IC. 2229 // Code common for calls using the IC.
2241 void FullCodeGenerator::EmitCallWithLoadIC(Call* expr) { 2230 void FullCodeGenerator::EmitCallWithLoadIC(Call* expr) {
2242 Expression* callee = expr->expression(); 2231 Expression* callee = expr->expression();
2243 2232
2244 // Get the target function. 2233 // Get the target function.
2245 ConvertReceiverMode convert_mode; 2234 ConvertReceiverMode convert_mode;
2246 if (callee->IsVariableProxy()) { 2235 if (callee->IsVariableProxy()) {
2247 { StackValueContext context(this); 2236 { StackValueContext context(this);
2248 EmitVariableLoad(callee->AsVariableProxy()); 2237 EmitVariableLoad(callee->AsVariableProxy());
2249 PrepareForBailout(callee, BailoutState::NO_REGISTERS); 2238 PrepareForBailout(callee, BailoutState::NO_REGISTERS);
(...skipping 1454 matching lines...) Expand 10 before | Expand all | Expand 10 after
3704 DCHECK(interrupt_address == 3693 DCHECK(interrupt_address ==
3705 isolate->builtins()->OnStackReplacement()->entry()); 3694 isolate->builtins()->OnStackReplacement()->entry());
3706 return ON_STACK_REPLACEMENT; 3695 return ON_STACK_REPLACEMENT;
3707 } 3696 }
3708 3697
3709 3698
3710 } // namespace internal 3699 } // namespace internal
3711 } // namespace v8 3700 } // namespace v8
3712 3701
3713 #endif // V8_TARGET_ARCH_ARM 3702 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/full-codegen/arm64/full-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698