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

Unified Diff: vm/dart_entry.cc

Issue 11087070: - Get rid of RawClosure class and use RawInstance for closures. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: Created 8 years, 2 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 | « vm/dart_entry.h ('k') | vm/object.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/dart_entry.cc
===================================================================
--- vm/dart_entry.cc (revision 13564)
+++ vm/dart_entry.cc (working copy)
@@ -83,15 +83,15 @@
RawObject* DartEntry::InvokeClosure(
- const Closure& closure,
+ const Instance& closure,
const GrowableArray<const Object*>& arguments,
const Array& optional_arguments_names) {
// Get the entrypoint corresponding to the closure specified, this
// will result in a compilation of the closure if it is not already
// compiled.
ASSERT(Class::Handle(closure.clazz()).signature_function() != Object::null());
- const Function& function = Function::Handle(closure.function());
- const Context& context = Context::Handle(closure.context());
+ const Function& function = Function::Handle(Closure::function(closure));
+ const Context& context = Context::Handle(Closure::context(closure));
ASSERT(!function.IsNull());
if (!function.HasCode()) {
const Error& error = Error::Handle(Compiler::CompileFunction(function));
« no previous file with comments | « vm/dart_entry.h ('k') | vm/object.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698