| Index: src/spaces.h
|
| diff --git a/src/spaces.h b/src/spaces.h
|
| index a1f0c6b01155e40d82b44389cd859fafbb3b7ea9..671acd5b62a02f614a4984361931f54883798b9e 100644
|
| --- a/src/spaces.h
|
| +++ b/src/spaces.h
|
| @@ -2063,24 +2063,34 @@ class MapSpace : public FixedSpace {
|
| MapSpace(intptr_t max_capacity, int max_map_space_pages, AllocationSpace id)
|
| : FixedSpace(max_capacity, id, Map::kSize, "map"),
|
| max_map_space_pages_(max_map_space_pages) {
|
| +#ifndef BASELINE_GC
|
| ASSERT(max_map_space_pages < kMaxMapPageIndex);
|
| +#endif
|
| }
|
|
|
| // Prepares for a mark-compact GC.
|
| virtual void PrepareForMarkCompact(bool will_compact);
|
|
|
| // Given an index, returns the page address.
|
| +#ifndef BASELINE_GC
|
| Address PageAddress(int page_index) { return page_addresses_[page_index]; }
|
|
|
| static const int kMaxMapPageIndex = 1 << MapWord::kMapPageIndexBits;
|
| +#else
|
| + static const int kMaxMapPageIndex = 1 << 16;
|
| +#endif
|
|
|
| // Are map pointers encodable into map word?
|
| bool MapPointersEncodable() {
|
| +#ifndef BASELINE_GC
|
| if (!FLAG_use_big_map_space) {
|
| ASSERT(CountPagesToTop() <= kMaxMapPageIndex);
|
| return true;
|
| }
|
| return CountPagesToTop() <= max_map_space_pages_;
|
| +#else
|
| + return false;
|
| +#endif
|
| }
|
|
|
| // Should be called after forced sweep to find out if map space needs
|
| @@ -2151,8 +2161,10 @@ class MapSpace : public FixedSpace {
|
|
|
| const int max_map_space_pages_;
|
|
|
| +#ifndef BASELINE_GC
|
| // An array of page start address in a map space.
|
| Address page_addresses_[kMaxMapPageIndex];
|
| +#endif
|
|
|
| public:
|
| TRACK_MEMORY("MapSpace")
|
|
|