Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1755)

Unified Diff: runtime/vm/dart_entry_test.cc

Issue 12315087: Hook up simulator (if needed) when calling Dart code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/dart_entry.cc ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/dart_entry_test.cc
===================================================================
--- runtime/vm/dart_entry_test.cc (revision 18992)
+++ runtime/vm/dart_entry_test.cc (working copy)
@@ -40,7 +40,7 @@
EXPECT(CompilerTest::TestCompileFunction(function));
EXPECT(function.HasCode());
const Smi& retval = Smi::Handle(reinterpret_cast<RawSmi*>(
- DartEntry::InvokeStatic(function, Object::empty_array())));
+ DartEntry::InvokeFunction(function, Object::empty_array())));
EXPECT_EQ(Smi::New(42), retval.raw());
}
@@ -66,7 +66,7 @@
EXPECT(!function.IsNull());
GrowableArray<const Object*> arguments;
const Object& retval = Object::Handle(
- DartEntry::InvokeStatic(function, Object::empty_array()));
+ DartEntry::InvokeFunction(function, Object::empty_array()));
EXPECT(retval.IsError());
EXPECT_SUBSTRING("++++", Error::Cast(retval).ToErrorCString());
}
@@ -99,7 +99,7 @@
Function& constructor =
Function::Handle(cls.LookupConstructor(constructor_name));
ASSERT(!constructor.IsNull());
- DartEntry::InvokeStatic(constructor, constructor_arguments);
+ DartEntry::InvokeFunction(constructor, constructor_arguments);
// Call foo.
String& name = String::Handle(String::New("foo"));
@@ -107,8 +107,8 @@
EXPECT(!function.IsNull());
const Array& args = Array::Handle(Array::New(1));
args.SetAt(0, instance);
- const Object& retval = Object::Handle(DartEntry::InvokeDynamic(function,
- args));
+ const Object& retval = Object::Handle(DartEntry::InvokeFunction(function,
+ args));
EXPECT(retval.IsError());
EXPECT_SUBSTRING("++++", Error::Cast(retval).ToErrorCString());
}
« no previous file with comments | « runtime/vm/dart_entry.cc ('k') | runtime/vm/debugger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698