@@ -165,6 +165,7 @@ Heap::Heap()
165
165
code_space_(nullptr ),
166
166
map_space_(nullptr ),
167
167
lo_space_(nullptr ),
168
+ new_lo_space_(nullptr ),
168
169
read_only_space_(nullptr ),
169
170
write_protect_code_memory_(false ),
170
171
code_space_memory_modification_scope_depth_(0 ),
@@ -673,6 +674,8 @@ const char* Heap::GetSpaceName(int idx) {
673
674
return " code_space" ;
674
675
case LO_SPACE:
675
676
return " large_object_space" ;
677
+ case NEW_LO_SPACE:
678
+ return " new_large_object_space" ;
676
679
case RO_SPACE:
677
680
return " read_only_space" ;
678
681
default :
@@ -3646,6 +3649,8 @@ bool Heap::InSpace(HeapObject* value, AllocationSpace space) {
3646
3649
return map_space_->Contains (value);
3647
3650
case LO_SPACE:
3648
3651
return lo_space_->Contains (value);
3652
+ case NEW_LO_SPACE:
3653
+ return new_lo_space_->Contains (value);
3649
3654
case RO_SPACE:
3650
3655
return read_only_space_->Contains (value);
3651
3656
}
@@ -3669,20 +3674,22 @@ bool Heap::InSpaceSlow(Address addr, AllocationSpace space) {
3669
3674
return map_space_->ContainsSlow (addr);
3670
3675
case LO_SPACE:
3671
3676
return lo_space_->ContainsSlow (addr);
3677
+ case NEW_LO_SPACE:
3678
+ return new_lo_space_->ContainsSlow (addr);
3672
3679
case RO_SPACE:
3673
3680
return read_only_space_->ContainsSlow (addr);
3674
3681
}
3675
3682
UNREACHABLE ();
3676
3683
}
3677
3684
3678
-
3679
3685
bool Heap::IsValidAllocationSpace (AllocationSpace space) {
3680
3686
switch (space) {
3681
3687
case NEW_SPACE:
3682
3688
case OLD_SPACE:
3683
3689
case CODE_SPACE:
3684
3690
case MAP_SPACE:
3685
3691
case LO_SPACE:
3692
+ case NEW_LO_SPACE:
3686
3693
case RO_SPACE:
3687
3694
return true ;
3688
3695
default :
@@ -4591,6 +4598,7 @@ void Heap::SetUp() {
4591
4598
space_[CODE_SPACE] = code_space_ = new CodeSpace (this );
4592
4599
space_[MAP_SPACE] = map_space_ = new MapSpace (this );
4593
4600
space_[LO_SPACE] = lo_space_ = new LargeObjectSpace (this );
4601
+ space_[NEW_LO_SPACE] = new_lo_space_ = new NewLargeObjectSpace (this );
4594
4602
4595
4603
// Set up the seed that is used to randomize the string hash function.
4596
4604
DCHECK_EQ (Smi::kZero , hash_seed ());
@@ -5525,6 +5533,8 @@ const char* AllocationSpaceName(AllocationSpace space) {
5525
5533
return " MAP_SPACE" ;
5526
5534
case LO_SPACE:
5527
5535
return " LO_SPACE" ;
5536
+ case NEW_LO_SPACE:
5537
+ return " NEW_LO_SPACE" ;
5528
5538
case RO_SPACE:
5529
5539
return " RO_SPACE" ;
5530
5540
default :
@@ -5598,6 +5608,7 @@ bool Heap::AllowedToBeMigrated(HeapObject* obj, AllocationSpace dst) {
5598
5608
return dst == CODE_SPACE && type == CODE_TYPE;
5599
5609
case MAP_SPACE:
5600
5610
case LO_SPACE:
5611
+ case NEW_LO_SPACE:
5601
5612
case RO_SPACE:
5602
5613
return false ;
5603
5614
}
0 commit comments