OLD | NEW |
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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 Handle<Object> value, | 146 Handle<Object> value, |
147 CacheHolderFlag cache_holder) { | 147 CacheHolderFlag cache_holder) { |
148 UNREACHABLE(); | 148 UNREACHABLE(); |
149 return Handle<Code>::null(); | 149 return Handle<Code>::null(); |
150 } | 150 } |
151 | 151 |
152 void UpdateMonomorphicIC(Handle<Code> handler, Handle<Name> name); | 152 void UpdateMonomorphicIC(Handle<Code> handler, Handle<Name> name); |
153 bool UpdatePolymorphicIC(Handle<Name> name, Handle<Code> code); | 153 bool UpdatePolymorphicIC(Handle<Name> name, Handle<Code> code); |
154 void UpdateMegamorphicCache(Map* map, Name* name, Code* code); | 154 void UpdateMegamorphicCache(Map* map, Name* name, Code* code); |
155 | 155 |
| 156 StubCache* stub_cache(); |
| 157 |
156 void CopyICToMegamorphicCache(Handle<Name> name); | 158 void CopyICToMegamorphicCache(Handle<Name> name); |
157 bool IsTransitionOfMonomorphicTarget(Map* source_map, Map* target_map); | 159 bool IsTransitionOfMonomorphicTarget(Map* source_map, Map* target_map); |
158 void PatchCache(Handle<Name> name, Handle<Code> code); | 160 void PatchCache(Handle<Name> name, Handle<Code> code); |
159 Code::Kind kind() const { return kind_; } | 161 Code::Kind kind() const { return kind_; } |
160 bool is_keyed() const { | 162 bool is_keyed() const { |
161 return kind_ == Code::KEYED_LOAD_IC || kind_ == Code::KEYED_STORE_IC; | 163 return kind_ == Code::KEYED_LOAD_IC || kind_ == Code::KEYED_STORE_IC; |
162 } | 164 } |
163 Code::Kind handler_kind() const { | 165 Code::Kind handler_kind() const { |
164 if (kind_ == Code::KEYED_LOAD_IC) return Code::LOAD_IC; | 166 if (kind_ == Code::KEYED_LOAD_IC) return Code::LOAD_IC; |
165 DCHECK(kind_ == Code::LOAD_IC || kind_ == Code::STORE_IC || | 167 DCHECK(kind_ == Code::LOAD_IC || kind_ == Code::STORE_IC || |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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_ |
OLD | NEW |