summaryrefslogtreecommitdiff
path: root/src/3rdparty/v8/src/objects.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/3rdparty/v8/src/objects.cc')
-rw-r--r--src/3rdparty/v8/src/objects.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/3rdparty/v8/src/objects.cc b/src/3rdparty/v8/src/objects.cc
index 104ee97..f12a2b7 100644
--- a/src/3rdparty/v8/src/objects.cc
+++ b/src/3rdparty/v8/src/objects.cc
@@ -8519,8 +8519,7 @@ void SharedFunctionInfo::DetachInitialMap() {
Map* map = reinterpret_cast<Map*>(initial_map());
// Make the map remember to restore the link if it survives the GC.
- map->set_bit_field2(
- map->bit_field2() | (1 << Map::kAttachedToSharedFunctionInfo));
+ map->set_attached_to_shared_function_info(true);
// Undo state changes made by StartInobjectTracking (except the
// construction_count). This way if the initial map does not survive the GC
@@ -8540,8 +8539,7 @@ void SharedFunctionInfo::DetachInitialMap() {
// Called from GC, hence reinterpret_cast and unchecked accessors.
void SharedFunctionInfo::AttachInitialMap(Map* map) {
- map->set_bit_field2(
- map->bit_field2() & ~(1 << Map::kAttachedToSharedFunctionInfo));
+ map->set_attached_to_shared_function_info(false);
// Resume inobject slack tracking.
set_initial_map(map);