Chromium Code Reviews| 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 863 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 874 // immediately initialized upon creation (kCreatedInitialized). | 874 // immediately initialized upon creation (kCreatedInitialized). |
| 875 enum InitializationFlag { | 875 enum InitializationFlag { |
| 876 kNeedsInitialization, | 876 kNeedsInitialization, |
| 877 kCreatedInitialized | 877 kCreatedInitialized |
| 878 }; | 878 }; |
| 879 | 879 |
| 880 | 880 |
| 881 enum MaybeAssignedFlag { kNotAssigned, kMaybeAssigned }; | 881 enum MaybeAssignedFlag { kNotAssigned, kMaybeAssigned }; |
| 882 | 882 |
| 883 | 883 |
| 884 // This flag defines whether the context slot belongs to a variable of | |
| 885 // this context or the context slot is a shortcut to a global property cell. | |
| 886 enum class ContextSlotKindFlag { kLocal, kGlobal }; | |
|
Toon Verwaest
2015/07/01 09:28:55
What about changing Variable::Location to have a G
Igor Sheludko
2015/07/02 16:50:13
Done.
| |
| 887 | |
| 888 | |
| 884 // Serialized in PreparseData, so numeric values should not be changed. | 889 // Serialized in PreparseData, so numeric values should not be changed. |
| 885 enum ParseErrorType { kSyntaxError = 0, kReferenceError = 1 }; | 890 enum ParseErrorType { kSyntaxError = 0, kReferenceError = 1 }; |
| 886 | 891 |
| 887 | 892 |
| 888 enum ClearExceptionFlag { | 893 enum ClearExceptionFlag { |
| 889 KEEP_EXCEPTION, | 894 KEEP_EXCEPTION, |
| 890 CLEAR_EXCEPTION | 895 CLEAR_EXCEPTION |
| 891 }; | 896 }; |
| 892 | 897 |
| 893 | 898 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 996 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) { | 1001 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) { |
| 997 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); | 1002 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); |
| 998 DCHECK(IsValidFunctionKind(kind)); | 1003 DCHECK(IsValidFunctionKind(kind)); |
| 999 return kind; | 1004 return kind; |
| 1000 } | 1005 } |
| 1001 } } // namespace v8::internal | 1006 } } // namespace v8::internal |
| 1002 | 1007 |
| 1003 namespace i = v8::internal; | 1008 namespace i = v8::internal; |
| 1004 | 1009 |
| 1005 #endif // V8_GLOBALS_H_ | 1010 #endif // V8_GLOBALS_H_ |
| OLD | NEW |