| 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 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 | 604 |
| 605 // Helper function for computing the condition for a compare operation. | 605 // Helper function for computing the condition for a compare operation. |
| 606 static Condition ComputeCondition(Token::Value op); | 606 static Condition ComputeCondition(Token::Value op); |
| 607 | 607 |
| 608 // Helper function for determining the state of a compare IC. | 608 // Helper function for determining the state of a compare IC. |
| 609 static State ComputeState(Code* target); | 609 static State ComputeState(Code* target); |
| 610 | 610 |
| 611 static const char* GetStateName(State state); | 611 static const char* GetStateName(State state); |
| 612 | 612 |
| 613 private: | 613 private: |
| 614 State TargetState(Handle<Object> x, Handle<Object> y); | 614 State TargetState(State state, bool has_inlined_smi_code, |
| 615 Handle<Object> x, Handle<Object> y); |
| 615 | 616 |
| 616 bool strict() const { return op_ == Token::EQ_STRICT; } | 617 bool strict() const { return op_ == Token::EQ_STRICT; } |
| 617 Condition GetCondition() const { return ComputeCondition(op_); } | 618 Condition GetCondition() const { return ComputeCondition(op_); } |
| 618 State GetState() { return ComputeState(target()); } | 619 State GetState() { return ComputeState(target()); } |
| 619 | 620 |
| 620 Token::Value op_; | 621 Token::Value op_; |
| 621 }; | 622 }; |
| 622 | 623 |
| 624 // Helper for TRBinaryOpIC and CompareIC. |
| 625 void PatchInlinedSmiCode(Address address); |
| 623 | 626 |
| 624 } } // namespace v8::internal | 627 } } // namespace v8::internal |
| 625 | 628 |
| 626 #endif // V8_IC_H_ | 629 #endif // V8_IC_H_ |
| OLD | NEW |