Lines Matching defs:mode
78 // - on Arm64 when running in single-process mode for Android WebView, when
128 // Determine whether dict mode prototypes feature is enabled.
452 inline size_t hash_value(LanguageMode mode) {
453 return static_cast<size_t>(mode);
456 inline const char* LanguageMode2String(LanguageMode mode) {
457 switch (mode) {
466 inline std::ostream& operator<<(std::ostream& os, LanguageMode mode) {
467 return os << LanguageMode2String(mode);
555 // Indicates whether the lookup is related to sloppy-mode block-scoped
560 const LookupHoistingMode& mode) {
561 switch (mode) {
930 bool inline IsBaselineCodeFlushingEnabled(base::EnumSet<CodeFlushMode> mode) {
931 return mode.contains(CodeFlushMode::kFlushBaselineCode);
934 bool inline IsByteCodeFlushingEnabled(base::EnumSet<CodeFlushMode> mode) {
935 return mode.contains(CodeFlushMode::kFlushBytecode);
938 bool inline IsStressFlushingEnabled(base::EnumSet<CodeFlushMode> mode) {
939 return mode.contains(CodeFlushMode::kStressFlushCode);
942 bool inline IsFlushingDisabled(base::EnumSet<CodeFlushMode> mode) {
943 return mode.empty();
946 // Indicates whether a script should be parsed and compiled in REPL mode.
992 inline size_t hash_value(InlineCacheState mode) { return bit_cast<int>(mode); }
1112 inline size_t hash_value(ConvertReceiverMode mode) {
1113 return bit_cast<unsigned>(mode);
1116 inline std::ostream& operator<<(std::ostream& os, ConvertReceiverMode mode) {
1117 switch (mode) {
1261 // any mode other than kPrivateGetterOnly. Transition to
1266 // any mode other than kPrivateSetterOnly. Transition to
1278 inline const char* VariableMode2String(VariableMode mode) {
1279 switch (mode) {
1315 inline bool IsDynamicVariableMode(VariableMode mode) {
1316 return mode >= VariableMode::kDynamic && mode <= VariableMode::kDynamicLocal;
1319 inline bool IsDeclaredVariableMode(VariableMode mode) {
1321 0); // Implies that mode >= VariableMode::kLet.
1322 return mode <= VariableMode::kVar;
1325 inline bool IsPrivateMethodOrAccessorVariableMode(VariableMode mode) {
1326 return mode >= VariableMode::kPrivateMethod &&
1327 mode <= VariableMode::kPrivateGetterAndSetter;
1330 inline bool IsSerializableVariableMode(VariableMode mode) {
1331 return IsDeclaredVariableMode(mode) ||
1332 IsPrivateMethodOrAccessorVariableMode(mode);
1335 inline bool IsConstVariableMode(VariableMode mode) {
1336 return mode == VariableMode::kConst ||
1337 IsPrivateMethodOrAccessorVariableMode(mode);
1340 inline bool IsLexicalVariableMode(VariableMode mode) {
1342 0); // Implies that mode >= VariableMode::kLet.
1343 return mode <= VariableMode::kLastLexicalVariableMode;
1424 inline size_t hash_value(InterpreterPushArgsMode mode) {
1425 return bit_cast<unsigned>(mode);
1429 InterpreterPushArgsMode mode) {
1430 switch (mode) {
1690 constexpr bool IsSynchronous(ConcurrencyMode mode) {
1691 return mode == ConcurrencyMode::kSynchronous;
1693 constexpr bool IsConcurrent(ConcurrencyMode mode) {
1694 return mode == ConcurrencyMode::kConcurrent;
1697 constexpr const char* ToString(ConcurrencyMode mode) {
1698 switch (mode) {
1705 inline std::ostream& operator<<(std::ostream& os, ConcurrencyMode mode) {
1706 return os << ToString(mode);