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 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
789 // immediately initialized upon creation (kCreatedInitialized). | 789 // immediately initialized upon creation (kCreatedInitialized). |
790 enum InitializationFlag { | 790 enum InitializationFlag { |
791 kNeedsInitialization, | 791 kNeedsInitialization, |
792 kCreatedInitialized | 792 kCreatedInitialized |
793 }; | 793 }; |
794 | 794 |
795 | 795 |
796 enum MaybeAssignedFlag { kNotAssigned, kMaybeAssigned }; | 796 enum MaybeAssignedFlag { kNotAssigned, kMaybeAssigned }; |
797 | 797 |
798 | 798 |
| 799 // Serialized in PreparseData, so numeric values should not be changed. |
| 800 enum ParseErrorType { kSyntaxError = 0, kReferenceError = 1 }; |
| 801 |
| 802 |
799 enum ClearExceptionFlag { | 803 enum ClearExceptionFlag { |
800 KEEP_EXCEPTION, | 804 KEEP_EXCEPTION, |
801 CLEAR_EXCEPTION | 805 CLEAR_EXCEPTION |
802 }; | 806 }; |
803 | 807 |
804 | 808 |
805 enum MinusZeroMode { | 809 enum MinusZeroMode { |
806 TREAT_MINUS_ZERO_AS_ZERO, | 810 TREAT_MINUS_ZERO_AS_ZERO, |
807 FAIL_ON_MINUS_ZERO | 811 FAIL_ON_MINUS_ZERO |
808 }; | 812 }; |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
886 DCHECK(IsValidFunctionKind(kind)); | 890 DCHECK(IsValidFunctionKind(kind)); |
887 return kind & | 891 return kind & |
888 (FunctionKind::kBaseConstructor | FunctionKind::kSubclassConstructor | | 892 (FunctionKind::kBaseConstructor | FunctionKind::kSubclassConstructor | |
889 FunctionKind::kDefaultConstructor); | 893 FunctionKind::kDefaultConstructor); |
890 } | 894 } |
891 } } // namespace v8::internal | 895 } } // namespace v8::internal |
892 | 896 |
893 namespace i = v8::internal; | 897 namespace i = v8::internal; |
894 | 898 |
895 #endif // V8_GLOBALS_H_ | 899 #endif // V8_GLOBALS_H_ |
OLD | NEW |