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

Side by Side Diff: src/objects.h

Issue 22915007: Clear next map word when folding allocations into js arrays. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 3 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/hydrogen-instructions.cc ('k') | src/objects-inl.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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 5758 matching lines...) Expand 10 before | Expand all | Expand 10 after
5769 5769
5770 void SetEnumLength(int length) { 5770 void SetEnumLength(int length) {
5771 if (length != kInvalidEnumCache) { 5771 if (length != kInvalidEnumCache) {
5772 ASSERT(length >= 0); 5772 ASSERT(length >= 0);
5773 ASSERT(length == 0 || instance_descriptors()->HasEnumCache()); 5773 ASSERT(length == 0 || instance_descriptors()->HasEnumCache());
5774 ASSERT(length <= NumberOfOwnDescriptors()); 5774 ASSERT(length <= NumberOfOwnDescriptors());
5775 } 5775 }
5776 set_bit_field3(EnumLengthBits::update(bit_field3(), length)); 5776 set_bit_field3(EnumLengthBits::update(bit_field3(), length));
5777 } 5777 }
5778 5778
5779 inline bool CanTrackAllocationSite();
5780 inline bool owns_descriptors(); 5779 inline bool owns_descriptors();
5781 inline void set_owns_descriptors(bool is_shared); 5780 inline void set_owns_descriptors(bool is_shared);
5782 inline bool is_observed(); 5781 inline bool is_observed();
5783 inline void set_is_observed(bool is_observed); 5782 inline void set_is_observed(bool is_observed);
5784 inline void freeze(); 5783 inline void freeze();
5785 inline bool is_frozen(); 5784 inline bool is_frozen();
5786 inline void mark_unstable(); 5785 inline void mark_unstable();
5787 inline bool is_stable(); 5786 inline bool is_stable();
5788 inline void set_migration_target(bool value); 5787 inline void set_migration_target(bool value);
5789 inline bool is_migration_target(); 5788 inline bool is_migration_target();
(...skipping 2048 matching lines...) Expand 10 before | Expand all | Expand 10 after
7838 return transition_info()->IsJSArray(); 7837 return transition_info()->IsJSArray();
7839 } 7838 }
7840 7839
7841 DECLARE_PRINTER(AllocationSite) 7840 DECLARE_PRINTER(AllocationSite)
7842 DECLARE_VERIFIER(AllocationSite) 7841 DECLARE_VERIFIER(AllocationSite)
7843 7842
7844 static inline AllocationSite* cast(Object* obj); 7843 static inline AllocationSite* cast(Object* obj);
7845 static inline AllocationSiteMode GetMode( 7844 static inline AllocationSiteMode GetMode(
7846 ElementsKind boilerplate_elements_kind); 7845 ElementsKind boilerplate_elements_kind);
7847 static inline AllocationSiteMode GetMode(ElementsKind from, ElementsKind to); 7846 static inline AllocationSiteMode GetMode(ElementsKind from, ElementsKind to);
7847 static inline bool CanTrack(InstanceType type);
7848 7848
7849 static const int kTransitionInfoOffset = HeapObject::kHeaderSize; 7849 static const int kTransitionInfoOffset = HeapObject::kHeaderSize;
7850 static const int kWeakNextOffset = kTransitionInfoOffset + kPointerSize; 7850 static const int kWeakNextOffset = kTransitionInfoOffset + kPointerSize;
7851 static const int kSize = kWeakNextOffset + kPointerSize; 7851 static const int kSize = kWeakNextOffset + kPointerSize;
7852 7852
7853 typedef FixedBodyDescriptor<HeapObject::kHeaderSize, 7853 typedef FixedBodyDescriptor<HeapObject::kHeaderSize,
7854 kTransitionInfoOffset + kPointerSize, 7854 kTransitionInfoOffset + kPointerSize,
7855 kSize> BodyDescriptor; 7855 kSize> BodyDescriptor;
7856 7856
7857 private: 7857 private:
(...skipping 2348 matching lines...) Expand 10 before | Expand all | Expand 10 after
10206 } else { 10206 } else {
10207 value &= ~(1 << bit_position); 10207 value &= ~(1 << bit_position);
10208 } 10208 }
10209 return value; 10209 return value;
10210 } 10210 }
10211 }; 10211 };
10212 10212
10213 } } // namespace v8::internal 10213 } } // namespace v8::internal
10214 10214
10215 #endif // V8_OBJECTS_H_ 10215 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/hydrogen-instructions.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698