15 const char* field_name) {
31 const char* script_chars =
35 " var f3 = List<dynamic>.filled(4, null);\n"
47 " for (int i = 0; i < 2000; i++) {\n"
54 " for (int i = 0; i < 2000; i++) {\n"
59 " for (int i = 0; i < 100; i++) {\n"
82 const char* script_chars =
86 " final f3 = List<dynamic>.filled(4, null);\n"
98 " for (int i = 0; i < 2000; i++) {\n"
105 " for (int i = 0; i < 2000; i++) {\n"
110 " for (int i = 0; i < 100; i++) {\n"
135 const char* script_chars =
139 " final f3 = List.empty(growable: true);\n"
151 " for (int i = 0; i < 2000; i++) {\n"
158 " for (int i = 0; i < 2000; i++) {\n"
163 " for (int i = 0; i < 100; i++) {\n"
183 EXPECT_EQ(kGrowableObjectArrayCid, f3.
guarded_cid());
188 const char* script_chars =
189 "import 'dart:typed_data';\n"
205 " var l = new Float32List(5);\n"
206 " for (int i = 0; i < 2000; i++) {\n"
207 " var a = new A(l);\n"
213 " var l = new Float32List(5);\n"
214 " var a = new A(l);\n"
215 " for (int i = 0; i < 2000; i++) {\n"
220 " for (int i = 0; i < 100; i++) {\n"
239 const intptr_t
length = 5;
241 EXPECT_EQ(kTypedDataFloat32ArrayCid, f3.
guarded_cid());
246 const char* script_chars =
247 "import 'dart:typed_data';\n"
258 " var l = new Float32List(5);\n"
259 " for (int i = 0; i < 2000; i++) {\n"
260 " var a = new A(l);\n"
265 " var l = new Float32List(99);\n"
266 " var a = new A(l);\n"
269 " for (int i = 0; i < 100; i++) {\n"
281 EXPECT_EQ(kTypedDataFloat32ArrayCid, f3.
guarded_cid());
static ObjectPtr UnwrapHandle(Dart_Handle object)
FieldPtr LookupInstanceFieldAllowPrivate(const String &name) const
intptr_t guarded_cid() const
intptr_t guarded_list_length() const
ClassPtr LookupClass(const String &name) const
static ObjectPtr RawCast(ObjectPtr obj)
static Object & ZoneHandle()
static StringPtr New(const char *cstr, Heap::Space space=Heap::kNew)
static StringPtr New(Thread *thread, const char *cstr)
static Dart_Handle LoadTestScript(const char *script, Dart_NativeEntryResolver resolver, const char *lib_uri=RESOLVED_USER_TEST_URI, bool finalize=true, bool allow_compile_errors=false)
static Thread * Current()
struct _Dart_Handle * Dart_Handle
FieldPtr LookupField(Dart_Handle library, const char *class_name, const char *field_name)
DART_EXPORT Dart_Handle Dart_Invoke(Dart_Handle target, Dart_Handle name, int number_of_arguments, Dart_Handle *arguments)
const char *const class_name
TEST_CASE(DirectoryCurrent)
Dart_Handle NewString(const char *str)
#define EXPECT_VALID(handle)