Flutter Engine
The Flutter Engine
Classes | Namespaces | Macros | Enumerations | Functions | Variables
type_testing_stubs_test.cc File Reference
#include <functional>
#include "platform/assert.h"
#include "vm/class_finalizer.h"
#include "vm/compiler/assembler/disassembler.h"
#include "vm/compiler/backend/flow_graph_compiler.h"
#include "vm/compiler/backend/il_test_helper.h"
#include "vm/flags.h"
#include "vm/lockers.h"
#include "vm/stack_frame.h"
#include "vm/symbols.h"
#include "vm/type_testing_stubs.h"
#include "vm/unit_test.h"
#include "vm/zone_text_buffer.h"

Go to the source code of this file.

Classes

class  dart::TraceStubInvocationScope
 
struct  dart::TTSTestCase
 
class  dart::TTSTestState
 

Namespaces

namespace  dart
 

Macros

#define __   assembler->
 
#define FILE_RESOLVE_URI(Uri)   "file:///" Uri
 
#define FIRST_PARTIAL_LIBRARY_NAME   "test-lib"
 
#define SECOND_PARTIAL_LIBRARY_NAME   "test-lib-2"
 
#define THIRD_PARTIAL_LIBRARY_NAME   "test-lib-3"
 

Enumerations

enum  dart::TTSTestResult {
  dart::kFail , dart::kTTS , dart::kExistingSTCEntry , dart::kNewSTCEntry ,
  dart::kRuntimeCheck , dart::kSpecialize , dart::kRespecialize , dart::kNumTestResults
}
 

Functions

 dart::DECLARE_FLAG (int, max_subtype_cache_entries)
 
 dart::DEFINE_FLAG (bool, trace_type_testing_stub_tests, false, "Trace type testing stub tests")
 
 dart::DEFINE_FLAG (bool, print_type_testing_stub_test_headers, true, "Print headers for executed type testing stub tests")
 
static void dart::GenerateInvokeTTSStub (compiler::Assembler *assembler)
 
static void dart::FinalizeAndCanonicalize (AbstractType *type)
 
static void dart::CanonicalizeTAV (TypeArguments *tav)
 
static TTSTestCase dart::Failure (const TTSTestCase &original)
 
static TTSTestCase dart::STCCheck (const TTSTestCase &original)
 
static TTSTestCase dart::FalseNegative (const TTSTestCase &original)
 
static TTSTestCase dart::RuntimeCheck (const TTSTestCase &original)
 
static TTSTestCase dart::Respecialization (const TTSTestCase &original)
 
static void dart::RunTTSTest (const AbstractType &dst_type, const TTSTestCase &test_case, bool should_specialize=true)
 
 dart::ISOLATE_UNIT_TEST_CASE (TTS_SubtypeRangeCheck)
 
 dart::ISOLATE_UNIT_TEST_CASE (TTS_GenericSubtypeRangeCheck)
 
 dart::ISOLATE_UNIT_TEST_CASE (TTS_RecordSubtypeRangeCheck)
 
 dart::ISOLATE_UNIT_TEST_CASE (TTS_Generic_Implements_Instantiated_Interface)
 
 dart::ISOLATE_UNIT_TEST_CASE (TTS_Future)
 
 dart::ISOLATE_UNIT_TEST_CASE (TTS_Regress40964)
 
 dart::ISOLATE_UNIT_TEST_CASE (TTS_TypeParameter)
 
 dart::ISOLATE_UNIT_TEST_CASE (TTS_Smi)
 
 dart::ISOLATE_UNIT_TEST_CASE (TTS_Int)
 
 dart::ISOLATE_UNIT_TEST_CASE (TTS_Num)
 
 dart::ISOLATE_UNIT_TEST_CASE (TTS_Double)
 
 dart::ISOLATE_UNIT_TEST_CASE (TTS_Object)
 
 dart::ISOLATE_UNIT_TEST_CASE (TTS_Function)
 
 dart::ISOLATE_UNIT_TEST_CASE (TTS_Partial)
 
 dart::ISOLATE_UNIT_TEST_CASE (TTS_Partial_Incremental)
 

Variables

static const char * dart::kTestResultStrings []
 
const char * dart::kSubtypeRangeCheckScript
 
const char * dart::kRecordSubtypeRangeCheckScript
 

Macro Definition Documentation

◆ __

#define __   assembler->

Definition at line 67 of file type_testing_stubs_test.cc.

◆ FILE_RESOLVE_URI

#define FILE_RESOLVE_URI (   Uri)    "file:///" Uri

◆ FIRST_PARTIAL_LIBRARY_NAME

#define FIRST_PARTIAL_LIBRARY_NAME   "test-lib"

◆ SECOND_PARTIAL_LIBRARY_NAME

#define SECOND_PARTIAL_LIBRARY_NAME   "test-lib-2"

◆ THIRD_PARTIAL_LIBRARY_NAME

#define THIRD_PARTIAL_LIBRARY_NAME   "test-lib-3"