Flutter Engine
The Flutter Engine
Classes | Namespaces | Macros | Functions | Variables
object_test.cc File Reference
#include <limits>
#include <memory>
#include "include/dart_api.h"
#include "bin/builtin.h"
#include "bin/vmservice_impl.h"
#include "platform/globals.h"
#include "vm/class_finalizer.h"
#include "vm/closure_functions_cache.h"
#include "vm/code_descriptors.h"
#include "vm/compiler/assembler/assembler.h"
#include "vm/compiler/backend/il_test_helper.h"
#include "vm/compiler/compiler_state.h"
#include "vm/compiler/runtime_api.h"
#include "vm/dart_api_impl.h"
#include "vm/dart_entry.h"
#include "vm/debugger.h"
#include "vm/debugger_api_impl_test.h"
#include "vm/flags.h"
#include "vm/isolate.h"
#include "vm/message_handler.h"
#include "vm/object.h"
#include "vm/object_store.h"
#include "vm/resolver.h"
#include "vm/simulator.h"
#include "vm/symbols.h"
#include "vm/tagged_pointer.h"
#include "vm/unit_test.h"
#include "vm/zone_text_buffer.h"

Go to the source code of this file.

Classes

class  dart::CodeTestHelper
 
class  dart::ToggleBreakpointTask
 
class  dart::ObjectAccumulator
 
struct  dart::TestResult
 

Namespaces

namespace  dart
 

Macros

#define Z   (thread->zone())
 
#define FINALIZER_CROSS_GEN_TEST_CASE(n)
 
#define REPEAT_512(V)
 
#define FINALIZER_NATIVE_CROSS_GEN_TEST_CASE(n)
 
#define EXPECT_SUBTYPE(sub, super)    CheckSubtypeRelation(Expect(__FILE__, __LINE__), sub, super, true);
 
#define EXPECT_NOT_SUBTYPE(sub, super)    CheckSubtypeRelation(Expect(__FILE__, __LINE__), sub, super, false);
 
#define EXPECT_TYPES_EQUAL(expected, got)
 
#define EXPECT_TYPES_SYNTACTICALLY_EQUIVALENT(expected, got)
 
#define __   assembler->
 
#define USED_INPUT_CASE(Input, ExpectedCids)
 

Functions

 dart::DECLARE_FLAG (bool, write_protect_code)
 
static ClassPtr dart::CreateDummyClass (const String &class_name, const Script &script)
 
 dart::ISOLATE_UNIT_TEST_CASE (Class)
 
 dart::ISOLATE_UNIT_TEST_CASE (SixtyThousandDartClasses)
 
 dart::ISOLATE_UNIT_TEST_CASE (TypeArguments)
 
 dart::TEST_CASE (Class_EndTokenPos)
 
 dart::ISOLATE_UNIT_TEST_CASE (InstanceClass)
 
 dart::ISOLATE_UNIT_TEST_CASE (Smi)
 
 dart::ISOLATE_UNIT_TEST_CASE (StringCompareTo)
 
 dart::ISOLATE_UNIT_TEST_CASE (StringEncodeIRI)
 
 dart::ISOLATE_UNIT_TEST_CASE (StringDecodeIRI)
 
 dart::ISOLATE_UNIT_TEST_CASE (StringDecodeIRIInvalid)
 
 dart::ISOLATE_UNIT_TEST_CASE (StringIRITwoByte)
 
 dart::ISOLATE_UNIT_TEST_CASE (Mint)
 
 dart::ISOLATE_UNIT_TEST_CASE (Double)
 
 dart::ISOLATE_UNIT_TEST_CASE (Integer)
 
 dart::ISOLATE_UNIT_TEST_CASE (String)
 
 dart::ISOLATE_UNIT_TEST_CASE (StringFormat)
 
 dart::ISOLATE_UNIT_TEST_CASE (StringConcat)
 
 dart::ISOLATE_UNIT_TEST_CASE (StringHashConcat)
 
 dart::ISOLATE_UNIT_TEST_CASE (StringSubStringDifferentWidth)
 
 dart::ISOLATE_UNIT_TEST_CASE (StringFromUtf8Literal)
 
 dart::ISOLATE_UNIT_TEST_CASE (StringEqualsUtf8)
 
 dart::ISOLATE_UNIT_TEST_CASE (StringEqualsUTF32)
 
 dart::ISOLATE_UNIT_TEST_CASE (EscapeSpecialCharactersOneByteString)
 
 dart::ISOLATE_UNIT_TEST_CASE (EscapeSpecialCharactersTwoByteString)
 
 dart::ISOLATE_UNIT_TEST_CASE (Symbol)
 
 dart::ISOLATE_UNIT_TEST_CASE (SymbolUnicode)
 
 dart::ISOLATE_UNIT_TEST_CASE (Bool)
 
 dart::ISOLATE_UNIT_TEST_CASE (Array)
 
 dart::ISOLATE_UNIT_TEST_CASE (Array_Grow)
 
 dart::ISOLATE_UNIT_TEST_CASE (EmptyInstantiationsCacheArray)
 
