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

Side by Side Diff: src/ic/ic.h

Issue 2459333003: [ic] Detailize some IC-specific runtime call stats counters. (Closed)
Patch Set: 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/ic/handler-compiler.cc ('k') | src/ic/ic.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 #ifndef V8_IC_H_ 5 #ifndef V8_IC_H_
6 #define V8_IC_H_ 6 #define V8_IC_H_
7 7
8 #include "src/ic/ic-state.h" 8 #include "src/ic/ic-state.h"
9 #include "src/macro-assembler.h" 9 #include "src/macro-assembler.h"
10 #include "src/messages.h" 10 #include "src/messages.h"
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 // Access the target code for the given IC address. 134 // Access the target code for the given IC address.
135 static inline Code* GetTargetAtAddress(Address address, 135 static inline Code* GetTargetAtAddress(Address address,
136 Address constant_pool); 136 Address constant_pool);
137 static inline void SetTargetAtAddress(Address address, Code* target, 137 static inline void SetTargetAtAddress(Address address, Code* target,
138 Address constant_pool); 138 Address constant_pool);
139 // As a vector-based IC, type feedback must be updated differently. 139 // As a vector-based IC, type feedback must be updated differently.
140 static void OnTypeFeedbackChanged(Isolate* isolate, Code* host); 140 static void OnTypeFeedbackChanged(Isolate* isolate, Code* host);
141 static void PostPatching(Address address, Code* target, Code* old_target); 141 static void PostPatching(Address address, Code* target, Code* old_target);
142 142
143 void TraceHandlerCacheHitStats(LookupIterator* lookup);
144
143 // Compute the handler either by compiling or by retrieving a cached version. 145 // Compute the handler either by compiling or by retrieving a cached version.
144 Handle<Object> ComputeHandler(LookupIterator* lookup, 146 Handle<Object> ComputeHandler(LookupIterator* lookup,
145 Handle<Object> value = Handle<Code>::null()); 147 Handle<Object> value = Handle<Code>::null());
146 virtual Handle<Object> GetMapIndependentHandler(LookupIterator* lookup) { 148 virtual Handle<Object> GetMapIndependentHandler(LookupIterator* lookup) {
147 UNREACHABLE(); 149 UNREACHABLE();
148 return Handle<Code>::null(); 150 return Handle<Code>::null();
149 } 151 }
150 virtual Handle<Code> CompileHandler(LookupIterator* lookup, 152 virtual Handle<Code> CompileHandler(LookupIterator* lookup,
151 Handle<Object> value, 153 Handle<Object> value,
152 CacheHolderFlag cache_holder) { 154 CacheHolderFlag cache_holder) {
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 516
515 // Helper for BinaryOpIC and CompareIC. 517 // Helper for BinaryOpIC and CompareIC.
516 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; 518 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK };
517 void PatchInlinedSmiCode(Isolate* isolate, Address address, 519 void PatchInlinedSmiCode(Isolate* isolate, Address address,
518 InlinedSmiCheck check); 520 InlinedSmiCheck check);
519 521
520 } // namespace internal 522 } // namespace internal
521 } // namespace v8 523 } // namespace v8
522 524
523 #endif // V8_IC_H_ 525 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ic/handler-compiler.cc ('k') | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698