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 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 SMI, | 734 SMI, |
735 NUMBER, | 735 NUMBER, |
736 STRING, | 736 STRING, |
737 INTERNALIZED_STRING, | 737 INTERNALIZED_STRING, |
738 UNIQUE_NAME, // Symbol or InternalizedString | 738 UNIQUE_NAME, // Symbol or InternalizedString |
739 OBJECT, // JSObject | 739 OBJECT, // JSObject |
740 KNOWN_OBJECT, // JSObject with specific map (faster check) | 740 KNOWN_OBJECT, // JSObject with specific map (faster check) |
741 GENERIC | 741 GENERIC |
742 }; | 742 }; |
743 | 743 |
| 744 static Handle<Type> StateToType( |
| 745 Isolate* isolate, State state, Handle<Map> map = Handle<Map>()); |
| 746 |
744 CompareIC(Isolate* isolate, Token::Value op) | 747 CompareIC(Isolate* isolate, Token::Value op) |
745 : IC(EXTRA_CALL_FRAME, isolate), op_(op) { } | 748 : IC(EXTRA_CALL_FRAME, isolate), op_(op) { } |
746 | 749 |
747 // Update the inline cache for the given operands. | 750 // Update the inline cache for the given operands. |
748 void UpdateCaches(Handle<Object> x, Handle<Object> y); | 751 void UpdateCaches(Handle<Object> x, Handle<Object> y); |
749 | 752 |
750 | 753 |
751 // Factory method for getting an uninitialized compare stub. | 754 // Factory method for getting an uninitialized compare stub. |
752 static Handle<Code> GetUninitialized(Isolate* isolate, Token::Value op); | 755 static Handle<Code> GetUninitialized(Isolate* isolate, Token::Value op); |
753 | 756 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
808 | 811 |
809 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedLoadIC_MissFromStubFailure); | 812 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedLoadIC_MissFromStubFailure); |
810 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedStoreIC_MissFromStubFailure); | 813 DECLARE_RUNTIME_FUNCTION(MaybeObject*, KeyedStoreIC_MissFromStubFailure); |
811 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CompareNilIC_Miss); | 814 DECLARE_RUNTIME_FUNCTION(MaybeObject*, CompareNilIC_Miss); |
812 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ToBooleanIC_Miss); | 815 DECLARE_RUNTIME_FUNCTION(MaybeObject*, ToBooleanIC_Miss); |
813 | 816 |
814 | 817 |
815 } } // namespace v8::internal | 818 } } // namespace v8::internal |
816 | 819 |
817 #endif // V8_IC_H_ | 820 #endif // V8_IC_H_ |
OLD | NEW |