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

Side by Side Diff: src/ic.h

Issue 555048: Make KeyedLoadIC::generic_stub go into slow case if receiver has an indexed i... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 10 years, 11 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 | « src/ia32/ic-ia32.cc ('k') | src/x64/ic-x64.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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 // These are similar to the generic IC; they optimize the case of 288 // These are similar to the generic IC; they optimize the case of
289 // operating upon external array types but fall back to the runtime 289 // operating upon external array types but fall back to the runtime
290 // for all other types. 290 // for all other types.
291 static void GenerateExternalArray(MacroAssembler* masm, 291 static void GenerateExternalArray(MacroAssembler* masm,
292 ExternalArrayType array_type); 292 ExternalArrayType array_type);
293 293
294 // Clear the use of the inlined version. 294 // Clear the use of the inlined version.
295 static void ClearInlinedVersion(Address address); 295 static void ClearInlinedVersion(Address address);
296 296
297 private: 297 private:
298 // Bit mask to be tested against bit field for the cases when
299 // generic stub should go into slow case.
300 // Access check is necessary explicitly since generic stub does not perform
301 // map checks.
302 static const int kSlowCaseBitFieldMask =
303 (1 << Map::kIsAccessCheckNeeded) | (1 << Map::kHasIndexedInterceptor);
304
298 static void Generate(MacroAssembler* masm, const ExternalReference& f); 305 static void Generate(MacroAssembler* masm, const ExternalReference& f);
299 306
300 // Update the inline cache. 307 // Update the inline cache.
301 void UpdateCaches(LookupResult* lookup, 308 void UpdateCaches(LookupResult* lookup,
302 State state, 309 State state,
303 Handle<Object> object, 310 Handle<Object> object,
304 Handle<String> name); 311 Handle<String> name);
305 312
306 // Stub accessors. 313 // Stub accessors.
307 static Code* initialize_stub() { 314 static Code* initialize_stub() {
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 // The map is the new map that the inlined code should check against. 436 // The map is the new map that the inlined code should check against.
430 static bool PatchInlinedStore(Address address, Object* map); 437 static bool PatchInlinedStore(Address address, Object* map);
431 438
432 friend class IC; 439 friend class IC;
433 }; 440 };
434 441
435 442
436 } } // namespace v8::internal 443 } } // namespace v8::internal
437 444
438 #endif // V8_IC_H_ 445 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ia32/ic-ia32.cc ('k') | src/x64/ic-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698