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

Unified Diff: runtime/vm/code_generator.cc

Issue 21067002: Simplify allocation stub for closures. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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
Index: runtime/vm/code_generator.cc
===================================================================
--- runtime/vm/code_generator.cc (revision 25558)
+++ runtime/vm/code_generator.cc (working copy)
@@ -289,22 +289,6 @@
}
-// Allocate a new implicit static closure.
-// Arg0: local function.
-// Return value: newly allocated closure.
-DEFINE_RUNTIME_ENTRY(AllocateImplicitStaticClosure, 1) {
- ASSERT(arguments.ArgCount() ==
- kAllocateImplicitStaticClosureRuntimeEntry.argument_count());
- ObjectStore* object_store = isolate->object_store();
- ASSERT(object_store != NULL);
- const Function& function = Function::CheckedHandle(arguments.ArgAt(0));
- ASSERT(!function.IsNull());
- ASSERT(function.IsImplicitStaticClosureFunction());
- const Context& context = Context::Handle(object_store->empty_context());
- arguments.SetReturn(Instance::Handle(Closure::New(function, context)));
-}
-
-
// Allocate a new implicit instance closure.
// Arg0: local function.
// Arg1: receiver object.

Powered by Google App Engine
This is Rietveld 408576698