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

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

Issue 2756523004: WIP: Create a public v8::DictionarySchema API for bulk reads from dict objects.
Patch Set: Created 3 years, 9 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/objects.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 } 350 }
351 351
352 bool HeapObject::IsJSWeakCollection() const { 352 bool HeapObject::IsJSWeakCollection() const {
353 return IsJSWeakMap() || IsJSWeakSet(); 353 return IsJSWeakMap() || IsJSWeakSet();
354 } 354 }
355 355
356 bool HeapObject::IsJSCollection() const { return IsJSMap() || IsJSSet(); } 356 bool HeapObject::IsJSCollection() const { return IsJSMap() || IsJSSet(); }
357 357
358 bool HeapObject::IsDescriptorArray() const { return IsFixedArray(); } 358 bool HeapObject::IsDescriptorArray() const { return IsFixedArray(); }
359 359
360 bool HeapObject::IsDictionarySchema() const { return IsFixedArray(); }
361
360 bool HeapObject::IsFrameArray() const { return IsFixedArray(); } 362 bool HeapObject::IsFrameArray() const { return IsFixedArray(); }
361 363
362 bool HeapObject::IsArrayList() const { return IsFixedArray(); } 364 bool HeapObject::IsArrayList() const { return IsFixedArray(); }
363 365
364 bool HeapObject::IsRegExpMatchInfo() const { return IsFixedArray(); } 366 bool HeapObject::IsRegExpMatchInfo() const { return IsFixedArray(); }
365 367
366 bool Object::IsLayoutDescriptor() const { 368 bool Object::IsLayoutDescriptor() const {
367 return IsSmi() || IsFixedTypedArrayBase(); 369 return IsSmi() || IsFixedTypedArrayBase();
368 } 370 }
369 371
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
616 CAST_ACCESSOR(BytecodeArray) 618 CAST_ACCESSOR(BytecodeArray)
617 CAST_ACCESSOR(Cell) 619 CAST_ACCESSOR(Cell)
618 CAST_ACCESSOR(Code) 620 CAST_ACCESSOR(Code)
619 CAST_ACCESSOR(CodeCacheHashTable) 621 CAST_ACCESSOR(CodeCacheHashTable)
620 CAST_ACCESSOR(CompilationCacheTable) 622 CAST_ACCESSOR(CompilationCacheTable)
621 CAST_ACCESSOR(ConsString) 623 CAST_ACCESSOR(ConsString)
622 CAST_ACCESSOR(DeoptimizationInputData) 624 CAST_ACCESSOR(DeoptimizationInputData)
623 CAST_ACCESSOR(DeoptimizationOutputData) 625 CAST_ACCESSOR(DeoptimizationOutputData)
624 CAST_ACCESSOR(DependentCode) 626 CAST_ACCESSOR(DependentCode)
625 CAST_ACCESSOR(DescriptorArray) 627 CAST_ACCESSOR(DescriptorArray)
628 CAST_ACCESSOR(DictionarySchema)
626 CAST_ACCESSOR(ExternalOneByteString) 629 CAST_ACCESSOR(ExternalOneByteString)
627 CAST_ACCESSOR(ExternalString) 630 CAST_ACCESSOR(ExternalString)
628 CAST_ACCESSOR(ExternalTwoByteString) 631 CAST_ACCESSOR(ExternalTwoByteString)
629 CAST_ACCESSOR(FixedArray) 632 CAST_ACCESSOR(FixedArray)
630 CAST_ACCESSOR(FixedArrayBase) 633 CAST_ACCESSOR(FixedArrayBase)
631 CAST_ACCESSOR(FixedDoubleArray) 634 CAST_ACCESSOR(FixedDoubleArray)
632 CAST_ACCESSOR(FixedTypedArrayBase) 635 CAST_ACCESSOR(FixedTypedArrayBase)
633 CAST_ACCESSOR(Foreign) 636 CAST_ACCESSOR(Foreign)
634 CAST_ACCESSOR(FrameArray) 637 CAST_ACCESSOR(FrameArray)
635 CAST_ACCESSOR(GlobalDictionary) 638 CAST_ACCESSOR(GlobalDictionary)
(...skipping 7639 matching lines...) Expand 10 before | Expand all | Expand 10 after
8275 #undef WRITE_INT64_FIELD 8278 #undef WRITE_INT64_FIELD
8276 #undef READ_BYTE_FIELD 8279 #undef READ_BYTE_FIELD
8277 #undef WRITE_BYTE_FIELD 8280 #undef WRITE_BYTE_FIELD
8278 #undef NOBARRIER_READ_BYTE_FIELD 8281 #undef NOBARRIER_READ_BYTE_FIELD
8279 #undef NOBARRIER_WRITE_BYTE_FIELD 8282 #undef NOBARRIER_WRITE_BYTE_FIELD
8280 8283
8281 } // namespace internal 8284 } // namespace internal
8282 } // namespace v8 8285 } // namespace v8
8283 8286
8284 #endif // V8_OBJECTS_INL_H_ 8287 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698