Flutter Engine
The Flutter Engine
Namespaces | Macros | Functions
il_test_helper.cc File Reference
#include "vm/compiler/backend/il_test_helper.h"
#include "vm/compiler/aot/aot_call_specializer.h"
#include "vm/compiler/assembler/disassembler.h"
#include "vm/compiler/backend/block_scheduler.h"
#include "vm/compiler/backend/flow_graph.h"
#include "vm/compiler/backend/flow_graph_compiler.h"
#include "vm/compiler/backend/il.h"
#include "vm/compiler/backend/il_printer.h"
#include "vm/compiler/backend/inliner.h"
#include "vm/compiler/call_specializer.h"
#include "vm/compiler/compiler_pass.h"
#include "vm/compiler/jit/compiler.h"
#include "vm/compiler/jit/jit_call_specializer.h"
#include "vm/dart_api_impl.h"
#include "vm/flags.h"
#include "vm/parser.h"
#include "vm/unit_test.h"

Go to the source code of this file.

Namespaces

namespace  dart
 

Macros

#define EMIT_CASE(Instruction, _)
 
#define EMIT_CASE(Instruction, _)
 

Functions

LibraryPtr dart::LoadTestScript (const char *script, Dart_NativeEntryResolver resolver, const char *lib_uri)
 
LibraryPtr dart::ReloadTestScript (const char *script)
 
FunctionPtr dart::GetFunction (const Library &lib, const char *name)
 
ClassPtr dart::GetClass (const Library &lib, const char *name)
 
TypeParameterPtr dart::GetClassTypeParameter (const Class &klass, intptr_t index)
 
TypeParameterPtr dart::GetFunctionTypeParameter (const Function &fun, intptr_t index)
 
ObjectPtr dart::Invoke (const Library &lib, const char *name)
 
InstructionsPtr dart::BuildInstructions (std::function< void(compiler::Assembler *assembler)> fun)
 

Macro Definition Documentation

◆ EMIT_CASE [1/2]

#define EMIT_CASE (   Instruction,
 
)
Value:
case kMatch##Instruction: { \
if (cursor->Is##Instruction()) { \
return cursor; \
} \
return nullptr; \
} \
case kMatchAndMove##Instruction: { \
if (cursor->Is##Instruction()) { \
return cursor->next(); \
} \
return nullptr; \
} \
case kMatchAndMoveOptional##Instruction: { \
if (cursor->Is##Instruction()) { \
return cursor->next(); \
} \
return cursor; \
}

◆ EMIT_CASE [2/2]

#define EMIT_CASE (   Instruction,
 
)
Value:
case kMatch##Instruction: \
return "kMatch" #Instruction; \
case kMatchAndMove##Instruction: \
return "kMatchAndMove" #Instruction; \
case kMatchAndMoveOptional##Instruction: \
return "kMatchAndMoveOptional" #Instruction;