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

Side by Side Diff: src/heap/slot-set.h

Issue 1994653002: [heap] Replace RELOCATED_CODE_OBJECT with proper recording (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 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
« no previous file with comments | « src/heap/mark-compact.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 #ifndef V8_SLOT_SET_H 5 #ifndef V8_SLOT_SET_H
6 #define V8_SLOT_SET_H 6 #define V8_SLOT_SET_H
7 7
8 #include "src/allocation.h" 8 #include "src/allocation.h"
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/utils.h" 10 #include "src/utils.h"
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 *bit_index = slot & (kBitsPerCell - 1); 210 *bit_index = slot & (kBitsPerCell - 1);
211 } 211 }
212 212
213 uint32_t* bucket[kBuckets]; 213 uint32_t* bucket[kBuckets];
214 Address page_start_; 214 Address page_start_;
215 }; 215 };
216 216
217 enum SlotType { 217 enum SlotType {
218 EMBEDDED_OBJECT_SLOT, 218 EMBEDDED_OBJECT_SLOT,
219 OBJECT_SLOT, 219 OBJECT_SLOT,
220 RELOCATED_CODE_OBJECT,
221 CELL_TARGET_SLOT, 220 CELL_TARGET_SLOT,
222 CODE_TARGET_SLOT, 221 CODE_TARGET_SLOT,
223 CODE_ENTRY_SLOT, 222 CODE_ENTRY_SLOT,
224 DEBUG_TARGET_SLOT, 223 DEBUG_TARGET_SLOT,
225 NUMBER_OF_SLOT_TYPES 224 NUMBER_OF_SLOT_TYPES
226 }; 225 };
227 226
228 // Data structure for maintaining a multiset of typed slots in a page. 227 // Data structure for maintaining a multiset of typed slots in a page.
229 // Typed slots can only appear in Code and JSFunction objects, so 228 // Typed slots can only appear in Code and JSFunction objects, so
230 // the maximum possible offset is limited by the LargePage::kMaxCodePageSize. 229 // the maximum possible offset is limited by the LargePage::kMaxCodePageSize.
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 }; 328 };
330 329
331 Address page_start_; 330 Address page_start_;
332 Chunk* chunk_; 331 Chunk* chunk_;
333 }; 332 };
334 333
335 } // namespace internal 334 } // namespace internal
336 } // namespace v8 335 } // namespace v8
337 336
338 #endif // V8_SLOT_SET_H 337 #endif // V8_SLOT_SET_H
OLDNEW
« no previous file with comments | « src/heap/mark-compact.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698