OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |