| 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 807 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 818   kNormalFunction = 0, | 818   kNormalFunction = 0, | 
| 819   kArrowFunction = 1 << 0, | 819   kArrowFunction = 1 << 0, | 
| 820   kGeneratorFunction = 1 << 1, | 820   kGeneratorFunction = 1 << 1, | 
| 821   kConciseMethod = 1 << 2, | 821   kConciseMethod = 1 << 2, | 
| 822   kConciseGeneratorMethod = kGeneratorFunction | kConciseMethod, | 822   kConciseGeneratorMethod = kGeneratorFunction | kConciseMethod, | 
| 823   kAccessorFunction = 1 << 3, | 823   kAccessorFunction = 1 << 3, | 
| 824   kDefaultConstructor = 1 << 4, | 824   kDefaultConstructor = 1 << 4, | 
| 825   kSubclassConstructor = 1 << 5, | 825   kSubclassConstructor = 1 << 5, | 
| 826   kBaseConstructor = 1 << 6, | 826   kBaseConstructor = 1 << 6, | 
| 827   kDefaultBaseConstructor = kDefaultConstructor | kBaseConstructor, | 827   kDefaultBaseConstructor = kDefaultConstructor | kBaseConstructor, | 
| 828   kDefaultSubclassConstructor = kDefaultConstructor | kSubclassConstructor, | 828   kDefaultSubclassConstructor = kDefaultConstructor | kSubclassConstructor | 
| 829 }; | 829 }; | 
| 830 | 830 | 
| 831 | 831 | 
| 832 inline bool IsValidFunctionKind(FunctionKind kind) { | 832 inline bool IsValidFunctionKind(FunctionKind kind) { | 
| 833   return kind == FunctionKind::kNormalFunction || | 833   return kind == FunctionKind::kNormalFunction || | 
| 834          kind == FunctionKind::kArrowFunction || | 834          kind == FunctionKind::kArrowFunction || | 
| 835          kind == FunctionKind::kGeneratorFunction || | 835          kind == FunctionKind::kGeneratorFunction || | 
| 836          kind == FunctionKind::kConciseMethod || | 836          kind == FunctionKind::kConciseMethod || | 
| 837          kind == FunctionKind::kConciseGeneratorMethod || | 837          kind == FunctionKind::kConciseGeneratorMethod || | 
| 838          kind == FunctionKind::kAccessorFunction || | 838          kind == FunctionKind::kAccessorFunction || | 
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 889   DCHECK(IsValidFunctionKind(kind)); | 889   DCHECK(IsValidFunctionKind(kind)); | 
| 890   return kind & | 890   return kind & | 
| 891          (FunctionKind::kBaseConstructor | FunctionKind::kSubclassConstructor | | 891          (FunctionKind::kBaseConstructor | FunctionKind::kSubclassConstructor | | 
| 892           FunctionKind::kDefaultConstructor); | 892           FunctionKind::kDefaultConstructor); | 
| 893 } | 893 } | 
| 894 } }  // namespace v8::internal | 894 } }  // namespace v8::internal | 
| 895 | 895 | 
| 896 namespace i = v8::internal; | 896 namespace i = v8::internal; | 
| 897 | 897 | 
| 898 #endif  // V8_GLOBALS_H_ | 898 #endif  // V8_GLOBALS_H_ | 
| OLD | NEW | 
|---|