OLD | NEW |
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_GLOBALS_H_ | 5 #ifndef V8_GLOBALS_H_ |
6 #define V8_GLOBALS_H_ | 6 #define V8_GLOBALS_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
341 | 341 |
342 typedef bool (*WeakSlotCallback)(Object** pointer); | 342 typedef bool (*WeakSlotCallback)(Object** pointer); |
343 | 343 |
344 typedef bool (*WeakSlotCallbackWithHeap)(Heap* heap, Object** pointer); | 344 typedef bool (*WeakSlotCallbackWithHeap)(Heap* heap, Object** pointer); |
345 | 345 |
346 // ----------------------------------------------------------------------------- | 346 // ----------------------------------------------------------------------------- |
347 // Miscellaneous | 347 // Miscellaneous |
348 | 348 |
349 // NOTE: SpaceIterator depends on AllocationSpace enumeration values being | 349 // NOTE: SpaceIterator depends on AllocationSpace enumeration values being |
350 // consecutive. | 350 // consecutive. |
| 351 // Keep this enum in sync with the ObjectSpace enum in v8.h |
351 enum AllocationSpace { | 352 enum AllocationSpace { |
352 NEW_SPACE, // Semispaces collected with copying collector. | 353 NEW_SPACE, // Semispaces collected with copying collector. |
353 OLD_POINTER_SPACE, // May contain pointers to new space. | 354 OLD_POINTER_SPACE, // May contain pointers to new space. |
354 OLD_DATA_SPACE, // Must not have pointers to new space. | 355 OLD_DATA_SPACE, // Must not have pointers to new space. |
355 CODE_SPACE, // No pointers to new space, marked executable. | 356 CODE_SPACE, // No pointers to new space, marked executable. |
356 MAP_SPACE, // Only and all map objects. | 357 MAP_SPACE, // Only and all map objects. |
357 CELL_SPACE, // Only and all cell objects. | 358 CELL_SPACE, // Only and all cell objects. |
358 PROPERTY_CELL_SPACE, // Only and all global property cell objects. | 359 PROPERTY_CELL_SPACE, // Only and all global property cell objects. |
359 LO_SPACE, // Promoted large objects. | 360 LO_SPACE, // Promoted large objects. |
360 | 361 |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
794 DCHECK(IsValidFunctionKind(kind)); | 795 DCHECK(IsValidFunctionKind(kind)); |
795 return kind & FunctionKind::kDefaultConstructor; | 796 return kind & FunctionKind::kDefaultConstructor; |
796 } | 797 } |
797 | 798 |
798 | 799 |
799 } } // namespace v8::internal | 800 } } // namespace v8::internal |
800 | 801 |
801 namespace i = v8::internal; | 802 namespace i = v8::internal; |
802 | 803 |
803 #endif // V8_GLOBALS_H_ | 804 #endif // V8_GLOBALS_H_ |
OLD | NEW |