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

Side by Side Diff: src/ic.h

Issue 6321012: Version 3.0.9... (Closed) Base URL: http://v8.googlecode.com/svn/trunk/
Patch Set: Created 9 years, 11 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 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 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 IC::UtilityId id_; 186 IC::UtilityId id_;
187 }; 187 };
188 188
189 189
190 class CallICBase: public IC { 190 class CallICBase: public IC {
191 protected: 191 protected:
192 explicit CallICBase(Code::Kind kind) : IC(EXTRA_CALL_FRAME), kind_(kind) {} 192 explicit CallICBase(Code::Kind kind) : IC(EXTRA_CALL_FRAME), kind_(kind) {}
193 193
194 public: 194 public:
195 MUST_USE_RESULT MaybeObject* LoadFunction(State state, 195 MUST_USE_RESULT MaybeObject* LoadFunction(State state,
196 Code::ExtraICState extra_ic_state,
196 Handle<Object> object, 197 Handle<Object> object,
197 Handle<String> name); 198 Handle<String> name);
198 199
199 protected: 200 protected:
200 Code::Kind kind_; 201 Code::Kind kind_;
201 202
203 bool TryUpdateExtraICState(LookupResult* lookup,
204 Handle<Object> object,
205 Code::ExtraICState* extra_ic_state);
206
207 MUST_USE_RESULT MaybeObject* ComputeMonomorphicStub(
208 LookupResult* lookup,
209 State state,
210 Code::ExtraICState extra_ic_state,
211 Handle<Object> object,
212 Handle<String> name);
213
202 // Update the inline cache and the global stub cache based on the 214 // Update the inline cache and the global stub cache based on the
203 // lookup result. 215 // lookup result.
204 void UpdateCaches(LookupResult* lookup, 216 void UpdateCaches(LookupResult* lookup,
205 State state, 217 State state,
218 Code::ExtraICState extra_ic_state,
206 Handle<Object> object, 219 Handle<Object> object,
207 Handle<String> name); 220 Handle<String> name);
208 221
209 // Returns a JSFunction if the object can be called as a function, 222 // Returns a JSFunction if the object can be called as a function,
210 // and patches the stack to be ready for the call. 223 // and patches the stack to be ready for the call.
211 // Otherwise, it returns the undefined value. 224 // Otherwise, it returns the undefined value.
212 Object* TryCallAsFunction(Object* object); 225 Object* TryCallAsFunction(Object* object);
213 226
214 void ReceiverToObject(Handle<Object> object); 227 void ReceiverToObject(Handle<Object> object);
215 228
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
591 604
592 Token::Value op_; 605 Token::Value op_;
593 }; 606 };
594 607
595 // Helper for TRBinaryOpIC and CompareIC. 608 // Helper for TRBinaryOpIC and CompareIC.
596 void PatchInlinedSmiCode(Address address); 609 void PatchInlinedSmiCode(Address address);
597 610
598 } } // namespace v8::internal 611 } } // namespace v8::internal
599 612
600 #endif // V8_IC_H_ 613 #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