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

Side by Side Diff: src/objects.h

Issue 1203973002: Serializer: clear next link in weak cells. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: fix asan failure Created 5 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
« no previous file with comments | « src/heap/objects-visiting-inl.h ('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 // 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 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 9592 matching lines...) Expand 10 before | Expand all | Expand 10 after
9603 // This should not be called by anyone except GC. 9603 // This should not be called by anyone except GC.
9604 inline void clear(); 9604 inline void clear();
9605 9605
9606 // This should not be called by anyone except allocator. 9606 // This should not be called by anyone except allocator.
9607 inline void initialize(HeapObject* value); 9607 inline void initialize(HeapObject* value);
9608 9608
9609 inline bool cleared() const; 9609 inline bool cleared() const;
9610 9610
9611 DECL_ACCESSORS(next, Object) 9611 DECL_ACCESSORS(next, Object)
9612 9612
9613 inline void clear_next(Heap* heap);
9614
9615 inline bool next_cleared();
9616
9613 DECLARE_CAST(WeakCell) 9617 DECLARE_CAST(WeakCell)
9614 9618
9615 DECLARE_PRINTER(WeakCell) 9619 DECLARE_PRINTER(WeakCell)
9616 DECLARE_VERIFIER(WeakCell) 9620 DECLARE_VERIFIER(WeakCell)
9617 9621
9618 // Layout description. 9622 // Layout description.
9619 static const int kValueOffset = HeapObject::kHeaderSize; 9623 static const int kValueOffset = HeapObject::kHeaderSize;
9620 static const int kNextOffset = kValueOffset + kPointerSize; 9624 static const int kNextOffset = kValueOffset + kPointerSize;
9621 static const int kSize = kNextOffset + kPointerSize; 9625 static const int kSize = kNextOffset + kPointerSize;
9622 9626
(...skipping 1179 matching lines...) Expand 10 before | Expand all | Expand 10 after
10802 } else { 10806 } else {
10803 value &= ~(1 << bit_position); 10807 value &= ~(1 << bit_position);
10804 } 10808 }
10805 return value; 10809 return value;
10806 } 10810 }
10807 }; 10811 };
10808 10812
10809 } } // namespace v8::internal 10813 } } // namespace v8::internal
10810 10814
10811 #endif // V8_OBJECTS_H_ 10815 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/heap/objects-visiting-inl.h ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698