OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 613 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
624 Handle<Code> global_proxy_stub_strict() { | 624 Handle<Code> global_proxy_stub_strict() { |
625 return isolate()->builtins()->StoreIC_GlobalProxy_Strict(); | 625 return isolate()->builtins()->StoreIC_GlobalProxy_Strict(); |
626 } | 626 } |
627 | 627 |
628 static void Clear(Address address, Code* target); | 628 static void Clear(Address address, Code* target); |
629 | 629 |
630 friend class IC; | 630 friend class IC; |
631 }; | 631 }; |
632 | 632 |
633 | 633 |
| 634 enum KeyedStoreCheckMap { |
| 635 kDontCheckMap, |
| 636 kCheckMap |
| 637 }; |
| 638 |
| 639 |
| 640 enum KeyedStoreIncrementLength { |
| 641 kDontIncrementLength, |
| 642 kIncrementLength |
| 643 }; |
| 644 |
| 645 |
634 class KeyedStoreIC: public KeyedIC { | 646 class KeyedStoreIC: public KeyedIC { |
635 public: | 647 public: |
636 explicit KeyedStoreIC(Isolate* isolate) : KeyedIC(isolate) { | 648 explicit KeyedStoreIC(Isolate* isolate) : KeyedIC(isolate) { |
637 ASSERT(target()->is_keyed_store_stub()); | 649 ASSERT(target()->is_keyed_store_stub()); |
638 } | 650 } |
639 | 651 |
640 MUST_USE_RESULT MaybeObject* Store(State state, | 652 MUST_USE_RESULT MaybeObject* Store(State state, |
641 StrictModeFlag strict_mode, | 653 StrictModeFlag strict_mode, |
642 Handle<Object> object, | 654 Handle<Object> object, |
643 Handle<Object> name, | 655 Handle<Object> name, |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
837 }; | 849 }; |
838 | 850 |
839 | 851 |
840 // Helper for BinaryOpIC and CompareIC. | 852 // Helper for BinaryOpIC and CompareIC. |
841 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; | 853 enum InlinedSmiCheck { ENABLE_INLINED_SMI_CHECK, DISABLE_INLINED_SMI_CHECK }; |
842 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check); | 854 void PatchInlinedSmiCode(Address address, InlinedSmiCheck check); |
843 | 855 |
844 } } // namespace v8::internal | 856 } } // namespace v8::internal |
845 | 857 |
846 #endif // V8_IC_H_ | 858 #endif // V8_IC_H_ |
OLD | NEW |