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 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
762 CLEAR_EXCEPTION | 762 CLEAR_EXCEPTION |
763 }; | 763 }; |
764 | 764 |
765 | 765 |
766 enum MinusZeroMode { | 766 enum MinusZeroMode { |
767 TREAT_MINUS_ZERO_AS_ZERO, | 767 TREAT_MINUS_ZERO_AS_ZERO, |
768 FAIL_ON_MINUS_ZERO | 768 FAIL_ON_MINUS_ZERO |
769 }; | 769 }; |
770 | 770 |
771 | 771 |
| 772 enum Signedness { kSigned, kUnsigned }; |
| 773 |
| 774 |
772 enum FunctionKind { | 775 enum FunctionKind { |
773 kNormalFunction = 0, | 776 kNormalFunction = 0, |
774 kArrowFunction = 1, | 777 kArrowFunction = 1, |
775 kGeneratorFunction = 2, | 778 kGeneratorFunction = 2, |
776 kConciseMethod = 4, | 779 kConciseMethod = 4, |
777 kConciseGeneratorMethod = kGeneratorFunction | kConciseMethod | 780 kConciseGeneratorMethod = kGeneratorFunction | kConciseMethod |
778 }; | 781 }; |
779 | 782 |
780 | 783 |
781 inline bool IsValidFunctionKind(FunctionKind kind) { | 784 inline bool IsValidFunctionKind(FunctionKind kind) { |
(...skipping 19 matching lines...) Expand all Loading... |
801 | 804 |
802 inline bool IsConciseMethod(FunctionKind kind) { | 805 inline bool IsConciseMethod(FunctionKind kind) { |
803 DCHECK(IsValidFunctionKind(kind)); | 806 DCHECK(IsValidFunctionKind(kind)); |
804 return kind & FunctionKind::kConciseMethod; | 807 return kind & FunctionKind::kConciseMethod; |
805 } | 808 } |
806 } } // namespace v8::internal | 809 } } // namespace v8::internal |
807 | 810 |
808 namespace i = v8::internal; | 811 namespace i = v8::internal; |
809 | 812 |
810 #endif // V8_GLOBALS_H_ | 813 #endif // V8_GLOBALS_H_ |
OLD | NEW |