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 870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
881 enum ScopeType : uint8_t { | 881 enum ScopeType : uint8_t { |
882 EVAL_SCOPE, // The top-level scope for an eval source. | 882 EVAL_SCOPE, // The top-level scope for an eval source. |
883 FUNCTION_SCOPE, // The top-level scope for a function. | 883 FUNCTION_SCOPE, // The top-level scope for a function. |
884 MODULE_SCOPE, // The scope introduced by a module literal | 884 MODULE_SCOPE, // The scope introduced by a module literal |
885 SCRIPT_SCOPE, // The top-level scope for a script or a top-level eval. | 885 SCRIPT_SCOPE, // The top-level scope for a script or a top-level eval. |
886 CATCH_SCOPE, // The scope introduced by catch. | 886 CATCH_SCOPE, // The scope introduced by catch. |
887 BLOCK_SCOPE, // The scope introduced by a new block. | 887 BLOCK_SCOPE, // The scope introduced by a new block. |
888 WITH_SCOPE // The scope introduced by with. | 888 WITH_SCOPE // The scope introduced by with. |
889 }; | 889 }; |
890 | 890 |
| 891 // AllocationSiteMode controls whether allocations are tracked by an allocation |
| 892 // site. |
| 893 enum AllocationSiteMode { |
| 894 DONT_TRACK_ALLOCATION_SITE, |
| 895 TRACK_ALLOCATION_SITE, |
| 896 LAST_ALLOCATION_SITE_MODE = TRACK_ALLOCATION_SITE |
| 897 }; |
| 898 |
891 // The mips architecture prior to revision 5 has inverted encoding for sNaN. | 899 // The mips architecture prior to revision 5 has inverted encoding for sNaN. |
892 // The x87 FPU convert the sNaN to qNaN automatically when loading sNaN from | 900 // The x87 FPU convert the sNaN to qNaN automatically when loading sNaN from |
893 // memmory. | 901 // memmory. |
894 // Use mips sNaN which is a not used qNaN in x87 port as sNaN to workaround this | 902 // Use mips sNaN which is a not used qNaN in x87 port as sNaN to workaround this |
895 // issue | 903 // issue |
896 // for some test cases. | 904 // for some test cases. |
897 #if (V8_TARGET_ARCH_MIPS && !defined(_MIPS_ARCH_MIPS32R6) && \ | 905 #if (V8_TARGET_ARCH_MIPS && !defined(_MIPS_ARCH_MIPS32R6) && \ |
898 (!defined(USE_SIMULATOR) || !defined(_MIPS_TARGET_SIMULATOR))) || \ | 906 (!defined(USE_SIMULATOR) || !defined(_MIPS_TARGET_SIMULATOR))) || \ |
899 (V8_TARGET_ARCH_MIPS64 && !defined(_MIPS_ARCH_MIPS64R6) && \ | 907 (V8_TARGET_ARCH_MIPS64 && !defined(_MIPS_ARCH_MIPS64R6) && \ |
900 (!defined(USE_SIMULATOR) || !defined(_MIPS_TARGET_SIMULATOR))) || \ | 908 (!defined(USE_SIMULATOR) || !defined(_MIPS_TARGET_SIMULATOR))) || \ |
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1317 } // namespace internal | 1325 } // namespace internal |
1318 } // namespace v8 | 1326 } // namespace v8 |
1319 | 1327 |
1320 // Used by js-builtin-reducer to identify whether ReduceArrayIterator() is | 1328 // Used by js-builtin-reducer to identify whether ReduceArrayIterator() is |
1321 // reducing a JSArray method, or a JSTypedArray method. | 1329 // reducing a JSArray method, or a JSTypedArray method. |
1322 enum class ArrayIteratorKind { kArray, kTypedArray }; | 1330 enum class ArrayIteratorKind { kArray, kTypedArray }; |
1323 | 1331 |
1324 namespace i = v8::internal; | 1332 namespace i = v8::internal; |
1325 | 1333 |
1326 #endif // V8_GLOBALS_H_ | 1334 #endif // V8_GLOBALS_H_ |
OLD | NEW |