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, |
727 GENERIC | 728 GENERIC |
728 }; | 729 }; |
729 | 730 |
730 CompareIC(Isolate* isolate, Token::Value op) | 731 CompareIC(Isolate* isolate, Token::Value op) |
731 : IC(EXTRA_CALL_FRAME, isolate), op_(op) { } | 732 : IC(EXTRA_CALL_FRAME, isolate), op_(op) { } |
732 | 733 |
733 // Update the inline cache for the given operands. | 734 // Update the inline cache for the given operands. |
734 void UpdateCaches(Handle<Object> x, Handle<Object> y); | 735 void UpdateCaches(Handle<Object> x, Handle<Object> y); |
735 | 736 |
736 // Factory method for getting an uninitialized compare stub. | 737 // Factory method for getting an uninitialized compare stub. |
(...skipping 26 matching lines...) Expand all Loading... |
763 void patch(Code* code); | 764 void patch(Code* code); |
764 }; | 765 }; |
765 | 766 |
766 | 767 |
767 // Helper for BinaryOpIC and CompareIC. | 768 // Helper for BinaryOpIC and CompareIC. |
768 void PatchInlinedSmiCode(Address address); | 769 void PatchInlinedSmiCode(Address address); |
769 | 770 |
770 } } // namespace v8::internal | 771 } } // namespace v8::internal |
771 | 772 |
772 #endif // V8_IC_H_ | 773 #endif // V8_IC_H_ |
OLD | NEW |