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

Side by Side Diff: src/heap/mark-compact.h

Issue 1131783003: Embedded constant pools. (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 unified diff | Download patch
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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_HEAP_MARK_COMPACT_H_ 5 #ifndef V8_HEAP_MARK_COMPACT_H_
6 #define V8_HEAP_MARK_COMPACT_H_ 6 #define V8_HEAP_MARK_COMPACT_H_
7 7
8 #include "src/base/bits.h" 8 #include "src/base/bits.h"
9 #include "src/heap/spaces.h" 9 #include "src/heap/spaces.h"
10 10
(...skipping 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 #ifdef DEBUG 311 #ifdef DEBUG
312 if (slot >= reinterpret_cast<ObjectSlot>(NUMBER_OF_SLOT_TYPES)) { 312 if (slot >= reinterpret_cast<ObjectSlot>(NUMBER_OF_SLOT_TYPES)) {
313 DCHECK_NOT_NULL(*slot); 313 DCHECK_NOT_NULL(*slot);
314 } 314 }
315 #endif 315 #endif
316 slots_[idx_++] = slot; 316 slots_[idx_++] = slot;
317 } 317 }
318 318
319 enum SlotType { 319 enum SlotType {
320 EMBEDDED_OBJECT_SLOT, 320 EMBEDDED_OBJECT_SLOT,
321 OBJECT_SLOT,
321 RELOCATED_CODE_OBJECT, 322 RELOCATED_CODE_OBJECT,
322 CELL_TARGET_SLOT, 323 CELL_TARGET_SLOT,
323 CODE_TARGET_SLOT, 324 CODE_TARGET_SLOT,
324 CODE_ENTRY_SLOT, 325 CODE_ENTRY_SLOT,
325 DEBUG_TARGET_SLOT, 326 DEBUG_TARGET_SLOT,
326 JS_RETURN_SLOT, 327 JS_RETURN_SLOT,
327 NUMBER_OF_SLOT_TYPES 328 NUMBER_OF_SLOT_TYPES
328 }; 329 };
329 330
330 static const char* SlotTypeToString(SlotType type) { 331 static const char* SlotTypeToString(SlotType type) {
331 switch (type) { 332 switch (type) {
332 case EMBEDDED_OBJECT_SLOT: 333 case EMBEDDED_OBJECT_SLOT:
333 return "EMBEDDED_OBJECT_SLOT"; 334 return "EMBEDDED_OBJECT_SLOT";
335 case OBJECT_SLOT:
336 return "OBJECT_SLOT";
334 case RELOCATED_CODE_OBJECT: 337 case RELOCATED_CODE_OBJECT:
335 return "RELOCATED_CODE_OBJECT"; 338 return "RELOCATED_CODE_OBJECT";
336 case CELL_TARGET_SLOT: 339 case CELL_TARGET_SLOT:
337 return "CELL_TARGET_SLOT"; 340 return "CELL_TARGET_SLOT";
338 case CODE_TARGET_SLOT: 341 case CODE_TARGET_SLOT:
339 return "CODE_TARGET_SLOT"; 342 return "CODE_TARGET_SLOT";
340 case CODE_ENTRY_SLOT: 343 case CODE_ENTRY_SLOT:
341 return "CODE_ENTRY_SLOT"; 344 return "CODE_ENTRY_SLOT";
342 case DEBUG_TARGET_SLOT: 345 case DEBUG_TARGET_SLOT:
343 return "DEBUG_TARGET_SLOT"; 346 return "DEBUG_TARGET_SLOT";
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 private: 1008 private:
1006 MarkCompactCollector* collector_; 1009 MarkCompactCollector* collector_;
1007 }; 1010 };
1008 1011
1009 1012
1010 const char* AllocationSpaceName(AllocationSpace space); 1013 const char* AllocationSpaceName(AllocationSpace space);
1011 } 1014 }
1012 } // namespace v8::internal 1015 } // namespace v8::internal
1013 1016
1014 #endif // V8_HEAP_MARK_COMPACT_H_ 1017 #endif // V8_HEAP_MARK_COMPACT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698