| 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 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 #endif | 158 #endif |
| 159 | 159 |
| 160 Failure* TypeError(const char* type, | 160 Failure* TypeError(const char* type, |
| 161 Handle<Object> object, | 161 Handle<Object> object, |
| 162 Handle<Object> key); | 162 Handle<Object> key); |
| 163 Failure* ReferenceError(const char* type, Handle<String> name); | 163 Failure* ReferenceError(const char* type, Handle<String> name); |
| 164 | 164 |
| 165 // Access the target code for the given IC address. | 165 // Access the target code for the given IC address. |
| 166 static inline Code* GetTargetAtAddress(Address address); | 166 static inline Code* GetTargetAtAddress(Address address); |
| 167 static inline void SetTargetAtAddress(Address address, Code* target); | 167 static inline void SetTargetAtAddress(Address address, Code* target); |
| 168 static void PostPatching(); |
| 168 | 169 |
| 169 private: | 170 private: |
| 170 // Frame pointer for the frame that uses (calls) the IC. | 171 // Frame pointer for the frame that uses (calls) the IC. |
| 171 Address fp_; | 172 Address fp_; |
| 172 | 173 |
| 173 // All access to the program counter of an IC structure is indirect | 174 // All access to the program counter of an IC structure is indirect |
| 174 // to make the code GC safe. This feature is crucial since | 175 // to make the code GC safe. This feature is crucial since |
| 175 // GetProperty and SetProperty are called and they in turn might | 176 // GetProperty and SetProperty are called and they in turn might |
| 176 // invoke the garbage collector. | 177 // invoke the garbage collector. |
| 177 Address* pc_address_; | 178 Address* pc_address_; |
| (...skipping 586 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 764 void patch(Code* code); | 765 void patch(Code* code); |
| 765 }; | 766 }; |
| 766 | 767 |
| 767 | 768 |
| 768 // Helper for BinaryOpIC and CompareIC. | 769 // Helper for BinaryOpIC and CompareIC. |
| 769 void PatchInlinedSmiCode(Address address); | 770 void PatchInlinedSmiCode(Address address); |
| 770 | 771 |
| 771 } } // namespace v8::internal | 772 } } // namespace v8::internal |
| 772 | 773 |
| 773 #endif // V8_IC_H_ | 774 #endif // V8_IC_H_ |
| OLD | NEW |