OLD | NEW |
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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
202 void UpdateCaches(LookupResult* lookup, | 202 void UpdateCaches(LookupResult* lookup, |
203 State state, | 203 State state, |
204 Handle<Object> object, | 204 Handle<Object> object, |
205 Handle<String> name); | 205 Handle<String> name); |
206 | 206 |
207 // Returns a JSFunction if the object can be called as a function, | 207 // Returns a JSFunction if the object can be called as a function, |
208 // and patches the stack to be ready for the call. | 208 // and patches the stack to be ready for the call. |
209 // Otherwise, it returns the undefined value. | 209 // Otherwise, it returns the undefined value. |
210 Object* TryCallAsFunction(Object* object); | 210 Object* TryCallAsFunction(Object* object); |
211 | 211 |
212 void ReceiverToObject(Object* object); | 212 void ReceiverToObject(Handle<Object> object); |
213 | 213 |
214 static void Clear(Address address, Code* target); | 214 static void Clear(Address address, Code* target); |
215 friend class IC; | 215 friend class IC; |
216 }; | 216 }; |
217 | 217 |
218 | 218 |
219 class LoadIC: public IC { | 219 class LoadIC: public IC { |
220 public: | 220 public: |
221 LoadIC() : IC(NO_EXTRA_FRAME) { ASSERT(target()->is_load_stub()); } | 221 LoadIC() : IC(NO_EXTRA_FRAME) { ASSERT(target()->is_load_stub()); } |
222 | 222 |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
429 // The map is the new map that the inlined code should check against. | 429 // The map is the new map that the inlined code should check against. |
430 static bool PatchInlinedStore(Address address, Object* map); | 430 static bool PatchInlinedStore(Address address, Object* map); |
431 | 431 |
432 friend class IC; | 432 friend class IC; |
433 }; | 433 }; |
434 | 434 |
435 | 435 |
436 } } // namespace v8::internal | 436 } } // namespace v8::internal |
437 | 437 |
438 #endif // V8_IC_H_ | 438 #endif // V8_IC_H_ |
OLD | NEW |