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

Side by Side Diff: src/ic.h

Issue 1604: Fix issue http://code.google.com/p/v8/issues/detail?id=32... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 12 years, 3 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 | « no previous file | src/ic.cc » ('j') | src/ic.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 Google Inc. All Rights Reserved. 1 // Copyright 2006-2008 Google Inc. 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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 int argc, 176 int argc,
177 const ExternalReference& f); 177 const ExternalReference& f);
178 178
179 // Update the inline cache and the global stub cache based on the 179 // Update the inline cache and the global stub cache based on the
180 // lookup result. 180 // lookup result.
181 void UpdateCaches(LookupResult* lookup, 181 void UpdateCaches(LookupResult* lookup,
182 State state, 182 State state,
183 Handle<Object> object, 183 Handle<Object> object,
184 Handle<String> name); 184 Handle<String> name);
185 185
186 // Returns a JSFunction if the object can be called as a function,
187 // patches the stack to be ready for the call.
Kasper Lund 2008/09/08 05:27:21 and patches...
188 // Otherwise, it returns the undefined value.
189 Object* TryCallAsFunction(Object* object);
190
186 static void Clear(Address address, Code* target); 191 static void Clear(Address address, Code* target);
187 friend class IC; 192 friend class IC;
188 }; 193 };
189 194
190 195
191 class LoadIC: public IC { 196 class LoadIC: public IC {
192 public: 197 public:
193 LoadIC() : IC(NO_EXTRA_FRAME) { ASSERT(target()->is_load_stub()); } 198 LoadIC() : IC(NO_EXTRA_FRAME) { ASSERT(target()->is_load_stub()); }
194 199
195 Object* Load(State state, Handle<Object> object, Handle<String> name); 200 Object* Load(State state, Handle<Object> object, Handle<String> name);
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 } 352 }
348 353
349 static void Clear(Address address, Code* target); 354 static void Clear(Address address, Code* target);
350 friend class IC; 355 friend class IC;
351 }; 356 };
352 357
353 358
354 } } // namespace v8::internal 359 } } // namespace v8::internal
355 360
356 #endif // V8_IC_H_ 361 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « no previous file | src/ic.cc » ('j') | src/ic.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698