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

Unified 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 side-by-side diff with in-line comments
Download patch
« src/objects.h ('K') | « src/objects.h ('k') | src/runtime/runtime.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/objects-inl.h
diff --git a/src/objects-inl.h b/src/objects-inl.h
index 6d0d4913b57861617c11eca5722fb5b1e8b1a8b4..20e50c34fd210b907e92cee4467b647ce89479fc 100644
--- a/src/objects-inl.h
+++ b/src/objects-inl.h
@@ -4715,6 +4715,16 @@ bool Map::is_migration_target() {
}
+void Map::set_is_strong(bool value) {
+ set_bit_field3(IsStrong::update(bit_field3(), value));
+}
+
+
+bool Map::is_strong() {
+ return IsStrong::decode(bit_field3());
+}
+
+
void Map::set_counter(int value) {
set_bit_field3(Counter::update(bit_field3(), value));
}
« 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