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

Side by Side Diff: pkg/compiler/lib/src/types/constants.dart

Issue 1559233002: WIP: Compute constant expressions in resolution. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 4 years, 11 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 unified diff | Download patch
« no previous file with comments | « pkg/compiler/lib/src/ssa/nodes.dart ('k') | pkg/compiler/lib/src/use_unused_api.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 library types.constants; 5 library types.constants;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../compiler.dart' show 8 import '../compiler.dart' show
9 Compiler; 9 Compiler;
10 import '../constants/values.dart'; 10 import '../constants/values.dart';
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 108
109 @override 109 @override
110 TypeMask visitString(StringConstantValue constant, Compiler compiler) { 110 TypeMask visitString(StringConstantValue constant, Compiler compiler) {
111 return compiler.typesTask.stringType; 111 return compiler.typesTask.stringType;
112 } 112 }
113 113
114 @override 114 @override
115 TypeMask visitType(TypeConstantValue constant, Compiler compiler) { 115 TypeMask visitType(TypeConstantValue constant, Compiler compiler) {
116 return compiler.typesTask.typeType; 116 return compiler.typesTask.typeType;
117 } 117 }
118
119 @override
120 TypeMask visitNonConstant(NonConstantValue constant,
121 Compiler compiler) {
122 return compiler.typesTask.dynamicType;
123 }
118 } 124 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/nodes.dart ('k') | pkg/compiler/lib/src/use_unused_api.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698