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

#include <call_specializer.h>

Inheritance diagram for dart::TypedDataSpecializer:
dart::FlowGraphVisitor dart::InstructionVisitor dart::ValueObject

Public Member Functions

virtual void VisitInstanceCall (InstanceCallInstr *instr)
 
virtual void VisitStaticCall (StaticCallInstr *instr)
 
- Public Member Functions inherited from dart::FlowGraphVisitor
 FlowGraphVisitor (const GrowableArray< BlockEntryInstr * > &block_order)
 
virtual ~FlowGraphVisitor ()
 
ForwardInstructionIteratorcurrent_iterator () const
 
virtual void VisitBlocks ()
 
- Public Member Functions inherited from dart::InstructionVisitor
 InstructionVisitor ()
 
virtual ~InstructionVisitor ()
 
- Public Member Functions inherited from dart::ValueObject
 ValueObject ()
 
 ~ValueObject ()
 

Static Public Member Functions

static void Optimize (FlowGraph *flow_graph)
 

Additional Inherited Members

- Protected Member Functions inherited from dart::FlowGraphVisitor
void set_block_order (const GrowableArray< BlockEntryInstr * > &block_order)
 
- Protected Attributes inherited from dart::FlowGraphVisitor
ForwardInstructionIteratorcurrent_iterator_
 

Detailed Description

Definition at line 261 of file call_specializer.h.

Member Function Documentation

◆ Optimize()

void dart::TypedDataSpecializer::Optimize ( FlowGraph flow_graph)
static

Definition at line 1417 of file call_specializer.cc.

1417 {
1418 TypedDataSpecializer optimizer(flow_graph);
1419 optimizer.VisitBlocks();
1420}

◆ VisitInstanceCall()

void dart::TypedDataSpecializer::VisitInstanceCall ( InstanceCallInstr instr)
virtual

Definition at line 1452 of file call_specializer.cc.

1452 {
1453 TryInlineCall(call);
1454}
def call(args)
Definition: dom.py:159

◆ VisitStaticCall()

void dart::TypedDataSpecializer::VisitStaticCall ( StaticCallInstr instr)
virtual

Definition at line 1456 of file call_specializer.cc.

1456 {
1457 const Function& function = call->function();
1458 if (!function.is_static()) {
1459 ASSERT(call->ArgumentCount() > 0);
1460 TryInlineCall(call);
1461 }
1462}
#define ASSERT(E)
Dart_NativeFunction function
Definition: fuchsia.cc:51

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