| 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 792 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 803 | 803 |
| 804 CONST_LEGACY, // declared via legacy 'const' declarations | 804 CONST_LEGACY, // declared via legacy 'const' declarations |
| 805 | 805 |
| 806 LET, // declared via 'let' declarations (first lexical) | 806 LET, // declared via 'let' declarations (first lexical) |
| 807 | 807 |
| 808 CONST, // declared via 'const' declarations | 808 CONST, // declared via 'const' declarations |
| 809 | 809 |
| 810 IMPORT, // declared via 'import' declarations (last lexical) | 810 IMPORT, // declared via 'import' declarations (last lexical) |
| 811 | 811 |
| 812 // Variables introduced by the compiler: | 812 // Variables introduced by the compiler: |
| 813 INTERNAL, // like VAR, but not user-visible (may or may not | |
| 814 // be in a context) | |
| 815 | |
| 816 TEMPORARY, // temporary variables (not user-visible), stack-allocated | 813 TEMPORARY, // temporary variables (not user-visible), stack-allocated |
| 817 // unless the scope as a whole has forced context allocation | 814 // unless the scope as a whole has forced context allocation |
| 818 | 815 |
| 819 DYNAMIC, // always require dynamic lookup (we don't know | 816 DYNAMIC, // always require dynamic lookup (we don't know |
| 820 // the declaration) | 817 // the declaration) |
| 821 | 818 |
| 822 DYNAMIC_GLOBAL, // requires dynamic lookup, but we know that the | 819 DYNAMIC_GLOBAL, // requires dynamic lookup, but we know that the |
| 823 // variable is global unless it has been shadowed | 820 // variable is global unless it has been shadowed |
| 824 // by an eval-introduced variable | 821 // by an eval-introduced variable |
| 825 | 822 |
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1039 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) { | 1036 inline FunctionKind WithObjectLiteralBit(FunctionKind kind) { |
| 1040 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); | 1037 kind = static_cast<FunctionKind>(kind | FunctionKind::kInObjectLiteral); |
| 1041 DCHECK(IsValidFunctionKind(kind)); | 1038 DCHECK(IsValidFunctionKind(kind)); |
| 1042 return kind; | 1039 return kind; |
| 1043 } | 1040 } |
| 1044 } } // namespace v8::internal | 1041 } } // namespace v8::internal |
| 1045 | 1042 |
| 1046 namespace i = v8::internal; | 1043 namespace i = v8::internal; |
| 1047 | 1044 |
| 1048 #endif // V8_GLOBALS_H_ | 1045 #endif // V8_GLOBALS_H_ |
| OLD | NEW |