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 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 return Builtins::builtin(Builtins::LoadIC_Initialize); | 291 return Builtins::builtin(Builtins::LoadIC_Initialize); |
292 } | 292 } |
293 static Code* pre_monomorphic_stub() { | 293 static Code* pre_monomorphic_stub() { |
294 return Builtins::builtin(Builtins::LoadIC_PreMonomorphic); | 294 return Builtins::builtin(Builtins::LoadIC_PreMonomorphic); |
295 } | 295 } |
296 | 296 |
297 static void Clear(Address address, Code* target); | 297 static void Clear(Address address, Code* target); |
298 | 298 |
299 static bool PatchInlinedLoad(Address address, Object* map, int index); | 299 static bool PatchInlinedLoad(Address address, Object* map, int index); |
300 | 300 |
| 301 static bool PatchInlinedContextualLoad(Address address, |
| 302 Object* map, |
| 303 Object* cell); |
| 304 |
301 friend class IC; | 305 friend class IC; |
302 }; | 306 }; |
303 | 307 |
304 | 308 |
305 class KeyedLoadIC: public IC { | 309 class KeyedLoadIC: public IC { |
306 public: | 310 public: |
307 KeyedLoadIC() : IC(NO_EXTRA_FRAME) { ASSERT(target()->is_keyed_load_stub()); } | 311 KeyedLoadIC() : IC(NO_EXTRA_FRAME) { ASSERT(target()->is_keyed_load_stub()); } |
308 | 312 |
309 Object* Load(State state, Handle<Object> object, Handle<Object> key); | 313 Object* Load(State state, Handle<Object> object, Handle<Object> key); |
310 | 314 |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
506 static const char* GetName(TypeInfo type_info); | 510 static const char* GetName(TypeInfo type_info); |
507 | 511 |
508 static State ToState(TypeInfo type_info); | 512 static State ToState(TypeInfo type_info); |
509 | 513 |
510 static TypeInfo GetTypeInfo(Object* left, Object* right); | 514 static TypeInfo GetTypeInfo(Object* left, Object* right); |
511 }; | 515 }; |
512 | 516 |
513 } } // namespace v8::internal | 517 } } // namespace v8::internal |
514 | 518 |
515 #endif // V8_IC_H_ | 519 #endif // V8_IC_H_ |
OLD | NEW |