OLD | NEW |
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 625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
636 explicit TRUnaryOpIC(Isolate* isolate) : IC(NO_EXTRA_FRAME, isolate) { } | 636 explicit TRUnaryOpIC(Isolate* isolate) : IC(NO_EXTRA_FRAME, isolate) { } |
637 | 637 |
638 void patch(Code* code); | 638 void patch(Code* code); |
639 | 639 |
640 static const char* GetName(TypeInfo type_info); | 640 static const char* GetName(TypeInfo type_info); |
641 | 641 |
642 static State ToState(TypeInfo type_info); | 642 static State ToState(TypeInfo type_info); |
643 | 643 |
644 static TypeInfo GetTypeInfo(Handle<Object> operand); | 644 static TypeInfo GetTypeInfo(Handle<Object> operand); |
645 | 645 |
646 static TypeInfo JoinTypes(TypeInfo x, TypeInfo y); | 646 static TypeInfo ComputeNewType(TypeInfo type, TypeInfo previous); |
647 }; | 647 }; |
648 | 648 |
649 | 649 |
650 // Type Recording BinaryOpIC, that records the types of the inputs and outputs. | 650 // Type Recording BinaryOpIC, that records the types of the inputs and outputs. |
651 class TRBinaryOpIC: public IC { | 651 class TRBinaryOpIC: public IC { |
652 public: | 652 public: |
653 | 653 |
654 enum TypeInfo { | 654 enum TypeInfo { |
655 UNINITIALIZED, | 655 UNINITIALIZED, |
656 SMI, | 656 SMI, |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 | 715 |
716 Token::Value op_; | 716 Token::Value op_; |
717 }; | 717 }; |
718 | 718 |
719 // Helper for TRBinaryOpIC and CompareIC. | 719 // Helper for TRBinaryOpIC and CompareIC. |
720 void PatchInlinedSmiCode(Address address); | 720 void PatchInlinedSmiCode(Address address); |
721 | 721 |
722 } } // namespace v8::internal | 722 } } // namespace v8::internal |
723 | 723 |
724 #endif // V8_IC_H_ | 724 #endif // V8_IC_H_ |
OLD | NEW |