Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Side by Side Diff: src/ic.h

Issue 8883023: Revert 10216 Optimize the equality check case of ICCompare stubs. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/ic-ia32.cc ('k') | src/ic.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/ia32/ic-ia32.cc ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698