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

Side by Side Diff: src/ic.h

Issue 3537003: Use existing global cell status as a hint when generating loads. (Closed)
Patch Set: added GC test Created 10 years, 2 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
« no previous file with comments | « src/ia32/ic-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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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_
OLDNEW
« no previous file with comments | « src/ia32/ic-ia32.cc ('k') | src/ic.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698