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

Unified Diff: sdk/lib/_internal/compiler/implementation/elements/elements.dart

Issue 57873002: Build new IR for functions returning a constant (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: type inference and inlining for new ir nodes Created 7 years, 1 month 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: sdk/lib/_internal/compiler/implementation/elements/elements.dart
diff --git a/sdk/lib/_internal/compiler/implementation/elements/elements.dart b/sdk/lib/_internal/compiler/implementation/elements/elements.dart
index 6e9281c6ca91143dda11ba806711a28ac464f9a0..f31411e0548776d60c6ba80d886e5aaf570eebcf 100644
--- a/sdk/lib/_internal/compiler/implementation/elements/elements.dart
+++ b/sdk/lib/_internal/compiler/implementation/elements/elements.dart
@@ -28,6 +28,8 @@ import '../scanner/scannerlib.dart' show Token,
isUserDefinableOperator,
isMinusOperator;
+import '../ir/ir_nodes.dart' show IrNode;
+
const int STATE_NOT_STARTED = 0;
const int STATE_STARTED = 1;
const int STATE_DONE = 2;
@@ -178,6 +180,9 @@ abstract class Element implements Spannable {
Node parseNode(DiagnosticListener listener);
DartType computeType(Compiler compiler);
+ bool hasIrNode(Compiler compiler);
ngeoffray 2013/11/20 14:55:27 I wouldn't put those helpers here. If someone want
lukas 2013/11/20 15:13:26 It was suggested by Kasper: https://codereview.chr
+ IrNode irNode(Compiler compiler);
+
bool isFunction();
bool isConstructor();
bool isClosure();

Powered by Google App Engine
This is Rietveld 408576698