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

Side by Side Diff: src/objects.h

Issue 1072923003: Serializer: canonicalize cleared weak cells. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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/heap.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 // 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 9848 matching lines...) Expand 10 before | Expand all | Expand 10 after
9859 }; 9859 };
9860 9860
9861 9861
9862 class WeakCell : public HeapObject { 9862 class WeakCell : public HeapObject {
9863 public: 9863 public:
9864 inline Object* value() const; 9864 inline Object* value() const;
9865 9865
9866 // This should not be called by anyone except GC. 9866 // This should not be called by anyone except GC.
9867 inline void clear(); 9867 inline void clear();
9868 9868
9869 inline void unchecked_clear();
9870
9869 // This should not be called by anyone except allocator. 9871 // This should not be called by anyone except allocator.
9870 inline void initialize(HeapObject* value); 9872 inline void initialize(HeapObject* value);
9871 9873
9872 inline bool cleared() const; 9874 inline bool cleared() const;
9873 9875
9874 DECL_ACCESSORS(next, Object) 9876 DECL_ACCESSORS(next, Object)
9875 9877
9876 DECLARE_CAST(WeakCell) 9878 DECLARE_CAST(WeakCell)
9877 9879
9878 DECLARE_PRINTER(WeakCell) 9880 DECLARE_PRINTER(WeakCell)
(...skipping 1210 matching lines...) Expand 10 before | Expand all | Expand 10 after
11089 } else { 11091 } else {
11090 value &= ~(1 << bit_position); 11092 value &= ~(1 << bit_position);
11091 } 11093 }
11092 return value; 11094 return value;
11093 } 11095 }
11094 }; 11096 };
11095 11097
11096 } } // namespace v8::internal 11098 } } // namespace v8::internal
11097 11099
11098 #endif // V8_OBJECTS_H_ 11100 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698