Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(72)

Side by Side Diff: src/ic.h

Issue 8357010: Handlify the stub cache lookup and patching for CallIC and KeyedCallIC. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Do not assume functions are compiled when specializing. Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/ic.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « src/ia32/stub-cache-ia32.cc ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698