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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 | 447 |
448 enum MinimumCapacity { | 448 enum MinimumCapacity { |
449 USE_DEFAULT_MINIMUM_CAPACITY, | 449 USE_DEFAULT_MINIMUM_CAPACITY, |
450 USE_CUSTOM_MINIMUM_CAPACITY | 450 USE_CUSTOM_MINIMUM_CAPACITY |
451 }; | 451 }; |
452 | 452 |
453 enum GarbageCollector { SCAVENGER, MARK_COMPACTOR }; | 453 enum GarbageCollector { SCAVENGER, MARK_COMPACTOR }; |
454 | 454 |
455 enum Executability { NOT_EXECUTABLE, EXECUTABLE }; | 455 enum Executability { NOT_EXECUTABLE, EXECUTABLE }; |
456 | 456 |
457 enum CallMode { NORMAL_CALL, TAIL_CALL }; | |
458 | |
459 enum VisitMode { | 457 enum VisitMode { |
460 VISIT_ALL, | 458 VISIT_ALL, |
461 VISIT_ALL_IN_SCAVENGE, | 459 VISIT_ALL_IN_SCAVENGE, |
462 VISIT_ALL_IN_SWEEP_NEWSPACE, | 460 VISIT_ALL_IN_SWEEP_NEWSPACE, |
463 VISIT_ONLY_STRONG | 461 VISIT_ONLY_STRONG |
464 }; | 462 }; |
465 | 463 |
466 // Flag indicating whether code is built into the VM (one of the natives files). | 464 // Flag indicating whether code is built into the VM (one of the natives files). |
467 enum NativesFlag { NOT_NATIVES_CODE, NATIVES_CODE }; | 465 enum NativesFlag { NOT_NATIVES_CODE, NATIVES_CODE }; |
468 | 466 |
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
945 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) { | 943 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) { |
946 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); | 944 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); |
947 DCHECK(IsValidFunctionKind(kind)); | 945 DCHECK(IsValidFunctionKind(kind)); |
948 return kind; | 946 return kind; |
949 } | 947 } |
950 } } // namespace v8::internal | 948 } } // namespace v8::internal |
951 | 949 |
952 namespace i = v8::internal; | 950 namespace i = v8::internal; |
953 | 951 |
954 #endif // V8_GLOBALS_H_ | 952 #endif // V8_GLOBALS_H_ |
OLD | NEW |