| 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 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 | 569 |
| 570 // Type Recording BinaryOpIC, that records the types of the inputs and outputs. | 570 // Type Recording BinaryOpIC, that records the types of the inputs and outputs. |
| 571 class TRBinaryOpIC: public IC { | 571 class TRBinaryOpIC: public IC { |
| 572 public: | 572 public: |
| 573 | 573 |
| 574 enum TypeInfo { | 574 enum TypeInfo { |
| 575 UNINITIALIZED, | 575 UNINITIALIZED, |
| 576 SMI, | 576 SMI, |
| 577 INT32, | 577 INT32, |
| 578 HEAP_NUMBER, | 578 HEAP_NUMBER, |
| 579 ODDBALL, |
| 579 STRING, // Only used for addition operation. At least one string operand. | 580 STRING, // Only used for addition operation. At least one string operand. |
| 580 GENERIC | 581 GENERIC |
| 581 }; | 582 }; |
| 582 | 583 |
| 583 TRBinaryOpIC() : IC(NO_EXTRA_FRAME) { } | 584 TRBinaryOpIC() : IC(NO_EXTRA_FRAME) { } |
| 584 | 585 |
| 585 void patch(Code* code); | 586 void patch(Code* code); |
| 586 | 587 |
| 587 static const char* GetName(TypeInfo type_info); | 588 static const char* GetName(TypeInfo type_info); |
| 588 | 589 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 | 631 |
| 631 Token::Value op_; | 632 Token::Value op_; |
| 632 }; | 633 }; |
| 633 | 634 |
| 634 // Helper for TRBinaryOpIC and CompareIC. | 635 // Helper for TRBinaryOpIC and CompareIC. |
| 635 void PatchInlinedSmiCode(Address address); | 636 void PatchInlinedSmiCode(Address address); |
| 636 | 637 |
| 637 } } // namespace v8::internal | 638 } } // namespace v8::internal |
| 638 | 639 |
| 639 #endif // V8_IC_H_ | 640 #endif // V8_IC_H_ |
| OLD | NEW |