Lines Matching full:language_mode
273 inline bool is_sloppy(LanguageMode language_mode) {
274 return (language_mode & STRICT_BIT) == 0;
278 inline bool is_strict(LanguageMode language_mode) {
279 return language_mode & STRICT_BIT;
283 inline bool is_strong(LanguageMode language_mode) {
284 return language_mode & STRONG_BIT;
288 inline bool is_valid_language_mode(int language_mode) {
289 return language_mode == SLOPPY || language_mode == STRICT ||
290 language_mode == STRONG;
295 int language_mode = 0;
296 if (strict_bit) language_mode |= STRICT_BIT;
297 if (strong_bit) language_mode |= STRONG_BIT;
298 DCHECK(is_valid_language_mode(language_mode));
299 return static_cast<LanguageMode>(language_mode);
322 inline Strength strength(LanguageMode language_mode) {
323 return is_strong(language_mode) ? Strength::STRONG : Strength::WEAK;