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