Index: vm/resolver_test.cc |
=================================================================== |
--- vm/resolver_test.cc (revision 16285) |
+++ vm/resolver_test.cc (working copy) |
@@ -108,14 +108,13 @@ |
kNoArgumentNames, |
kResolveType)); |
EXPECT(!function.IsNull()); |
- GrowableArray<const Object*> arguments(2); |
+ const Array& args = Array::Handle(Array::New(kNumArguments)); |
const String& arg0 = String::Handle(String::New("junk")); |
- arguments.Add(&arg0); |
+ args.SetAt(0, arg0); |
const Smi& arg1 = Smi::Handle(Smi::New(kTestValue)); |
- arguments.Add(&arg1); |
+ args.SetAt(1, arg1); |
const Smi& retval = Smi::Handle( |
- reinterpret_cast<RawSmi*>( |
- DartEntry::InvokeStatic(function, arguments, kNoArgumentNames))); |
+ reinterpret_cast<RawSmi*>(DartEntry::InvokeStatic(function, args))); |
EXPECT_EQ(kTestValue, retval.Value()); |
} |
@@ -185,17 +184,14 @@ |
kNumPositionalArguments, |
kNumNamedArguments)); |
EXPECT(!function.IsNull()); |
- GrowableArray<const Object*> arguments; |
+ const Array& args = Array::Handle(Array::New(kNumPositionalArguments)); |
+ args.SetAt(0, receiver); |
const String& arg0 = String::Handle(String::New("junk")); |
- arguments.Add(&arg0); |
+ args.SetAt(1, arg0); |
const Smi& arg1 = Smi::Handle(Smi::New(kTestValue)); |
- arguments.Add(&arg1); |
- const Array& kNoArgumentNames = Array::Handle(); |
+ args.SetAt(2, arg1); |
const Smi& retval = Smi::Handle( |
- reinterpret_cast<RawSmi*>(DartEntry::InvokeDynamic(receiver, |
- function, |
- arguments, |
- kNoArgumentNames))); |
+ reinterpret_cast<RawSmi*>(DartEntry::InvokeDynamic(function, args))); |
EXPECT_EQ(kTestValue, retval.Value()); |
} |