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

Side by Side Diff: src/objects.h

Issue 2077353004: [heap] Filter out stale left-trimmed handles for scavenges (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Revert "[heap] Filter out stale left-trimmed handles" Created 4 years, 5 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/scavenger.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 9
10 #include "src/assert-scope.h" 10 #include "src/assert-scope.h"
(...skipping 1473 matching lines...) Expand 10 before | Expand all | Expand 10 after
1484 // View this map word as a map pointer. 1484 // View this map word as a map pointer.
1485 inline Map* ToMap(); 1485 inline Map* ToMap();
1486 1486
1487 1487
1488 // Scavenge collection: the map word of live objects in the from space 1488 // Scavenge collection: the map word of live objects in the from space
1489 // contains a forwarding address (a heap object pointer in the to space). 1489 // contains a forwarding address (a heap object pointer in the to space).
1490 1490
1491 // True if this map word is a forwarding address for a scavenge 1491 // True if this map word is a forwarding address for a scavenge
1492 // collection. Only valid during a scavenge collection (specifically, 1492 // collection. Only valid during a scavenge collection (specifically,
1493 // when all map words are heap object pointers, i.e. not during a full GC). 1493 // when all map words are heap object pointers, i.e. not during a full GC).
1494 inline bool IsForwardingAddress() const; 1494 inline bool IsForwardingAddress();
1495 1495
1496 // Create a map word from a forwarding address. 1496 // Create a map word from a forwarding address.
1497 static inline MapWord FromForwardingAddress(HeapObject* object); 1497 static inline MapWord FromForwardingAddress(HeapObject* object);
1498 1498
1499 // View this map word as a forwarding address. 1499 // View this map word as a forwarding address.
1500 inline HeapObject* ToForwardingAddress(); 1500 inline HeapObject* ToForwardingAddress();
1501 1501
1502 static inline MapWord FromRawValue(uintptr_t value) { 1502 static inline MapWord FromRawValue(uintptr_t value) {
1503 return MapWord(value); 1503 return MapWord(value);
1504 } 1504 }
(...skipping 9410 matching lines...) Expand 10 before | Expand all | Expand 10 after
10915 } 10915 }
10916 return value; 10916 return value;
10917 } 10917 }
10918 }; 10918 };
10919 10919
10920 10920
10921 } // NOLINT, false-positive due to second-order macros. 10921 } // NOLINT, false-positive due to second-order macros.
10922 } // NOLINT, false-positive due to second-order macros. 10922 } // NOLINT, false-positive due to second-order macros.
10923 10923
10924 #endif // V8_OBJECTS_H_ 10924 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « src/heap/scavenger.cc ('k') | src/objects-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698