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

Side by Side Diff: src/ic.h

Issue 1709008: Introduce faster swapping primitives. (Closed)
Patch Set: Stub ports to x64 and ARM Created 10 years, 7 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/codegen-ia32.cc ('k') | src/runtime.h » ('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 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 // These are similar to the generic IC; they optimize the case of 294 // These are similar to the generic IC; they optimize the case of
295 // operating upon external array types but fall back to the runtime 295 // operating upon external array types but fall back to the runtime
296 // for all other types. 296 // for all other types.
297 static void GenerateExternalArray(MacroAssembler* masm, 297 static void GenerateExternalArray(MacroAssembler* masm,
298 ExternalArrayType array_type); 298 ExternalArrayType array_type);
299 static void GenerateIndexedInterceptor(MacroAssembler* masm); 299 static void GenerateIndexedInterceptor(MacroAssembler* masm);
300 300
301 // Clear the use of the inlined version. 301 // Clear the use of the inlined version.
302 static void ClearInlinedVersion(Address address); 302 static void ClearInlinedVersion(Address address);
303 303
304 private:
305 // Bit mask to be tested against bit field for the cases when 304 // Bit mask to be tested against bit field for the cases when
306 // generic stub should go into slow case. 305 // generic stub should go into slow case.
307 // Access check is necessary explicitly since generic stub does not perform 306 // Access check is necessary explicitly since generic stub does not perform
308 // map checks. 307 // map checks.
309 static const int kSlowCaseBitFieldMask = 308 static const int kSlowCaseBitFieldMask =
310 (1 << Map::kIsAccessCheckNeeded) | (1 << Map::kHasIndexedInterceptor); 309 (1 << Map::kIsAccessCheckNeeded) | (1 << Map::kHasIndexedInterceptor);
311 310
311 private:
312 // Update the inline cache. 312 // Update the inline cache.
313 void UpdateCaches(LookupResult* lookup, 313 void UpdateCaches(LookupResult* lookup,
314 State state, 314 State state,
315 Handle<Object> object, 315 Handle<Object> object,
316 Handle<String> name); 316 Handle<String> name);
317 317
318 // Stub accessors. 318 // Stub accessors.
319 static Code* initialize_stub() { 319 static Code* initialize_stub() {
320 return Builtins::builtin(Builtins::KeyedLoadIC_Initialize); 320 return Builtins::builtin(Builtins::KeyedLoadIC_Initialize);
321 } 321 }
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 static const char* GetName(TypeInfo type_info); 465 static const char* GetName(TypeInfo type_info);
466 466
467 static State ToState(TypeInfo type_info); 467 static State ToState(TypeInfo type_info);
468 468
469 static TypeInfo GetTypeInfo(Object* left, Object* right); 469 static TypeInfo GetTypeInfo(Object* left, Object* right);
470 }; 470 };
471 471
472 } } // namespace v8::internal 472 } } // namespace v8::internal
473 473
474 #endif // V8_IC_H_ 474 #endif // V8_IC_H_
OLDNEW
« no previous file with comments | « src/ia32/codegen-ia32.cc ('k') | src/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698