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

Side by Side Diff: src/objects-inl.h

Issue 126262: Reimplemented the KeyedLookupCache to speed up access. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 11 years, 6 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/objects.cc ('k') | src/runtime.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-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 bool Object::IsCompilationCacheTable() { 474 bool Object::IsCompilationCacheTable() {
475 return IsHashTable(); 475 return IsHashTable();
476 } 476 }
477 477
478 478
479 bool Object::IsMapCache() { 479 bool Object::IsMapCache() {
480 return IsHashTable(); 480 return IsHashTable();
481 } 481 }
482 482
483 483
484 bool Object::IsLookupCache() {
485 return IsHashTable();
486 }
487
488
489 bool Object::IsPrimitive() { 484 bool Object::IsPrimitive() {
490 return IsOddball() || IsNumber() || IsString(); 485 return IsOddball() || IsNumber() || IsString();
491 } 486 }
492 487
493 488
494 bool Object::IsJSGlobalProxy() { 489 bool Object::IsJSGlobalProxy() {
495 bool result = IsHeapObject() && 490 bool result = IsHeapObject() &&
496 (HeapObject::cast(this)->map()->instance_type() == 491 (HeapObject::cast(this)->map()->instance_type() ==
497 JS_GLOBAL_PROXY_TYPE); 492 JS_GLOBAL_PROXY_TYPE);
498 ASSERT(!result || IsAccessCheckNeeded()); 493 ASSERT(!result || IsAccessCheckNeeded());
(...skipping 882 matching lines...) Expand 10 before | Expand all | Expand 10 after
1381 // ------------------------------------ 1376 // ------------------------------------
1382 // Cast operations 1377 // Cast operations
1383 1378
1384 1379
1385 CAST_ACCESSOR(FixedArray) 1380 CAST_ACCESSOR(FixedArray)
1386 CAST_ACCESSOR(DescriptorArray) 1381 CAST_ACCESSOR(DescriptorArray)
1387 CAST_ACCESSOR(Dictionary) 1382 CAST_ACCESSOR(Dictionary)
1388 CAST_ACCESSOR(SymbolTable) 1383 CAST_ACCESSOR(SymbolTable)
1389 CAST_ACCESSOR(CompilationCacheTable) 1384 CAST_ACCESSOR(CompilationCacheTable)
1390 CAST_ACCESSOR(MapCache) 1385 CAST_ACCESSOR(MapCache)
1391 CAST_ACCESSOR(LookupCache)
1392 CAST_ACCESSOR(String) 1386 CAST_ACCESSOR(String)
1393 CAST_ACCESSOR(SeqString) 1387 CAST_ACCESSOR(SeqString)
1394 CAST_ACCESSOR(SeqAsciiString) 1388 CAST_ACCESSOR(SeqAsciiString)
1395 CAST_ACCESSOR(SeqTwoByteString) 1389 CAST_ACCESSOR(SeqTwoByteString)
1396 CAST_ACCESSOR(ConsString) 1390 CAST_ACCESSOR(ConsString)
1397 CAST_ACCESSOR(SlicedString) 1391 CAST_ACCESSOR(SlicedString)
1398 CAST_ACCESSOR(ExternalString) 1392 CAST_ACCESSOR(ExternalString)
1399 CAST_ACCESSOR(ExternalAsciiString) 1393 CAST_ACCESSOR(ExternalAsciiString)
1400 CAST_ACCESSOR(ExternalTwoByteString) 1394 CAST_ACCESSOR(ExternalTwoByteString)
1401 CAST_ACCESSOR(JSObject) 1395 CAST_ACCESSOR(JSObject)
(...skipping 1272 matching lines...) Expand 10 before | Expand all | Expand 10 after
2674 #undef WRITE_INT_FIELD 2668 #undef WRITE_INT_FIELD
2675 #undef READ_SHORT_FIELD 2669 #undef READ_SHORT_FIELD
2676 #undef WRITE_SHORT_FIELD 2670 #undef WRITE_SHORT_FIELD
2677 #undef READ_BYTE_FIELD 2671 #undef READ_BYTE_FIELD
2678 #undef WRITE_BYTE_FIELD 2672 #undef WRITE_BYTE_FIELD
2679 2673
2680 2674
2681 } } // namespace v8::internal 2675 } } // namespace v8::internal
2682 2676
2683 #endif // V8_OBJECTS_INL_H_ 2677 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | src/runtime.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698