| 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 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 Handle<Object> object, | 209 Handle<Object> object, |
| 210 Handle<String> name); | 210 Handle<String> name); |
| 211 | 211 |
| 212 protected: | 212 protected: |
| 213 Code::Kind kind_; | 213 Code::Kind kind_; |
| 214 | 214 |
| 215 bool TryUpdateExtraICState(LookupResult* lookup, | 215 bool TryUpdateExtraICState(LookupResult* lookup, |
| 216 Handle<Object> object, | 216 Handle<Object> object, |
| 217 Code::ExtraICState* extra_ic_state); | 217 Code::ExtraICState* extra_ic_state); |
| 218 | 218 |
| 219 MUST_USE_RESULT MaybeObject* ComputeMonomorphicStub( | 219 // Compute a monomorphic stub if possible, otherwise return a null handle. |
| 220 LookupResult* lookup, | 220 Handle<Code> ComputeMonomorphicStub(LookupResult* lookup, |
| 221 State state, | 221 State state, |
| 222 Code::ExtraICState extra_ic_state, | 222 Code::ExtraICState extra_state, |
| 223 Handle<Object> object, | 223 Handle<Object> object, |
| 224 Handle<String> name); | 224 Handle<String> name); |
| 225 | 225 |
| 226 // Update the inline cache and the global stub cache based on the lookup | 226 // Update the inline cache and the global stub cache based on the lookup |
| 227 // result. | 227 // result. |
| 228 void UpdateCaches(LookupResult* lookup, | 228 void UpdateCaches(LookupResult* lookup, |
| 229 State state, | 229 State state, |
| 230 Code::ExtraICState extra_ic_state, | 230 Code::ExtraICState extra_ic_state, |
| 231 Handle<Object> object, | 231 Handle<Object> object, |
| 232 Handle<String> name); | 232 Handle<String> name); |
| 233 | 233 |
| 234 // Returns a JSFunction if the object can be called as a function, and | 234 // Returns a JSFunction if the object can be called as a function, and |
| (...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 735 void patch(Code* code); | 735 void patch(Code* code); |
| 736 }; | 736 }; |
| 737 | 737 |
| 738 | 738 |
| 739 // Helper for BinaryOpIC and CompareIC. | 739 // Helper for BinaryOpIC and CompareIC. |
| 740 void PatchInlinedSmiCode(Address address); | 740 void PatchInlinedSmiCode(Address address); |
| 741 | 741 |
| 742 } } // namespace v8::internal | 742 } } // namespace v8::internal |
| 743 | 743 |
| 744 #endif // V8_IC_H_ | 744 #endif // V8_IC_H_ |
| OLD | NEW |