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

Side by Side Diff: src/ic.h

Issue 6937001: Compare IC: add STRINGS state. (Closed)
Patch Set: Ports Created 9 years, 7 months 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
« no previous file with comments | « src/ia32/code-stubs-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 2006-2009 the V8 project authors. All rights reserved. 1 // Copyright 2006-2009 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 574 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 static TypeInfo JoinTypes(TypeInfo x, TypeInfo y); 585 static TypeInfo JoinTypes(TypeInfo x, TypeInfo y);
586 }; 586 };
587 587
588 588
589 class CompareIC: public IC { 589 class CompareIC: public IC {
590 public: 590 public:
591 enum State { 591 enum State {
592 UNINITIALIZED, 592 UNINITIALIZED,
593 SMIS, 593 SMIS,
594 HEAP_NUMBERS, 594 HEAP_NUMBERS,
595 STRINGS,
595 OBJECTS, 596 OBJECTS,
596 GENERIC 597 GENERIC
597 }; 598 };
598 599
599 CompareIC(Isolate* isolate, Token::Value op) 600 CompareIC(Isolate* isolate, Token::Value op)
600 : IC(EXTRA_CALL_FRAME, isolate), op_(op) { } 601 : IC(EXTRA_CALL_FRAME, isolate), op_(op) { }
601 602
602 // Update the inline cache for the given operands. 603 // Update the inline cache for the given operands.
603 void UpdateCaches(Handle<Object> x, Handle<Object> y); 604 void UpdateCaches(Handle<Object> x, Handle<Object> y);
604 605
(...skipping 18 matching lines...) Expand all
623 624
624 Token::Value op_; 625 Token::Value op_;
625 }; 626 };
626 627
627 // Helper for TRBinaryOpIC and CompareIC. 628 // Helper for TRBinaryOpIC and CompareIC.
628 void PatchInlinedSmiCode(Address address); 629 void PatchInlinedSmiCode(Address address);
629 630
630 } } // namespace v8::internal 631 } } // namespace v8::internal
631 632
632 #endif // V8_IC_H_ 633 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698