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

Side by Side Diff: src/objects.h

Issue 2912773002: Rename "NoBarrier" memory operations to "Relaxed". (Closed)
Patch Set: comment Created 3 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/log.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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #include <memory> 9 #include <memory>
10 10
(...skipping 3371 matching lines...) Expand 10 before | Expand all | Expand 10 after
3382 // They look like heap objects (are heap object tagged and have a map) so that 3382 // They look like heap objects (are heap object tagged and have a map) so that
3383 // the heap remains iterable. They have a size and a next pointer. 3383 // the heap remains iterable. They have a size and a next pointer.
3384 // The next pointer is the raw address of the next FreeSpace object (or NULL) 3384 // The next pointer is the raw address of the next FreeSpace object (or NULL)
3385 // in the free list. 3385 // in the free list.
3386 class FreeSpace: public HeapObject { 3386 class FreeSpace: public HeapObject {
3387 public: 3387 public:
3388 // [size]: size of the free space including the header. 3388 // [size]: size of the free space including the header.
3389 inline int size() const; 3389 inline int size() const;
3390 inline void set_size(int value); 3390 inline void set_size(int value);
3391 3391
3392 inline int nobarrier_size() const; 3392 inline int relaxed_read_size() const;
3393 inline void nobarrier_set_size(int value); 3393 inline void relaxed_write_size(int value);
3394 3394
3395 inline int Size(); 3395 inline int Size();
3396 3396
3397 // Accessors for the next field. 3397 // Accessors for the next field.
3398 inline FreeSpace* next(); 3398 inline FreeSpace* next();
3399 inline void set_next(FreeSpace* next); 3399 inline void set_next(FreeSpace* next);
3400 3400
3401 inline static FreeSpace* cast(HeapObject* obj); 3401 inline static FreeSpace* cast(HeapObject* obj);
3402 3402
3403 // Dispatched behavior. 3403 // Dispatched behavior.
(...skipping 5944 matching lines...) Expand 10 before | Expand all | Expand 10 after
9348 } 9348 }
9349 }; 9349 };
9350 9350
9351 9351
9352 } // NOLINT, false-positive due to second-order macros. 9352 } // NOLINT, false-positive due to second-order macros.
9353 } // NOLINT, false-positive due to second-order macros. 9353 } // NOLINT, false-positive due to second-order macros.
9354 9354
9355 #include "src/objects/object-macros-undef.h" 9355 #include "src/objects/object-macros-undef.h"
9356 9356
9357 #endif // V8_OBJECTS_H_ 9357 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/log.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698