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

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

Issue 868453005: Continue learning for calls in optimized code when we have no type feedback. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@navier
Patch Set: Compile error fix. Created 5 years, 11 months 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/ia32/lithium-ia32.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 10
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 Address pc() const { return *pc_address_; } 139 Address pc() const { return *pc_address_; }
140 Isolate* isolate() const { return isolate_; } 140 Isolate* isolate() const { return isolate_; }
141 141
142 // Get the shared function info of the caller. 142 // Get the shared function info of the caller.
143 SharedFunctionInfo* GetSharedFunctionInfo() const; 143 SharedFunctionInfo* GetSharedFunctionInfo() const;
144 // Get the code object of the caller. 144 // Get the code object of the caller.
145 Code* GetCode() const; 145 Code* GetCode() const;
146 // Get the original (non-breakpointed) code object of the caller. 146 // Get the original (non-breakpointed) code object of the caller.
147 Code* GetOriginalCode() const; 147 Code* GetOriginalCode() const;
148 148
149 bool AddressIsOptimizedCode() const;
150
149 // Set the call-site target. 151 // Set the call-site target.
150 inline void set_target(Code* code); 152 inline void set_target(Code* code);
151 bool is_target_set() { return target_set_; } 153 bool is_target_set() { return target_set_; }
152 bool is_vector_set() { return vector_set_; } 154 bool is_vector_set() { return vector_set_; }
153 155
154 bool UseVector() const { 156 bool UseVector() const {
155 bool use = ICUseVector(kind()); 157 bool use = ICUseVector(kind());
156 // If we are supposed to use the nexus, verify the nexus is non-null. 158 // If we are supposed to use the nexus, verify the nexus is non-null.
157 DCHECK(!use || nexus_ != NULL); 159 DCHECK(!use || nexus_ != NULL);
158 return use; 160 return use;
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 768
767 // Support functions for interceptor handlers. 769 // Support functions for interceptor handlers.
768 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly); 770 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly);
769 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor); 771 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor);
770 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor); 772 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor);
771 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor); 773 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor);
772 } 774 }
773 } // namespace v8::internal 775 } // namespace v8::internal
774 776
775 #endif // V8_IC_H_ 777 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ia32/lithium-ia32.cc ('k') | src/ic/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698