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

Unified Diff: pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart

Issue 2346543002: kernel -> ssa: implement literal lists (Closed)
Patch Set: dartfmt Created 4 years, 3 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 | « pkg/compiler/lib/src/ssa/builder_kernel.dart ('k') | tests/compiler/dart2js/kernel/literals_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
diff --git a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
index 89ba30e56ce1fef3d7af51928b71b8168065b6d5..ab50d3155c4a291d166770e61c463686da9f5289 100644
--- a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
+++ b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
@@ -145,6 +145,14 @@ class KernelAstAdapter {
getGetterSelector(getter), typeOfGet(getter), _compiler);
}
+ ConstantValue getConstantFor(ir.Node node) {
+ ConstantValue constantValue =
+ _backend.constants.getConstantValueForNode(getNode(node), _elements);
+ assert(invariant(getNode(node), constantValue != null,
+ message: 'No constant computed for $node'));
+ return constantValue;
+ }
+
bool isIntercepted(ir.Node node) {
Selector selector;
if (node is ir.PropertyGet) {
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder_kernel.dart ('k') | tests/compiler/dart2js/kernel/literals_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698