OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 } | 290 } |
291 | 291 |
292 void Add(ObjectSlot slot) { | 292 void Add(ObjectSlot slot) { |
293 ASSERT(0 <= idx_ && idx_ < kNumberOfElements); | 293 ASSERT(0 <= idx_ && idx_ < kNumberOfElements); |
294 slots_[idx_++] = slot; | 294 slots_[idx_++] = slot; |
295 } | 295 } |
296 | 296 |
297 enum SlotType { | 297 enum SlotType { |
298 EMBEDDED_OBJECT_SLOT, | 298 EMBEDDED_OBJECT_SLOT, |
299 RELOCATED_CODE_OBJECT, | 299 RELOCATED_CODE_OBJECT, |
300 CODE_TARGET_SLOT, | 300 CODE_TARGET_RELOC_INFO_SLOT, |
| 301 CODE_TARGET_CONSTANT_POOL_SLOT, |
301 CODE_ENTRY_SLOT, | 302 CODE_ENTRY_SLOT, |
302 DEBUG_TARGET_SLOT, | 303 DEBUG_TARGET_SLOT, |
303 JS_RETURN_SLOT, | 304 JS_RETURN_SLOT, |
304 NUMBER_OF_SLOT_TYPES | 305 NUMBER_OF_SLOT_TYPES |
305 }; | 306 }; |
306 | 307 |
307 static const char* SlotTypeToString(SlotType type) { | 308 static const char* SlotTypeToString(SlotType type) { |
308 switch (type) { | 309 switch (type) { |
309 case EMBEDDED_OBJECT_SLOT: | 310 case EMBEDDED_OBJECT_SLOT: |
310 return "EMBEDDED_OBJECT_SLOT"; | 311 return "EMBEDDED_OBJECT_SLOT"; |
311 case RELOCATED_CODE_OBJECT: | 312 case RELOCATED_CODE_OBJECT: |
312 return "RELOCATED_CODE_OBJECT"; | 313 return "RELOCATED_CODE_OBJECT"; |
313 case CODE_TARGET_SLOT: | 314 case CODE_TARGET_RELOC_INFO_SLOT: |
314 return "CODE_TARGET_SLOT"; | 315 return "CODE_TARGET_RELOC_INFO_SLOT"; |
| 316 case CODE_TARGET_CONSTANT_POOL_SLOT: |
| 317 return "CODE_TARGET_CONSTANT_POOL_SLOT"; |
315 case CODE_ENTRY_SLOT: | 318 case CODE_ENTRY_SLOT: |
316 return "CODE_ENTRY_SLOT"; | 319 return "CODE_ENTRY_SLOT"; |
317 case DEBUG_TARGET_SLOT: | 320 case DEBUG_TARGET_SLOT: |
318 return "DEBUG_TARGET_SLOT"; | 321 return "DEBUG_TARGET_SLOT"; |
319 case JS_RETURN_SLOT: | 322 case JS_RETURN_SLOT: |
320 return "JS_RETURN_SLOT"; | 323 return "JS_RETURN_SLOT"; |
321 case NUMBER_OF_SLOT_TYPES: | 324 case NUMBER_OF_SLOT_TYPES: |
322 return "NUMBER_OF_SLOT_TYPES"; | 325 return "NUMBER_OF_SLOT_TYPES"; |
323 } | 326 } |
324 return "UNKNOWN SlotType"; | 327 return "UNKNOWN SlotType"; |
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1032 private: | 1035 private: |
1033 MarkCompactCollector* collector_; | 1036 MarkCompactCollector* collector_; |
1034 }; | 1037 }; |
1035 | 1038 |
1036 | 1039 |
1037 const char* AllocationSpaceName(AllocationSpace space); | 1040 const char* AllocationSpaceName(AllocationSpace space); |
1038 | 1041 |
1039 } } // namespace v8::internal | 1042 } } // namespace v8::internal |
1040 | 1043 |
1041 #endif // V8_MARK_COMPACT_H_ | 1044 #endif // V8_MARK_COMPACT_H_ |
OLD | NEW |