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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 Address OriginalCodeAddress(); | 142 Address OriginalCodeAddress(); |
143 #endif | 143 #endif |
144 | 144 |
145 // Set the call-site target. | 145 // Set the call-site target. |
146 void set_target(Code* code) { SetTargetAtAddress(address(), code); } | 146 void set_target(Code* code) { SetTargetAtAddress(address(), code); } |
147 | 147 |
148 #ifdef DEBUG | 148 #ifdef DEBUG |
149 void TraceIC(const char* type, | 149 void TraceIC(const char* type, |
150 Handle<Object> name, | 150 Handle<Object> name, |
151 State old_state, | 151 State old_state, |
152 Code* new_target, | 152 Code* new_target); |
153 const char* extra_info = ""); | |
154 #endif | 153 #endif |
155 | 154 |
156 Failure* TypeError(const char* type, | 155 Failure* TypeError(const char* type, |
157 Handle<Object> object, | 156 Handle<Object> object, |
158 Handle<Object> key); | 157 Handle<Object> key); |
159 Failure* ReferenceError(const char* type, Handle<String> name); | 158 Failure* ReferenceError(const char* type, Handle<String> name); |
160 | 159 |
161 // Access the target code for the given IC address. | 160 // Access the target code for the given IC address. |
162 static inline Code* GetTargetAtAddress(Address address); | 161 static inline Code* GetTargetAtAddress(Address address); |
163 static inline void SetTargetAtAddress(Address address, Code* target); | 162 static inline void SetTargetAtAddress(Address address, Code* target); |
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
729 void patch(Code* code); | 728 void patch(Code* code); |
730 }; | 729 }; |
731 | 730 |
732 | 731 |
733 // Helper for BinaryOpIC and CompareIC. | 732 // Helper for BinaryOpIC and CompareIC. |
734 void PatchInlinedSmiCode(Address address); | 733 void PatchInlinedSmiCode(Address address); |
735 | 734 |
736 } } // namespace v8::internal | 735 } } // namespace v8::internal |
737 | 736 |
738 #endif // V8_IC_H_ | 737 #endif // V8_IC_H_ |
OLD | NEW |