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

Side by Side Diff: src/objects-inl.h

Issue 2866473003: [heap] Reland "Use shared markbits in the concurrent marker." (Closed)
Patch Set: rebase Created 3 years, 7 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/objects.h ('k') | no next file » | 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 // Review notes: 5 // Review notes:
6 // 6 //
7 // - The use of macros in these inline functions may seem superfluous 7 // - The use of macros in these inline functions may seem superfluous
8 // but it is absolutely needed to make sure gcc generates optimal 8 // but it is absolutely needed to make sure gcc generates optimal
9 // code. gcc is not happy when attempting to inline too deep. 9 // code. gcc is not happy when attempting to inline too deep.
10 // 10 //
(...skipping 1507 matching lines...) Expand 10 before | Expand all | Expand 10 after
1518 void HeapObject::synchronized_set_map_no_write_barrier(Map* value) { 1518 void HeapObject::synchronized_set_map_no_write_barrier(Map* value) {
1519 synchronized_set_map_word(MapWord::FromMap(value)); 1519 synchronized_set_map_word(MapWord::FromMap(value));
1520 } 1520 }
1521 1521
1522 1522
1523 // Unsafe accessor omitting write barrier. 1523 // Unsafe accessor omitting write barrier.
1524 void HeapObject::set_map_no_write_barrier(Map* value) { 1524 void HeapObject::set_map_no_write_barrier(Map* value) {
1525 set_map_word(MapWord::FromMap(value)); 1525 set_map_word(MapWord::FromMap(value));
1526 } 1526 }
1527 1527
1528 HeapObject** HeapObject::map_slot() {
1529 return reinterpret_cast<HeapObject**>(FIELD_ADDR(this, kMapOffset));
1530 }
1528 1531
1529 MapWord HeapObject::map_word() const { 1532 MapWord HeapObject::map_word() const {
1530 return MapWord( 1533 return MapWord(
1531 reinterpret_cast<uintptr_t>(NOBARRIER_READ_FIELD(this, kMapOffset))); 1534 reinterpret_cast<uintptr_t>(NOBARRIER_READ_FIELD(this, kMapOffset)));
1532 } 1535 }
1533 1536
1534 1537
1535 void HeapObject::set_map_word(MapWord map_word) { 1538 void HeapObject::set_map_word(MapWord map_word) {
1536 NOBARRIER_WRITE_FIELD( 1539 NOBARRIER_WRITE_FIELD(
1537 this, kMapOffset, reinterpret_cast<Object*>(map_word.value_)); 1540 this, kMapOffset, reinterpret_cast<Object*>(map_word.value_));
(...skipping 6713 matching lines...) Expand 10 before | Expand all | Expand 10 after
8251 #undef WRITE_BYTE_FIELD 8254 #undef WRITE_BYTE_FIELD
8252 #undef NOBARRIER_READ_BYTE_FIELD 8255 #undef NOBARRIER_READ_BYTE_FIELD
8253 #undef NOBARRIER_WRITE_BYTE_FIELD 8256 #undef NOBARRIER_WRITE_BYTE_FIELD
8254 8257
8255 } // namespace internal 8258 } // namespace internal
8256 } // namespace v8 8259 } // namespace v8
8257 8260
8258 #include "src/objects/object-macros-undef.h" 8261 #include "src/objects/object-macros-undef.h"
8259 8262
8260 #endif // V8_OBJECTS_INL_H_ 8263 #endif // V8_OBJECTS_INL_H_
OLDNEW
« no previous file with comments | « src/objects.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698