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

Unified Diff: dart/sdk/lib/_internal/compiler/implementation/js_emitter/closure_invocation_element.dart

Issue 103863004: Revert "Generate tear-off closures dynamically." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years 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: dart/sdk/lib/_internal/compiler/implementation/js_emitter/closure_invocation_element.dart
diff --git a/dart/sdk/lib/_internal/compiler/implementation/js_emitter/closure_invocation_element.dart b/dart/sdk/lib/_internal/compiler/implementation/js_emitter/closure_invocation_element.dart
new file mode 100644
index 0000000000000000000000000000000000000000..0b891d0b943a3bd8014dc15b8683c69a649f7427
--- /dev/null
+++ b/dart/sdk/lib/_internal/compiler/implementation/js_emitter/closure_invocation_element.dart
@@ -0,0 +1,25 @@
+// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
+// for details. All rights reserved. Use of this source code is governed by a
+// BSD-style license that can be found in the LICENSE file.
+
+part of dart2js.js_emitter;
+
+/**
+ * A function element that represents a closure call. The signature is copied
+ * from the given element.
+ */
+class ClosureInvocationElement extends FunctionElementX {
+ ClosureInvocationElement(String name,
+ FunctionElement other)
+ : super.from(name, other, other.enclosingElement),
+ methodElement = other;
+
+ isInstanceMember() => true;
+
+ Element getOutermostEnclosingMemberOrTopLevel() => methodElement;
+
+ /**
+ * The [member] this invocation refers to.
+ */
+ Element methodElement;
+}

Powered by Google App Engine
This is Rietveld 408576698