Home | History | Annotate | Download | only in src

Lines Matching refs:kind

502 inline size_t hash_value(WriteBarrierKind kind) {
503 return static_cast<uint8_t>(kind);
506 inline std::ostream& operator<<(std::ostream& os, WriteBarrierKind kind) {
507 switch (kind) {
1029 inline bool IsValidFunctionKind(FunctionKind kind) {
1030 return kind == FunctionKind::kNormalFunction ||
1031 kind == FunctionKind::kArrowFunction ||
1032 kind == FunctionKind::kGeneratorFunction ||
1033 kind == FunctionKind::kConciseMethod ||
1034 kind == FunctionKind::kConciseGeneratorMethod ||
1035 kind == FunctionKind::kGetterFunction ||
1036 kind == FunctionKind::kSetterFunction ||
1037 kind == FunctionKind::kAccessorFunction ||
1038 kind == FunctionKind::kDefaultBaseConstructor ||
1039 kind == FunctionKind::kDefaultSubclassConstructor ||
1040 kind == FunctionKind::kBaseConstructor ||
1041 kind == FunctionKind::kSubclassConstructor ||
1042 kind == FunctionKind::kAsyncFunction ||
1043 kind == FunctionKind::kAsyncArrowFunction ||
1044 kind == FunctionKind::kAsyncConciseMethod;
1048 inline bool IsArrowFunction(FunctionKind kind) {
1049 DCHECK(IsValidFunctionKind(kind));
1050 return kind & FunctionKind::kArrowFunction;
1054 inline bool IsGeneratorFunction(FunctionKind kind) {
1055 DCHECK(IsValidFunctionKind(kind));
1056 return kind & FunctionKind::kGeneratorFunction;
1059 inline bool IsAsyncFunction(FunctionKind kind) {
1060 DCHECK(IsValidFunctionKind(kind));
1061 return kind & FunctionKind::kAsyncFunction;
1064 inline bool IsResumableFunction(FunctionKind kind) {
1065 return IsGeneratorFunction(kind) || IsAsyncFunction(kind);
1068 inline bool IsConciseMethod(FunctionKind kind) {
1069 DCHECK(IsValidFunctionKind(kind));
1070 return kind & FunctionKind::kConciseMethod;
1073 inline bool IsGetterFunction(FunctionKind kind) {
1074 DCHECK(IsValidFunctionKind(kind));
1075 return kind & FunctionKind::kGetterFunction;
1078 inline bool IsSetterFunction(FunctionKind kind) {
1079 DCHECK(IsValidFunctionKind(kind));
1080 return kind & FunctionKind::kSetterFunction;
1083 inline bool IsAccessorFunction(FunctionKind kind) {
1084 DCHECK(IsValidFunctionKind(kind));
1085 return kind & FunctionKind::kAccessorFunction;
1089 inline bool IsDefaultConstructor(FunctionKind kind) {
1090 DCHECK(IsValidFunctionKind(kind));
1091 return kind & FunctionKind::kDefaultConstructor;
1095 inline bool IsBaseConstructor(FunctionKind kind) {
1096 DCHECK(IsValidFunctionKind(kind));
1097 return kind & FunctionKind::kBaseConstructor;
1101 inline bool IsSubclassConstructor(FunctionKind kind) {
1102 DCHECK(IsValidFunctionKind(kind));
1103 return kind & FunctionKind::kSubclassConstructor;
1107 inline bool IsClassConstructor(FunctionKind kind) {
1108 DCHECK(IsValidFunctionKind(kind));
1109 return kind & FunctionKind::kClassConstructor;
1113 inline bool IsConstructable(FunctionKind kind, LanguageMode mode) {
1114 if (IsAccessorFunction(kind)) return false;
1115 if (IsConciseMethod(kind)) return false;
1116 if (IsArrowFunction(kind)) return false;
1117 if (IsGeneratorFunction(kind)) return false;
1118 if (IsAsyncFunction(kind)) return false;