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 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
603 | 603 |
604 // Type Recording BinaryOpIC, that records the types of the inputs and outputs. | 604 // Type Recording BinaryOpIC, that records the types of the inputs and outputs. |
605 class TRBinaryOpIC: public IC { | 605 class TRBinaryOpIC: public IC { |
606 public: | 606 public: |
607 | 607 |
608 enum TypeInfo { | 608 enum TypeInfo { |
609 UNINITIALIZED, | 609 UNINITIALIZED, |
610 SMI, | 610 SMI, |
611 INT32, | 611 INT32, |
612 HEAP_NUMBER, | 612 HEAP_NUMBER, |
| 613 ODDBALL, |
613 STRING, // Only used for addition operation. At least one string operand. | 614 STRING, // Only used for addition operation. At least one string operand. |
614 GENERIC | 615 GENERIC |
615 }; | 616 }; |
616 | 617 |
617 explicit TRBinaryOpIC(Isolate* isolate) : IC(NO_EXTRA_FRAME, isolate) { } | 618 explicit TRBinaryOpIC(Isolate* isolate) : IC(NO_EXTRA_FRAME, isolate) { } |
618 | 619 |
619 void patch(Code* code); | 620 void patch(Code* code); |
620 | 621 |
621 static const char* GetName(TypeInfo type_info); | 622 static const char* GetName(TypeInfo type_info); |
622 | 623 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
665 | 666 |
666 Token::Value op_; | 667 Token::Value op_; |
667 }; | 668 }; |
668 | 669 |
669 // Helper for TRBinaryOpIC and CompareIC. | 670 // Helper for TRBinaryOpIC and CompareIC. |
670 void PatchInlinedSmiCode(Address address); | 671 void PatchInlinedSmiCode(Address address); |
671 | 672 |
672 } } // namespace v8::internal | 673 } } // namespace v8::internal |
673 | 674 |
674 #endif // V8_IC_H_ | 675 #endif // V8_IC_H_ |
OLD | NEW |