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

Side by Side Diff: src/objects.h

Issue 11817017: Additional work to get array literal allocation tracking working, even with --always-opt (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Removed MIPs changes, and found a bug. COPY_ON_WRITE shallow array stub didn't track allocation inf… Created 7 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
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 4961 matching lines...) Expand 10 before | Expand all | Expand 10 after
4972 4972
4973 void SetEnumLength(int length) { 4973 void SetEnumLength(int length) {
4974 if (length != kInvalidEnumCache) { 4974 if (length != kInvalidEnumCache) {
4975 ASSERT(length >= 0); 4975 ASSERT(length >= 0);
4976 ASSERT(length == 0 || instance_descriptors()->HasEnumCache()); 4976 ASSERT(length == 0 || instance_descriptors()->HasEnumCache());
4977 ASSERT(length <= NumberOfOwnDescriptors()); 4977 ASSERT(length <= NumberOfOwnDescriptors());
4978 } 4978 }
4979 set_bit_field3(EnumLengthBits::update(bit_field3(), length)); 4979 set_bit_field3(EnumLengthBits::update(bit_field3(), length));
4980 } 4980 }
4981 4981
4982 4982 inline bool CanTrackAllocationSite();
4983 inline bool owns_descriptors(); 4983 inline bool owns_descriptors();
4984 inline void set_owns_descriptors(bool is_shared); 4984 inline void set_owns_descriptors(bool is_shared);
4985 inline bool is_observed(); 4985 inline bool is_observed();
4986 inline void set_is_observed(bool is_observed); 4986 inline void set_is_observed(bool is_observed);
4987 4987
4988 MUST_USE_RESULT MaybeObject* RawCopy(int instance_size); 4988 MUST_USE_RESULT MaybeObject* RawCopy(int instance_size);
4989 MUST_USE_RESULT MaybeObject* CopyWithPreallocatedFieldDescriptors(); 4989 MUST_USE_RESULT MaybeObject* CopyWithPreallocatedFieldDescriptors();
4990 MUST_USE_RESULT MaybeObject* CopyDropDescriptors(); 4990 MUST_USE_RESULT MaybeObject* CopyDropDescriptors();
4991 MUST_USE_RESULT MaybeObject* CopyReplaceDescriptors( 4991 MUST_USE_RESULT MaybeObject* CopyReplaceDescriptors(
4992 DescriptorArray* descriptors, 4992 DescriptorArray* descriptors,
(...skipping 3824 matching lines...) Expand 10 before | Expand all | Expand 10 after
8817 } else { 8817 } else {
8818 value &= ~(1 << bit_position); 8818 value &= ~(1 << bit_position);
8819 } 8819 }
8820 return value; 8820 return value;
8821 } 8821 }
8822 }; 8822 };
8823 8823
8824 } } // namespace v8::internal 8824 } } // namespace v8::internal
8825 8825
8826 #endif // V8_OBJECTS_H_ 8826 #endif // V8_OBJECTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698