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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 // lookup result. | 303 // lookup result. |
304 void UpdateCaches(LookupIterator* lookup); | 304 void UpdateCaches(LookupIterator* lookup); |
305 | 305 |
306 Handle<Object> GetMapIndependentHandler(LookupIterator* lookup) override; | 306 Handle<Object> GetMapIndependentHandler(LookupIterator* lookup) override; |
307 | 307 |
308 Handle<Code> CompileHandler(LookupIterator* lookup, Handle<Object> unused, | 308 Handle<Code> CompileHandler(LookupIterator* lookup, Handle<Object> unused, |
309 CacheHolderFlag cache_holder) override; | 309 CacheHolderFlag cache_holder) override; |
310 | 310 |
311 private: | 311 private: |
312 Handle<Object> SimpleFieldLoad(FieldIndex index); | 312 Handle<Object> SimpleFieldLoad(FieldIndex index); |
| 313 Handle<Object> SimpleFieldLoadFromPrototype(FieldIndex index, |
| 314 Handle<Map> receiver_map, |
| 315 Handle<JSObject> holder); |
313 | 316 |
314 friend class IC; | 317 friend class IC; |
315 }; | 318 }; |
316 | 319 |
317 class LoadGlobalIC : public LoadIC { | 320 class LoadGlobalIC : public LoadIC { |
318 public: | 321 public: |
319 LoadGlobalIC(FrameDepth depth, Isolate* isolate, FeedbackNexus* nexus = NULL) | 322 LoadGlobalIC(FrameDepth depth, Isolate* isolate, FeedbackNexus* nexus = NULL) |
320 : LoadIC(depth, isolate, nexus) {} | 323 : LoadIC(depth, isolate, nexus) {} |
321 | 324 |
322 MUST_USE_RESULT MaybeHandle<Object> Load(Handle<Name> name); | 325 MUST_USE_RESULT MaybeHandle<Object> Load(Handle<Name> name); |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 | 507 |
505 // Helper for BinaryOpIC and CompareIC. | 508 // Helper for BinaryOpIC and CompareIC. |
506 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; | 509 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; |
507 void PatchInlinedSmiCode(Isolate* isolate, Address address, | 510 void PatchInlinedSmiCode(Isolate* isolate, Address address, |
508 InlinedSmiCheck check); | 511 InlinedSmiCheck check); |
509 | 512 |
510 } // namespace internal | 513 } // namespace internal |
511 } // namespace v8 | 514 } // namespace v8 |
512 | 515 |
513 #endif // V8_IC_H_ | 516 #endif // V8_IC_H_ |
OLD | NEW |