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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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, | 301 static bool PatchInlinedContextualLoad(Address address, |
302 Object* map, | 302 Object* map, |
303 Object* cell); | 303 Object* cell, |
| 304 bool is_dont_delete); |
304 | 305 |
305 friend class IC; | 306 friend class IC; |
306 }; | 307 }; |
307 | 308 |
308 | 309 |
309 class KeyedLoadIC: public IC { | 310 class KeyedLoadIC: public IC { |
310 public: | 311 public: |
311 KeyedLoadIC() : IC(NO_EXTRA_FRAME) { ASSERT(target()->is_keyed_load_stub()); } | 312 KeyedLoadIC() : IC(NO_EXTRA_FRAME) { ASSERT(target()->is_keyed_load_stub()); } |
312 | 313 |
313 Object* Load(State state, Handle<Object> object, Handle<Object> key); | 314 Object* Load(State state, Handle<Object> object, Handle<Object> key); |
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 static const char* GetName(TypeInfo type_info); | 511 static const char* GetName(TypeInfo type_info); |
511 | 512 |
512 static State ToState(TypeInfo type_info); | 513 static State ToState(TypeInfo type_info); |
513 | 514 |
514 static TypeInfo GetTypeInfo(Object* left, Object* right); | 515 static TypeInfo GetTypeInfo(Object* left, Object* right); |
515 }; | 516 }; |
516 | 517 |
517 } } // namespace v8::internal | 518 } } // namespace v8::internal |
518 | 519 |
519 #endif // V8_IC_H_ | 520 #endif // V8_IC_H_ |
OLD | NEW |