Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | List of all members
dart::bin::KernelIRNode Class Reference

Public Member Functions

 KernelIRNode (uint8_t *kernel_ir, intptr_t kernel_size)
 
 ~KernelIRNode ()
 

Static Public Member Functions

static void Add (KernelIRNode **p_head, KernelIRNode **p_tail, KernelIRNode *node)
 
static void Merge (KernelIRNode *head, uint8_t **p_bytes, intptr_t *p_size)
 
static void Delete (KernelIRNode *head)
 

Detailed Description

Definition at line 309 of file dfe.cc.

Constructor & Destructor Documentation

◆ KernelIRNode()

dart::bin::KernelIRNode::KernelIRNode ( uint8_t *  kernel_ir,
intptr_t  kernel_size 
)
inline

Definition at line 311 of file dfe.cc.

312 : kernel_ir_(kernel_ir), kernel_size_(kernel_size) {}

◆ ~KernelIRNode()

dart::bin::KernelIRNode::~KernelIRNode ( )
inline

Definition at line 314 of file dfe.cc.

314{ free(kernel_ir_); }

Member Function Documentation

◆ Add()

static void dart::bin::KernelIRNode::Add ( KernelIRNode **  p_head,
KernelIRNode **  p_tail,
KernelIRNode node 
)
inlinestatic

Definition at line 316 of file dfe.cc.

318 {
319 if (*p_head == nullptr) {
320 *p_head = node;
321 } else {
322 (*p_tail)->next_ = node;
323 }
324 *p_tail = node;
325 }

◆ Delete()

static void dart::bin::KernelIRNode::Delete ( KernelIRNode head)
inlinestatic

Definition at line 345 of file dfe.cc.

345 {
346 KernelIRNode* node = head;
347 while (node != nullptr) {
348 KernelIRNode* next = node->next_;
349 delete (node);
350 node = next;
351 }
352 }
static float next(float f)
KernelIRNode(uint8_t *kernel_ir, intptr_t kernel_size)
Definition dfe.cc:311

◆ Merge()

static void dart::bin::KernelIRNode::Merge ( KernelIRNode head,
uint8_t **  p_bytes,
intptr_t *  p_size 
)
inlinestatic

Definition at line 327 of file dfe.cc.

327 {
328 intptr_t size = 0;
329 for (KernelIRNode* node = head; node != nullptr; node = node->next_) {
330 size = size + node->kernel_size_;
331 }
332
333 *p_bytes = reinterpret_cast<uint8_t*>(malloc(size));
334 uint8_t* p = *p_bytes;
335 KernelIRNode* node = head;
336 while (node != nullptr) {
337 memmove(p, node->kernel_ir_, node->kernel_size_);
338 p += node->kernel_size_;
339 KernelIRNode* next = node->next_;
340 node = next;
341 }
342 *p_size = size;
343 }
void * malloc(size_t size)
Definition allocation.cc:19
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

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