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