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-inl.h

Issue 1138243002: [strong] Introduce strong bit (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 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
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 4697 matching lines...) Expand 10 before | Expand all | Expand 10 after
4708 void Map::set_migration_target(bool value) { 4708 void Map::set_migration_target(bool value) {
4709 set_bit_field3(IsMigrationTarget::update(bit_field3(), value)); 4709 set_bit_field3(IsMigrationTarget::update(bit_field3(), value));
4710 } 4710 }
4711 4711
4712 4712
4713 bool Map::is_migration_target() { 4713 bool Map::is_migration_target() {
4714 return IsMigrationTarget::decode(bit_field3()); 4714 return IsMigrationTarget::decode(bit_field3());
4715 } 4715 }
4716 4716
4717 4717
4718 void Map::set_is_strong(bool value) {
4719 set_bit_field3(IsStrong::update(bit_field3(), value));
4720 }
4721
4722
4723 bool Map::is_strong() {
4724 return IsStrong::decode(bit_field3());
4725 }
4726
4727
4718 void Map::set_counter(int value) { 4728 void Map::set_counter(int value) {
4719 set_bit_field3(Counter::update(bit_field3(), value)); 4729 set_bit_field3(Counter::update(bit_field3(), value));
4720 } 4730 }
4721 4731
4722 4732
4723 int Map::counter() { return Counter::decode(bit_field3()); } 4733 int Map::counter() { return Counter::decode(bit_field3()); }
4724 4734
4725 4735
4726 void Map::mark_unstable() { 4736 void Map::mark_unstable() {
4727 set_bit_field3(IsUnstable::update(bit_field3(), true)); 4737 set_bit_field3(IsUnstable::update(bit_field3(), true));
(...skipping 2879 matching lines...) Expand 10 before | Expand all | Expand 10 after
7607 #undef READ_SHORT_FIELD 7617 #undef READ_SHORT_FIELD
7608 #undef WRITE_SHORT_FIELD 7618 #undef WRITE_SHORT_FIELD
7609 #undef READ_BYTE_FIELD 7619 #undef READ_BYTE_FIELD
7610 #undef WRITE_BYTE_FIELD 7620 #undef WRITE_BYTE_FIELD
7611 #undef NOBARRIER_READ_BYTE_FIELD 7621 #undef NOBARRIER_READ_BYTE_FIELD
7612 #undef NOBARRIER_WRITE_BYTE_FIELD 7622 #undef NOBARRIER_WRITE_BYTE_FIELD
7613 7623
7614 } } // namespace v8::internal 7624 } } // namespace v8::internal
7615 7625
7616 #endif // V8_OBJECTS_INL_H_ 7626 #endif // V8_OBJECTS_INL_H_
OLDNEW
« src/objects.h ('K') | « src/objects.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698