| 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 "include/v8stdint.h" | 8 #include "include/v8stdint.h" |
| 9 | 9 |
| 10 #include "src/base/build_config.h" | 10 #include "src/base/build_config.h" |
| (...skipping 593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 604 }; | 604 }; |
| 605 | 605 |
| 606 | 606 |
| 607 enum ScopeType { | 607 enum ScopeType { |
| 608 EVAL_SCOPE, // The top-level scope for an eval source. | 608 EVAL_SCOPE, // The top-level scope for an eval source. |
| 609 FUNCTION_SCOPE, // The top-level scope for a function. | 609 FUNCTION_SCOPE, // The top-level scope for a function. |
| 610 MODULE_SCOPE, // The scope introduced by a module literal | 610 MODULE_SCOPE, // The scope introduced by a module literal |
| 611 GLOBAL_SCOPE, // The top-level scope for a program or a top-level eval. | 611 GLOBAL_SCOPE, // The top-level scope for a program or a top-level eval. |
| 612 CATCH_SCOPE, // The scope introduced by catch. | 612 CATCH_SCOPE, // The scope introduced by catch. |
| 613 BLOCK_SCOPE, // The scope introduced by a new block. | 613 BLOCK_SCOPE, // The scope introduced by a new block. |
| 614 WITH_SCOPE // The scope introduced by with. | 614 WITH_SCOPE, // The scope introduced by with. |
| 615 SCRIPT_SCOPE // The scope in which a script is evaluated. |
| 615 }; | 616 }; |
| 616 | 617 |
| 617 | 618 |
| 618 const uint32_t kHoleNanUpper32 = 0x7FFFFFFF; | 619 const uint32_t kHoleNanUpper32 = 0x7FFFFFFF; |
| 619 const uint32_t kHoleNanLower32 = 0xFFFFFFFF; | 620 const uint32_t kHoleNanLower32 = 0xFFFFFFFF; |
| 620 const uint32_t kNaNOrInfinityLowerBoundUpper32 = 0x7FF00000; | 621 const uint32_t kNaNOrInfinityLowerBoundUpper32 = 0x7FF00000; |
| 621 | 622 |
| 622 const uint64_t kHoleNanInt64 = | 623 const uint64_t kHoleNanInt64 = |
| 623 (static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32; | 624 (static_cast<uint64_t>(kHoleNanUpper32) << 32) | kHoleNanLower32; |
| 624 const uint64_t kLastNonNaNInt64 = | 625 const uint64_t kLastNonNaNInt64 = |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 725 enum MinusZeroMode { | 726 enum MinusZeroMode { |
| 726 TREAT_MINUS_ZERO_AS_ZERO, | 727 TREAT_MINUS_ZERO_AS_ZERO, |
| 727 FAIL_ON_MINUS_ZERO | 728 FAIL_ON_MINUS_ZERO |
| 728 }; | 729 }; |
| 729 | 730 |
| 730 } } // namespace v8::internal | 731 } } // namespace v8::internal |
| 731 | 732 |
| 732 namespace i = v8::internal; | 733 namespace i = v8::internal; |
| 733 | 734 |
| 734 #endif // V8_GLOBALS_H_ | 735 #endif // V8_GLOBALS_H_ |
| OLD | NEW |