| 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 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 707 Handle<Object> key, | 707 Handle<Object> key, |
| 708 Handle<Object> value); | 708 Handle<Object> value); |
| 709 | 709 |
| 710 Handle<Map> ComputeTransitionedMap(Handle<JSObject> receiver, | 710 Handle<Map> ComputeTransitionedMap(Handle<JSObject> receiver, |
| 711 KeyedAccessStoreMode store_mode); | 711 KeyedAccessStoreMode store_mode); |
| 712 | 712 |
| 713 friend class IC; | 713 friend class IC; |
| 714 }; | 714 }; |
| 715 | 715 |
| 716 | 716 |
| 717 class UnaryOpIC: public IC { |
| 718 public: |
| 719 explicit UnaryOpIC(Isolate* isolate) : IC(EXTRA_CALL_FRAME, isolate) { } |
| 720 |
| 721 MUST_USE_RESULT MaybeObject* Transition(Handle<Object> object); |
| 722 }; |
| 723 |
| 724 |
| 717 // Type Recording BinaryOpIC, that records the types of the inputs and outputs. | 725 // Type Recording BinaryOpIC, that records the types of the inputs and outputs. |
| 718 class BinaryOpIC: public IC { | 726 class BinaryOpIC: public IC { |
| 719 public: | 727 public: |
| 720 enum TypeInfo { | 728 enum TypeInfo { |
| 721 UNINITIALIZED, | 729 UNINITIALIZED, |
| 722 SMI, | 730 SMI, |
| 723 INT32, | 731 INT32, |
| 724 NUMBER, | 732 NUMBER, |
| 725 ODDBALL, | 733 ODDBALL, |
| 726 STRING, // Only used for addition operation. | 734 STRING, // Only used for addition operation. |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 849 DECLARE_RUNTIME_FUNCTION(MaybeObject*, UnaryOpIC_Miss); | 857 DECLARE_RUNTIME_FUNCTION(MaybeObject*, UnaryOpIC_Miss); |
| 850 DECLARE_RUNTIME_FUNCTION(MaybeObject*, StoreIC_MissFromStubFailure); | 858 DECLARE_RUNTIME_FUNCTION(MaybeObject*, StoreIC_MissFromStubFailure); |
| 851 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ElementsTransitionAndStoreIC_Miss); | 859 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ElementsTransitionAndStoreIC_Miss); |
| 852 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CompareNilIC_Miss); | 860 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CompareNilIC_Miss); |
| 853 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ToBooleanIC_Miss); | 861 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ToBooleanIC_Miss); |
| 854 | 862 |
| 855 | 863 |
| 856 } } // namespace v8::internal | 864 } } // namespace v8::internal |
| 857 | 865 |
| 858 #endif // V8_IC_H_ | 866 #endif // V8_IC_H_ |
| OLD | NEW |