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

Side by Side Diff: src/ic.h

Issue 6960011: Compare IC: add SYMBOLS state. (Closed)
Patch Set: 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 SYMBOLS,
595 STRINGS, 596 STRINGS,
596 OBJECTS, 597 OBJECTS,
597 GENERIC 598 GENERIC
598 }; 599 };
599 600
600 CompareIC(Isolate* isolate, Token::Value op) 601 CompareIC(Isolate* isolate, Token::Value op)
601 : IC(EXTRA_CALL_FRAME, isolate), op_(op) { } 602 : IC(EXTRA_CALL_FRAME, isolate), op_(op) { }
602 603
603 // Update the inline cache for the given operands. 604 // Update the inline cache for the given operands.
604 void UpdateCaches(Handle<Object> x, Handle<Object> y); 605 void UpdateCaches(Handle<Object> x, Handle<Object> y);
(...skipping 19 matching lines...) Expand all
624 625
625 Token::Value op_; 626 Token::Value op_;
626 }; 627 };
627 628
628 // Helper for TRBinaryOpIC and CompareIC. 629 // Helper for TRBinaryOpIC and CompareIC.
629 void PatchInlinedSmiCode(Address address); 630 void PatchInlinedSmiCode(Address address);
630 631
631 } } // namespace v8::internal 632 } } // namespace v8::internal
632 633
633 #endif // V8_IC_H_ 634 #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