Lines Matching refs:kind
344 inline size_t hash_value(DeoptimizeKind kind) { in hash_value() argument
345 return static_cast<size_t>(kind); in hash_value()
347 inline std::ostream& operator<<(std::ostream& os, DeoptimizeKind kind) {
348 switch (kind) {
545 inline size_t hash_value(WriteBarrierKind kind) { in hash_value() argument
546 return static_cast<uint8_t>(kind); in hash_value()
549 inline std::ostream& operator<<(std::ostream& os, WriteBarrierKind kind) {
550 switch (kind) {
1113 inline bool IsValidFunctionKind(FunctionKind kind) { in IsValidFunctionKind() argument
1114 return kind == FunctionKind::kNormalFunction || in IsValidFunctionKind()
1115 kind == FunctionKind::kArrowFunction || in IsValidFunctionKind()
1116 kind == FunctionKind::kGeneratorFunction || in IsValidFunctionKind()
1117 kind == FunctionKind::kModule || in IsValidFunctionKind()
1118 kind == FunctionKind::kConciseMethod || in IsValidFunctionKind()
1119 kind == FunctionKind::kConciseGeneratorMethod || in IsValidFunctionKind()
1120 kind == FunctionKind::kGetterFunction || in IsValidFunctionKind()
1121 kind == FunctionKind::kSetterFunction || in IsValidFunctionKind()
1122 kind == FunctionKind::kAccessorFunction || in IsValidFunctionKind()
1123 kind == FunctionKind::kDefaultBaseConstructor || in IsValidFunctionKind()
1124 kind == FunctionKind::kDefaultDerivedConstructor || in IsValidFunctionKind()
1125 kind == FunctionKind::kBaseConstructor || in IsValidFunctionKind()
1126 kind == FunctionKind::kDerivedConstructor || in IsValidFunctionKind()
1127 kind == FunctionKind::kAsyncFunction || in IsValidFunctionKind()
1128 kind == FunctionKind::kAsyncArrowFunction || in IsValidFunctionKind()
1129 kind == FunctionKind::kAsyncConciseMethod; in IsValidFunctionKind()
1133 inline bool IsArrowFunction(FunctionKind kind) { in IsArrowFunction() argument
1134 DCHECK(IsValidFunctionKind(kind)); in IsArrowFunction()
1135 return kind & FunctionKind::kArrowFunction; in IsArrowFunction()
1139 inline bool IsGeneratorFunction(FunctionKind kind) { in IsGeneratorFunction() argument
1140 DCHECK(IsValidFunctionKind(kind)); in IsGeneratorFunction()
1141 return kind & FunctionKind::kGeneratorFunction; in IsGeneratorFunction()
1144 inline bool IsModule(FunctionKind kind) { in IsModule() argument
1145 DCHECK(IsValidFunctionKind(kind)); in IsModule()
1146 return kind & FunctionKind::kModule; in IsModule()
1149 inline bool IsAsyncFunction(FunctionKind kind) { in IsAsyncFunction() argument
1150 DCHECK(IsValidFunctionKind(kind)); in IsAsyncFunction()
1151 return kind & FunctionKind::kAsyncFunction; in IsAsyncFunction()
1154 inline bool IsResumableFunction(FunctionKind kind) { in IsResumableFunction() argument
1155 return IsGeneratorFunction(kind) || IsAsyncFunction(kind) || IsModule(kind); in IsResumableFunction()
1158 inline bool IsConciseMethod(FunctionKind kind) { in IsConciseMethod() argument
1159 DCHECK(IsValidFunctionKind(kind)); in IsConciseMethod()
1160 return kind & FunctionKind::kConciseMethod; in IsConciseMethod()
1163 inline bool IsGetterFunction(FunctionKind kind) { in IsGetterFunction() argument
1164 DCHECK(IsValidFunctionKind(kind)); in IsGetterFunction()
1165 return kind & FunctionKind::kGetterFunction; in IsGetterFunction()
1168 inline bool IsSetterFunction(FunctionKind kind) { in IsSetterFunction() argument
1169 DCHECK(IsValidFunctionKind(kind)); in IsSetterFunction()
1170 return kind & FunctionKind::kSetterFunction; in IsSetterFunction()
1173 inline bool IsAccessorFunction(FunctionKind kind) { in IsAccessorFunction() argument
1174 DCHECK(IsValidFunctionKind(kind)); in IsAccessorFunction()
1175 return kind & FunctionKind::kAccessorFunction; in IsAccessorFunction()
1179 inline bool IsDefaultConstructor(FunctionKind kind) { in IsDefaultConstructor() argument
1180 DCHECK(IsValidFunctionKind(kind)); in IsDefaultConstructor()
1181 return kind & FunctionKind::kDefaultConstructor; in IsDefaultConstructor()
1185 inline bool IsBaseConstructor(FunctionKind kind) { in IsBaseConstructor() argument
1186 DCHECK(IsValidFunctionKind(kind)); in IsBaseConstructor()
1187 return kind & FunctionKind::kBaseConstructor; in IsBaseConstructor()
1190 inline bool IsDerivedConstructor(FunctionKind kind) { in IsDerivedConstructor() argument
1191 DCHECK(IsValidFunctionKind(kind)); in IsDerivedConstructor()
1192 return kind & FunctionKind::kDerivedConstructor; in IsDerivedConstructor()
1196 inline bool IsClassConstructor(FunctionKind kind) { in IsClassConstructor() argument
1197 DCHECK(IsValidFunctionKind(kind)); in IsClassConstructor()
1198 return kind & FunctionKind::kClassConstructor; in IsClassConstructor()
1202 inline bool IsConstructable(FunctionKind kind, LanguageMode mode) { in IsConstructable() argument
1203 if (IsAccessorFunction(kind)) return false; in IsConstructable()
1204 if (IsConciseMethod(kind)) return false; in IsConstructable()
1205 if (IsArrowFunction(kind)) return false; in IsConstructable()
1206 if (IsGeneratorFunction(kind)) return false; in IsConstructable()
1207 if (IsAsyncFunction(kind)) return false; in IsConstructable()
1308 inline std::ostream& operator<<(std::ostream& os, IterationKind kind) {
1309 switch (kind) {