| 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 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 659 | 659 |
| 660 Handle<Code> StoreElementStub(Handle<JSObject> receiver, | 660 Handle<Code> StoreElementStub(Handle<JSObject> receiver, |
| 661 KeyedAccessStoreMode store_mode); | 661 KeyedAccessStoreMode store_mode); |
| 662 | 662 |
| 663 private: | 663 private: |
| 664 inline void set_target(Code* code); | 664 inline void set_target(Code* code); |
| 665 | 665 |
| 666 static void Clear(Isolate* isolate, Address address, Code* target, | 666 static void Clear(Isolate* isolate, Address address, Code* target, |
| 667 Address constant_pool); | 667 Address constant_pool); |
| 668 | 668 |
| 669 KeyedAccessStoreMode GetStoreMode(Handle<JSObject> receiver, | |
| 670 Handle<Object> key, Handle<Object> value); | |
| 671 | |
| 672 Handle<Map> ComputeTransitionedMap(Handle<Map> map, | 669 Handle<Map> ComputeTransitionedMap(Handle<Map> map, |
| 673 KeyedAccessStoreMode store_mode); | 670 KeyedAccessStoreMode store_mode); |
| 674 | 671 |
| 675 friend class IC; | 672 friend class IC; |
| 676 }; | 673 }; |
| 677 | 674 |
| 678 | 675 |
| 679 // Type Recording BinaryOpIC, that records the types of the inputs and outputs. | 676 // Type Recording BinaryOpIC, that records the types of the inputs and outputs. |
| 680 class BinaryOpIC : public IC { | 677 class BinaryOpIC : public IC { |
| 681 public: | 678 public: |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 766 | 763 |
| 767 // Support functions for interceptor handlers. | 764 // Support functions for interceptor handlers. |
| 768 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly); | 765 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptorOnly); |
| 769 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor); | 766 DECLARE_RUNTIME_FUNCTION(LoadPropertyWithInterceptor); |
| 770 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor); | 767 DECLARE_RUNTIME_FUNCTION(LoadElementWithInterceptor); |
| 771 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor); | 768 DECLARE_RUNTIME_FUNCTION(StorePropertyWithInterceptor); |
| 772 } | 769 } |
| 773 } // namespace v8::internal | 770 } // namespace v8::internal |
| 774 | 771 |
| 775 #endif // V8_IC_H_ | 772 #endif // V8_IC_H_ |
| OLD | NEW |