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

Side by Side Diff: src/objects.h

Issue 558016: Strengthen a few assertions and add zapping of allocated... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 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
« no previous file with comments | « src/heap-inl.h ('k') | src/objects-inl.h » ('j') | src/spaces.cc » ('J')
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 1651 matching lines...) Expand 10 before | Expand all | Expand 10 after
1662 // numbers array are the same object, the elements are only swapped 1662 // numbers array are the same object, the elements are only swapped
1663 // once. 1663 // once.
1664 void SwapPairs(FixedArray* numbers, int i, int j); 1664 void SwapPairs(FixedArray* numbers, int i, int j);
1665 1665
1666 // Sort prefix of this array and the numbers array as pairs wrt. the 1666 // Sort prefix of this array and the numbers array as pairs wrt. the
1667 // numbers. If the numbers array and the this array are the same 1667 // numbers. If the numbers array and the this array are the same
1668 // object, the prefix of this array is sorted. 1668 // object, the prefix of this array is sorted.
1669 void SortPairs(FixedArray* numbers, uint32_t len); 1669 void SortPairs(FixedArray* numbers, uint32_t len);
1670 1670
1671 protected: 1671 protected:
1672 // Set operation on FixedArray without using write barriers. 1672 // Set operation on FixedArray without using write barriers. Can
1673 // only be used for storing old space objects or smis.
1673 static inline void fast_set(FixedArray* array, int index, Object* value); 1674 static inline void fast_set(FixedArray* array, int index, Object* value);
1674 1675
1675 private: 1676 private:
1676 DISALLOW_IMPLICIT_CONSTRUCTORS(FixedArray); 1677 DISALLOW_IMPLICIT_CONSTRUCTORS(FixedArray);
1677 }; 1678 };
1678 1679
1679 1680
1680 // DescriptorArrays are fixed arrays used to hold instance descriptors. 1681 // DescriptorArrays are fixed arrays used to hold instance descriptors.
1681 // The format of the these objects is: 1682 // The format of the these objects is:
1682 // [0]: point to a fixed array with (value, detail) pairs. 1683 // [0]: point to a fixed array with (value, detail) pairs.
(...skipping 3279 matching lines...) Expand 10 before | Expand all | Expand 10 after
4962 } else { 4963 } else {
4963 value &= ~(1 << bit_position); 4964 value &= ~(1 << bit_position);
4964 } 4965 }
4965 return value; 4966 return value;
4966 } 4967 }
4967 }; 4968 };
4968 4969
4969 } } // namespace v8::internal 4970 } } // namespace v8::internal
4970 4971
4971 #endif // V8_OBJECTS_H_ 4972 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/heap-inl.h ('k') | src/objects-inl.h » ('j') | src/spaces.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698