static void dart::TestIllegalArrayLength (intptr_t length)
 
 dart::TEST_CASE (ArrayLengthNegativeOne)
 
 dart::TEST_CASE (ArrayLengthSmiMin)
 
 dart::TEST_CASE (ArrayLengthOneTooMany)
 
 dart::TEST_CASE (ArrayLengthMaxElements)
 
static void dart::TestIllegalTypedDataLength (const char *class_name, intptr_t length)
 
 dart::TEST_CASE (Int8ListLengthNegativeOne)
 
 dart::TEST_CASE (Int8ListLengthSmiMin)
 
 dart::TEST_CASE (Int8ListLengthOneTooMany)
 
 dart::TEST_CASE (Int8ListLengthMaxElements)
 
 dart::ISOLATE_UNIT_TEST_CASE (StringCodePointIterator)
 
 dart::ISOLATE_UNIT_TEST_CASE (StringCodePointIteratorRange)
 
 dart::ISOLATE_UNIT_TEST_CASE (GrowableObjectArray)
 
 dart::ISOLATE_UNIT_TEST_CASE (TypedData_Grow)
 
 dart::ISOLATE_UNIT_TEST_CASE (InternalTypedData)
 
 dart::ISOLATE_UNIT_TEST_CASE (ExternalTypedData)
 
 dart::ISOLATE_UNIT_TEST_CASE (Script)
 
 dart::ISOLATE_UNIT_TEST_CASE (Context)
 
 dart::ISOLATE_UNIT_TEST_CASE (ContextScope)
 
 dart::ISOLATE_UNIT_TEST_CASE (Closure)
 
 dart::ISOLATE_UNIT_TEST_CASE (ObjectPrinting)
 
 dart::ISOLATE_UNIT_TEST_CASE (CheckedHandle)
 
static LibraryPtr dart::CreateDummyLibrary (const String &library_name)
 
static FunctionPtr dart::CreateFunction (const char *name)
 
 dart::ISOLATE_UNIT_TEST_CASE (Code)
 
 dart::ISOLATE_UNIT_TEST_CASE_WITH_EXPECTATION (CodeImmutability, "Crash")
 
 dart::ISOLATE_UNIT_TEST_CASE (EmbedStringInCode)
 
 dart::ISOLATE_UNIT_TEST_CASE (EmbedSmiInCode)
 
 dart::ISOLATE_UNIT_TEST_CASE (ExceptionHandlers)
 
 dart::ISOLATE_UNIT_TEST_CASE (PcDescriptors)
 
 dart::ISOLATE_UNIT_TEST_CASE (PcDescriptorsLargeDeltas)
 
static ClassPtr dart::CreateTestClass (const char *name)
 
static FieldPtr dart::CreateTestField (const char *name)
 
 dart::ISOLATE_UNIT_TEST_CASE (ClassDictionaryIterator)
 
static FunctionPtr dart::GetDummyTarget (const char *name)
 
 dart::ISOLATE_UNIT_TEST_CASE (ICData)
 
 dart::ISOLATE_UNIT_TEST_CASE (SubtypeTestCache)
 
 dart::ISOLATE_UNIT_TEST_CASE (MegamorphicCache)
 
 dart::ISOLATE_UNIT_TEST_CASE (FieldTests)
 
