OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
717 | 717 |
718 class CompareIC: public IC { | 718 class CompareIC: public IC { |
719 public: | 719 public: |
720 enum State { | 720 enum State { |
721 UNINITIALIZED, | 721 UNINITIALIZED, |
722 SMIS, | 722 SMIS, |
723 HEAP_NUMBERS, | 723 HEAP_NUMBERS, |
724 SYMBOLS, | 724 SYMBOLS, |
725 STRINGS, | 725 STRINGS, |
726 OBJECTS, | 726 OBJECTS, |
727 KNOWN_OBJECTS, | |
728 GENERIC | 727 GENERIC |
729 }; | 728 }; |
730 | 729 |
731 CompareIC(Isolate* isolate, Token::Value op) | 730 CompareIC(Isolate* isolate, Token::Value op) |
732 : IC(EXTRA_CALL_FRAME, isolate), op_(op) { } | 731 : IC(EXTRA_CALL_FRAME, isolate), op_(op) { } |
733 | 732 |
734 // Update the inline cache for the given operands. | 733 // Update the inline cache for the given operands. |
735 void UpdateCaches(Handle<Object> x, Handle<Object> y); | 734 void UpdateCaches(Handle<Object> x, Handle<Object> y); |
736 | 735 |
737 // Factory method for getting an uninitialized compare stub. | 736 // Factory method for getting an uninitialized compare stub. |
(...skipping 26 matching lines...) Expand all Loading... |
764 void patch(Code* code); | 763 void patch(Code* code); |
765 }; | 764 }; |
766 | 765 |
767 | 766 |
768 // Helper for BinaryOpIC and CompareIC. | 767 // Helper for BinaryOpIC and CompareIC. |
769 void PatchInlinedSmiCode(Address address); | 768 void PatchInlinedSmiCode(Address address); |
770 | 769 |
771 } } // namespace v8::internal | 770 } } // namespace v8::internal |
772 | 771 |
773 #endif // V8_IC_H_ | 772 #endif // V8_IC_H_ |
OLD | NEW |