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 822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
833 return os; | 833 return os; |
834 } | 834 } |
835 | 835 |
836 // Used to specify if a macro instruction must perform a smi check on tagged | 836 // Used to specify if a macro instruction must perform a smi check on tagged |
837 // values. | 837 // values. |
838 enum SmiCheckType { | 838 enum SmiCheckType { |
839 DONT_DO_SMI_CHECK, | 839 DONT_DO_SMI_CHECK, |
840 DO_SMI_CHECK | 840 DO_SMI_CHECK |
841 }; | 841 }; |
842 | 842 |
843 | 843 enum ScopeType : uint8_t { |
844 enum ScopeType { | |
845 EVAL_SCOPE, // The top-level scope for an eval source. | 844 EVAL_SCOPE, // The top-level scope for an eval source. |
846 FUNCTION_SCOPE, // The top-level scope for a function. | 845 FUNCTION_SCOPE, // The top-level scope for a function. |
847 MODULE_SCOPE, // The scope introduced by a module literal | 846 MODULE_SCOPE, // The scope introduced by a module literal |
848 SCRIPT_SCOPE, // The top-level scope for a script or a top-level eval. | 847 SCRIPT_SCOPE, // The top-level scope for a script or a top-level eval. |
849 CATCH_SCOPE, // The scope introduced by catch. | 848 CATCH_SCOPE, // The scope introduced by catch. |
850 BLOCK_SCOPE, // The scope introduced by a new block. | 849 BLOCK_SCOPE, // The scope introduced by a new block. |
851 WITH_SCOPE // The scope introduced by with. | 850 WITH_SCOPE // The scope introduced by with. |
852 }; | 851 }; |
853 | 852 |
854 // The mips architecture prior to revision 5 has inverted encoding for sNaN. | 853 // The mips architecture prior to revision 5 has inverted encoding for sNaN. |
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1156 public: | 1155 public: |
1157 enum { kNone = 0x00, kSignedSmall = 0x01, kNumber = 0x3, kAny = 0x7 }; | 1156 enum { kNone = 0x00, kSignedSmall = 0x01, kNumber = 0x3, kAny = 0x7 }; |
1158 }; | 1157 }; |
1159 | 1158 |
1160 } // namespace internal | 1159 } // namespace internal |
1161 } // namespace v8 | 1160 } // namespace v8 |
1162 | 1161 |
1163 namespace i = v8::internal; | 1162 namespace i = v8::internal; |
1164 | 1163 |
1165 #endif // V8_GLOBALS_H_ | 1164 #endif // V8_GLOBALS_H_ |
OLD | NEW |