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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 // consecutive. | 369 // consecutive. |
370 enum AllocationSpace { | 370 enum AllocationSpace { |
371 NEW_SPACE, // Semispaces collected with copying collector. | 371 NEW_SPACE, // Semispaces collected with copying collector. |
372 OLD_POINTER_SPACE, // May contain pointers to new space. | 372 OLD_POINTER_SPACE, // May contain pointers to new space. |
373 OLD_DATA_SPACE, // Must not have pointers to new space. | 373 OLD_DATA_SPACE, // Must not have pointers to new space. |
374 CODE_SPACE, // No pointers to new space, marked executable. | 374 CODE_SPACE, // No pointers to new space, marked executable. |
375 MAP_SPACE, // Only and all map objects. | 375 MAP_SPACE, // Only and all map objects. |
376 CELL_SPACE, // Only and all cell objects. | 376 CELL_SPACE, // Only and all cell objects. |
377 PROPERTY_CELL_SPACE, // Only and all global property cell objects. | 377 PROPERTY_CELL_SPACE, // Only and all global property cell objects. |
378 LO_SPACE, // Promoted large objects. | 378 LO_SPACE, // Promoted large objects. |
379 INVALID_SPACE, // Only used in AllocationResult to signal success. | |
380 | 379 |
381 FIRST_SPACE = NEW_SPACE, | 380 FIRST_SPACE = NEW_SPACE, |
382 LAST_SPACE = LO_SPACE, | 381 LAST_SPACE = LO_SPACE, |
383 FIRST_PAGED_SPACE = OLD_POINTER_SPACE, | 382 FIRST_PAGED_SPACE = OLD_POINTER_SPACE, |
384 LAST_PAGED_SPACE = PROPERTY_CELL_SPACE | 383 LAST_PAGED_SPACE = PROPERTY_CELL_SPACE |
385 }; | 384 }; |
386 const int kSpaceTagSize = 3; | 385 const int kSpaceTagSize = 3; |
387 const int kSpaceTagMask = (1 << kSpaceTagSize) - 1; | 386 const int kSpaceTagMask = (1 << kSpaceTagSize) - 1; |
388 | 387 |
389 | 388 |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
802 | 801 |
803 inline bool IsConciseMethod(FunctionKind kind) { | 802 inline bool IsConciseMethod(FunctionKind kind) { |
804 DCHECK(IsValidFunctionKind(kind)); | 803 DCHECK(IsValidFunctionKind(kind)); |
805 return kind & FunctionKind::kConciseMethod; | 804 return kind & FunctionKind::kConciseMethod; |
806 } | 805 } |
807 } } // namespace v8::internal | 806 } } // namespace v8::internal |
808 | 807 |
809 namespace i = v8::internal; | 808 namespace i = v8::internal; |
810 | 809 |
811 #endif // V8_GLOBALS_H_ | 810 #endif // V8_GLOBALS_H_ |
OLD | NEW |