| 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 429 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 440 | 440 |
| 441 enum AllocationAlignment { kWordAligned, kDoubleAligned, kDoubleUnaligned }; | 441 enum AllocationAlignment { kWordAligned, kDoubleAligned, kDoubleUnaligned }; |
| 442 | 442 |
| 443 // A flag that indicates whether objects should be pretenured when | 443 // A flag that indicates whether objects should be pretenured when |
| 444 // allocated (allocated directly into the old generation) or not | 444 // allocated (allocated directly into the old generation) or not |
| 445 // (allocated in the young generation if the object size and type | 445 // (allocated in the young generation if the object size and type |
| 446 // allows). | 446 // allows). |
| 447 enum PretenureFlag { NOT_TENURED, TENURED }; | 447 enum PretenureFlag { NOT_TENURED, TENURED }; |
| 448 | 448 |
| 449 enum MinimumCapacity { | 449 enum MinimumCapacity { |
| 450 USE_DEFAULT_MINIMUM_CAPACITY, | 450 USE_COMPUTED_MINIMUM_CAPACITY, |
| 451 USE_CUSTOM_MINIMUM_CAPACITY | 451 USE_CUSTOM_MINIMUM_CAPACITY |
| 452 }; | 452 }; |
| 453 | 453 |
| 454 enum GarbageCollector { SCAVENGER, MARK_COMPACTOR }; | 454 enum GarbageCollector { SCAVENGER, MARK_COMPACTOR }; |
| 455 | 455 |
| 456 enum Executability { NOT_EXECUTABLE, EXECUTABLE }; | 456 enum Executability { NOT_EXECUTABLE, EXECUTABLE }; |
| 457 | 457 |
| 458 enum VisitMode { | 458 enum VisitMode { |
| 459 VISIT_ALL, | 459 VISIT_ALL, |
| 460 VISIT_ALL_IN_SCAVENGE, | 460 VISIT_ALL_IN_SCAVENGE, |
| (...skipping 467 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 928 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) { | 928 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) { |
| 929 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); | 929 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); |
| 930 DCHECK(IsValidFunctionKind(kind)); | 930 DCHECK(IsValidFunctionKind(kind)); |
| 931 return kind; | 931 return kind; |
| 932 } | 932 } |
| 933 } } // namespace v8::internal | 933 } } // namespace v8::internal |
| 934 | 934 |
| 935 namespace i = v8::internal; | 935 namespace i = v8::internal; |
| 936 | 936 |
| 937 #endif // V8_GLOBALS_H_ | 937 #endif // V8_GLOBALS_H_ |
| OLD | NEW |