bool dart::EqualsIgnoringPrivate (const String &name, const String &private_name)
 
 dart::ISOLATE_UNIT_TEST_CASE (EqualsIgnoringPrivate)
 
 dart::ISOLATE_UNIT_TEST_CASE_WITH_EXPECTATION (ArrayNew_Overflow_Crash, "Crash")
 
 dart::TEST_CASE (StackTraceFormat)
 
 dart::ISOLATE_UNIT_TEST_CASE (WeakProperty_PreserveRecurse)
 
 dart::ISOLATE_UNIT_TEST_CASE (WeakProperty_PreserveOne_NewSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (WeakProperty_PreserveTwo_NewSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (WeakProperty_PreserveTwoShared_NewSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (WeakProperty_PreserveOne_OldSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (WeakProperty_PreserveTwo_OldSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (WeakProperty_PreserveTwoShared_OldSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (WeakProperty_ClearOne_NewSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (WeakProperty_ClearTwoShared_NewSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (WeakProperty_ClearOne_OldSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (WeakProperty_ClearTwoShared_OldSpace)
 
static void dart::WeakReference_PreserveOne (Thread *thread, Heap::Space space)
 
 dart::ISOLATE_UNIT_TEST_CASE (WeakReference_PreserveOne_NewSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (WeakReference_PreserveOne_OldSpace)
 
static void dart::WeakReference_ClearOne (Thread *thread, Heap::Space space)
 
 dart::ISOLATE_UNIT_TEST_CASE (WeakReference_ClearOne_NewSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (WeakReference_ClearOne_OldSpace)
 
static void dart::WeakReference_Clear_ReachableThroughWeakProperty (Thread *thread, Heap::Space space)
 
 dart::ISOLATE_UNIT_TEST_CASE (WeakReference_Clear_ReachableThroughWeakProperty_NewSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (WeakReference_Clear_ReachableThroughWeakProperty_OldSpace)
 
static void dart::WeakReference_Preserve_ReachableThroughWeakProperty (Thread *thread, Heap::Space space)
 
 dart::ISOLATE_UNIT_TEST_CASE (WeakReference_Preserve_ReachableThroughWeakProperty_NewSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (WeakReference_Preserve_ReachableThroughWeakProperty_OldSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (WeakArray_New)
 
 dart::ISOLATE_UNIT_TEST_CASE (WeakArray_Old)
 
static int dart::NumEntries (const FinalizerEntry &entry, intptr_t acc=0)
 
static void dart::Finalizer_PreserveOne (Thread *thread, Heap::Space space, bool with_detach)
 
 dart::ISOLATE_UNIT_TEST_CASE (Finalizer_PreserveNoDetachOne_NewSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (Finalizer_PreserveNoDetachOne_OldSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (Finalizer_PreserveWithDetachOne_NewSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (Finalizer_PreserveWithDetachOne_OldSpace)
 
static void dart::Finalizer_ClearDetachOne (Thread *thread, Heap::Space space)
 
 dart::ISOLATE_UNIT_TEST_CASE (Finalizer_ClearDetachOne_NewSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (Finalizer_ClearDetachOne_OldSpace)
 
static void dart::Finalizer_ClearValueOne (Thread *thread, Heap::Space space, bool null_token)
 
 dart::ISOLATE_UNIT_TEST_CASE (Finalizer_ClearValueOne_NewSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (Finalizer_ClearValueOne_OldSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (Finalizer_ClearValueNullTokenOne_NewSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (Finalizer_ClearValueNullTokenOne_OldSpace)
 
static void dart::Finalizer_DetachOne (Thread *thread, Heap::Space space, bool clear_value)
 
 dart::ISOLATE_UNIT_TEST_CASE (Finalizer_DetachOne_NewSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (Finalizer_DetachOne_OldSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (Finalizer_DetachAndClearValueOne_NewSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (Finalizer_DetachAndClearValueOne_OldSpace)
 
static void dart::Finalizer_GcFinalizer (Thread *thread, Heap::Space space)
 
 dart::ISOLATE_UNIT_TEST_CASE (Finalizer_GcFinalizer_NewSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (Finalizer_GcFinalizer_OldSpace)
 
static void dart::Finalizer_TwoEntriesCrossGen (Thread *thread, Heap::Space *spaces, bool collect_old_space, bool collect_new_space, bool evacuate_new_space_and_collect_old_space, bool clear_value_1, bool clear_value_2, bool clear_detach_1, bool clear_detach_2)
 
static void dart::Finalizer_TwoEntries (Thread *thread, Heap::Space space, bool clear_value_1, bool clear_value_2, bool clear_detach_1, bool clear_detach_2)
 
 dart::ISOLATE_UNIT_TEST_CASE (Finalizer_ClearValueTwo_NewSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (Finalizer_ClearValueTwo_OldSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (Finalizer_ClearFirstValue_NewSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (Finalizer_ClearFirstValue_OldSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (Finalizer_ClearSecondValue_NewSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (Finalizer_ClearSecondValue_OldSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (Finalizer_PreserveTwo_NewSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (Finalizer_PreserveTwo_OldSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (Finalizer_ClearDetachTwo_NewSpace)
 
 dart::ISOLATE_UNIT_TEST_CASE (Finalizer_ClearDetachTwo_OldSpace)
 
static void dart::Finalizer_TwoEntriesCrossGen (Thread *thread, intptr_t test_i)
 
 dart::ISOLATE_UNIT_TEST_CASE (Finalizer_Regress_48843)
 
void dart::NativeFinalizer_TwoEntriesCrossGen_Finalizer (void *peer)
 
static void dart::NativeFinalizer_TwoEntriesCrossGen (Thread *thread, Heap::Space *spaces, bool collect_new_space, bool evacuate_new_space_and_collect_old_space, bool clear_value_1, bool clear_value_2, bool clear_detach_1, bool clear_detach_2)
 
static void dart::NativeFinalizer_TwoEntriesCrossGen (Thread *thread, intptr_t test_i)
 
 dart::TEST_CASE (IsIsolateUnsendable)
 
 dart::TEST_CASE (ImplementorCid)
 
 dart::ISOLATE_UNIT_TEST_CASE (MirrorReference)
 
static FunctionPtr dart::GetFunction (const Class &cls, const char *name)
 
static FunctionPtr dart::GetStaticFunction (const Class &cls, const char *name)
 
static FieldPtr dart::GetField (const Class &cls, const char *name)
 
 dart::ISOLATE_UNIT_TEST_CASE (FindClosureIndex)
 
 dart::ISOLATE_UNIT_TEST_CASE (FindInvocationDispatcherFunctionIndex)
 
static void dart::PrintMetadata (const char *name, const Object &data)
 
 dart::TEST_CASE (Metadata)
 
 dart::TEST_CASE (FunctionSourceFingerprint)
 
 dart::TEST_CASE (FunctionWithBreakpointNotInlined)
 
void dart::SetBreakpoint (Dart_NativeArguments args)
 
static Dart_NativeFunction dart::SetBreakpointResolver (Dart_Handle name, int argument_count, bool *auto_setup_scope)
 
 dart::TEST_CASE (DeoptimizeFramesWhenSettingBreakpoint)
 
 dart::TEST_CASE (DartAPI_BreakpointLockRace)
 
 dart::ISOLATE_UNIT_TEST_CASE (SpecialClassesHaveEmptyArrays)
 
 dart::ISOLATE_UNIT_TEST_CASE (ToCString)
 
 dart::ISOLATE_UNIT_TEST_CASE (PrintJSON)
 
 dart::ISOLATE_UNIT_TEST_CASE (PrintJSONPrimitives)
 
 dart::TEST_CASE (InstanceEquality)
 
 dart::TEST_CASE (HashCode)
 
static bool dart::HashCodeEqualsCanonicalizeHash (const char *value_script, uint32_t hashcode_canonicalize_vm=kCalculateCanonicalizeHash, bool check_identity=true, bool check_hashcode=true)
 
 dart::TEST_CASE (HashCode_Double)
 
 dart::TEST_CASE (HashCode_Mint)
 
 dart::TEST_CASE (HashCode_Null)
 
 dart::TEST_CASE (HashCode_Smi)
 
 dart::TEST_CASE (HashCode_String)
 
 dart::TEST_CASE (HashCode_Symbol)
 
 dart::TEST_CASE (HashCode_True)
 
 dart::TEST_CASE (HashCode_Type_Dynamic)
 
 dart::TEST_CASE (HashCode_Type_Int)
 
 dart::TEST_CASE (Map_iteration)
 
template<class LinkedHashBase >
static bool dart::LinkedHashBaseEqual (const LinkedHashBase &map1, const LinkedHashBase &map2, bool print_diff, bool check_data=true)
 
static MapPtr dart::ConstructImmutableMap (const Array &input_data, intptr_t used_data, const TypeArguments &type_arguments)
 
 dart::TEST_CASE (ConstMap_vm)
 
static bool dart::IsLinkedHashBase (const Object &object)
 
template<class LinkedHashBase , int kMutableCid, int kImmutableCid>
static void dart::HashBaseNonConstEqualsConst (const char *script, bool check_data=true)
 
static void dart::HashMapNonConstEqualsConst (const char *script, bool check_data=true)
 
static void dart::HashSetNonConstEqualsConst (const char *script, bool check_data=true)
 
 dart::TEST_CASE (ConstMap_small)
 
 dart::TEST_CASE (ConstMap_null)
 
 dart::TEST_CASE (ConstMap_larger)
 
 dart::TEST_CASE (ConstMap_nested)
 
 dart::TEST_CASE (Set_iteration)
 
static SetPtr dart::ConstructImmutableSet (const Array &input_data, intptr_t used_data, const TypeArguments &type_arguments)
 
 dart::TEST_CASE (ConstSet_vm)
 
 dart::TEST_CASE (ConstSet_small)
 
 dart::TEST_CASE (ConstSet_larger)
 
static void dart::CheckConcatAll (const String *data[], intptr_t n)
 
 dart::ISOLATE_UNIT_TEST_CASE (Symbols_FromConcatAll)
 
 dart::ISOLATE_UNIT_TEST_CASE (String_ScrubName)
 
 dart::ISOLATE_UNIT_TEST_CASE (String_EqualsUTF32)
 
 dart::TEST_CASE (TypeParameterTypeRef)
 
static void dart::FinalizeAndCanonicalize (AbstractType *type)
 
static void dart::CheckSubtypeRelation (const Expect &expect, const AbstractType &sub, const AbstractType &super, bool is_subtype)
 
 dart::ISOLATE_UNIT_TEST_CASE (ClosureType_SubtypeOfFunctionType)
 
 dart::ISOLATE_UNIT_TEST_CASE (FunctionType_IsSubtypeOfNonNullableObject)
 
static void dart::ExpectTypesEquivalent (const Expect &expect, const AbstractType &expected, const AbstractType &got, TypeEquality kind)
 
 dart::TEST_CASE (Class_GetInstantiationOf)
 
static TypePtr dart::CreateFutureOrType (const AbstractType &param, Nullability nullability)
 
static TypePtr dart::CreateFutureType (const AbstractType &param, Nullability nullability)
 
 dart::ISOLATE_UNIT_TEST_CASE (AbstractType_NormalizeFutureOrType)
 
 dart::TEST_CASE (AbstractType_InstantiatedFutureOrIsNormalized)
 
static void dart::GenerateInvokeInstantiateTAVStub (compiler::Assembler *assembler)
 
static CodePtr dart::CreateInvokeInstantiateTypeArgumentsStub (Thread *thread)
 
static void dart::TypeArgumentsHashCacheTest (Thread *thread, intptr_t num_classes)
 
 dart::TEST_CASE (TypeArguments_Cache_SomeInstantiations)
 
 dart::TEST_CASE (TypeArguments_Cache_ManyInstantiations)
 
static void dart::SubtypeTestCacheCheckContents (Zone *zone, const SubtypeTestCache &cache)
 
static void dart::SubtypeTestCacheEntryTest (Thread *thread, const SubtypeTestCache &cache, const Object &instance_class_id_or_signature, const AbstractType &destination_type, const TypeArguments &instance_type_arguments, const TypeArguments &instantiator_type_arguments, const TypeArguments &function_type_arguments, const TypeArguments &parent_function_type_arguments, const TypeArguments &delayed_type_arguments, const Bool &expected_result, Bool *got_result)
 
static void dart::SubtypeTestCacheTest (Thread *thread, intptr_t num_classes, bool expect_hash)
 
 dart::TEST_CASE (STC_LinearLookup)
 
 dart::TEST_CASE (STC_HashLookup)
 

Variables

const intptr_t dart::kFinalizerTwoEntriesNumObjects = 9
 
const uint32_t dart::kCalculateCanonicalizeHash = 0
 

Macro Definition Documentation

◆ __

#define __   assembler->

Definition at line 7873 of file object_test.cc.

◆ EXPECT_NOT_SUBTYPE

#define EXPECT_NOT_SUBTYPE (   sub,
  super 
)     CheckSubtypeRelation(Expect(__FILE__, __LINE__), sub, super, false);

Definition at line 7397 of file object_test.cc.

◆ EXPECT_SUBTYPE

#define EXPECT_SUBTYPE (   sub,
  super 
)     CheckSubtypeRelation(Expect(__FILE__, __LINE__), sub, super, true);

Definition at line 7395 of file object_test.cc.

◆ EXPECT_TYPES_EQUAL

#define EXPECT_TYPES_EQUAL (   expected,
  got 
)
Value:
ExpectTypesEquivalent(Expect(__FILE__, __LINE__), expected, got, \
TypeEquality::kCanonical);
static void ExpectTypesEquivalent(const Expect &expect, const AbstractType &expected, const AbstractType &got, TypeEquality kind)

Definition at line 7483 of file object_test.cc.

◆ EXPECT_TYPES_SYNTACTICALLY_EQUIVALENT

#define EXPECT_TYPES_SYNTACTICALLY_EQUIVALENT (   expected,
  got 
)
Value:
ExpectTypesEquivalent(Expect(__FILE__, __LINE__), expected, got, \
TypeEquality::kSyntactical);

Definition at line 7571 of file object_test.cc.

◆ FINALIZER_CROSS_GEN_TEST_CASE

#define FINALIZER_CROSS_GEN_TEST_CASE (   n)
Value:
ISOLATE_UNIT_TEST_CASE(Finalizer_CrossGen_##n) { \
Finalizer_TwoEntriesCrossGen(thread, n); \
}
#define ISOLATE_UNIT_TEST_CASE(name)
Definition: unit_test.h:64

Definition at line 4334 of file object_test.cc.

◆ FINALIZER_NATIVE_CROSS_GEN_TEST_CASE

#define FINALIZER_NATIVE_CROSS_GEN_TEST_CASE (   n)
Value:
ISOLATE_UNIT_TEST_CASE(NativeFinalizer_CrossGen_##n) { \
NativeFinalizer_TwoEntriesCrossGen(thread, n); \
}

Definition at line 5115 of file object_test.cc.

◆ REPEAT_512

#define REPEAT_512 (   V)

Definition at line 4339 of file object_test.cc.

◆ USED_INPUT_CASE

#define USED_INPUT_CASE (   Input,
  ExpectedCids 
)
Value:
case (Input) + 1: { \
RELEASE_ASSERT((Input) + 1 == check_ordering); \
const intptr_t cid = \
array.At(entry_start + (Input))->GetClassIdMayBeSmi(); \
if (!(ExpectedCids)) { \
FAIL("expected: " #ExpectedCids ", got: cid %" Pd "", cid); \
} \
--check_ordering; \
}
const intptr_t cid
#define Pd
Definition: globals.h:408

◆ Z

#define Z   (thread->zone())

Definition at line 40 of file object_test.cc.