Flutter Engine
The Flutter Engine
Static Public Member Functions | List of all members
dart::RangeUtils Class Reference

#include <range_analysis.h>

Inheritance diagram for dart::RangeUtils:
dart::AllStatic

Static Public Member Functions

static bool Fits (Range *range, RangeBoundary::RangeSize size)
 
static bool IsWithin (const Range *range, int64_t min, int64_t max)
 
static bool IsWithin (const Range *range, const Range *other)
 
static bool IsPositive (Range *range)
 
static bool IsNegative (Range *range)
 
static bool Overlaps (Range *range, intptr_t min, intptr_t max)
 
static bool CanBeZero (Range *range)
 
static bool OnlyLessThanOrEqualTo (Range *range, intptr_t value)
 
static bool IsSingleton (Range *range)
 

Detailed Description

Definition at line 493 of file range_analysis.h.

Member Function Documentation

◆ CanBeZero()

static bool dart::RangeUtils::CanBeZero ( Range range)
inlinestatic

Definition at line 518 of file range_analysis.h.

518{ return Overlaps(range, 0, 0); }
static bool Overlaps(Range *range, intptr_t min, intptr_t max)

◆ Fits()

static bool dart::RangeUtils::Fits ( Range range,
RangeBoundary::RangeSize  size 
)
inlinestatic

Definition at line 495 of file range_analysis.h.

495 {
496 return !Range::IsUnknown(range) && range->Fits(size);
497 }
static bool IsUnknown(const Range *other)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259

◆ IsNegative()

static bool dart::RangeUtils::IsNegative ( Range range)
inlinestatic

Definition at line 510 of file range_analysis.h.

510 {
511 return !Range::IsUnknown(range) && range->IsNegative();
512 }

◆ IsPositive()

static bool dart::RangeUtils::IsPositive ( Range range)
inlinestatic

Definition at line 507 of file range_analysis.h.

507 {
508 return !Range::IsUnknown(range) && range->IsPositive();
509 }

◆ IsSingleton()

static bool dart::RangeUtils::IsSingleton ( Range range)
inlinestatic

Definition at line 524 of file range_analysis.h.

524 {
525 return !Range::IsUnknown(range) && range->IsSingleton();
526 }

◆ IsWithin() [1/2]

static bool dart::RangeUtils::IsWithin ( const Range range,
const Range other 
)
inlinestatic

Definition at line 503 of file range_analysis.h.

503 {
504 return !Range::IsUnknown(range) && range->IsWithin(other);
505 }

◆ IsWithin() [2/2]

static bool dart::RangeUtils::IsWithin ( const Range range,
int64_t  min,
int64_t  max 
)
inlinestatic

Definition at line 499 of file range_analysis.h.

499 {
500 return !Range::IsUnknown(range) && range->IsWithin(min, max);
501 }
static float max(float r, float g, float b)
Definition: hsl.cpp:49
static float min(float r, float g, float b)
Definition: hsl.cpp:48

◆ OnlyLessThanOrEqualTo()

static bool dart::RangeUtils::OnlyLessThanOrEqualTo ( Range range,
intptr_t  value 
)
inlinestatic

Definition at line 520 of file range_analysis.h.

520 {
521 return !Range::IsUnknown(range) && range->OnlyLessThanOrEqualTo(value);
522 }
uint8_t value

◆ Overlaps()

static bool dart::RangeUtils::Overlaps ( Range range,
intptr_t  min,
intptr_t  max 
)
inlinestatic

Definition at line 514 of file range_analysis.h.

514 {
515 return Range::IsUnknown(range) || range->Overlaps(min, max);
516 }

The documentation for this class was generated from the following file: