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

Side by Side Diff: pkg/compiler/lib/src/use_unused_api.dart

Issue 1148343004: Remove ConstantExpression.value (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Update comments. Created 5 years, 6 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/typechecker.dart ('k') | tests/compiler/dart2js/const_exp_test.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 /// This file use methods that aren't used by dart2js.dart, but that we wish to 5 /// This file use methods that aren't used by dart2js.dart, but that we wish to
6 /// keep anyway. This might be general API that isn't currently in use, 6 /// keep anyway. This might be general API that isn't currently in use,
7 /// debugging aids, or API only used for testing (see TODO below). 7 /// debugging aids, or API only used for testing (see TODO below).
8 8
9 library dart2js.use_unused_api; 9 library dart2js.use_unused_api;
10 10
(...skipping 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 ..buildStringConstant(null) 269 ..buildStringConstant(null)
270 ..buildDynamicGet(null, null); 270 ..buildDynamicGet(null, null);
271 } 271 }
272 272
273 useCompiler(dart2jslib.Compiler compiler) { 273 useCompiler(dart2jslib.Compiler compiler) {
274 compiler.libraryLoader 274 compiler.libraryLoader
275 ..reset() 275 ..reset()
276 ..resetAsync(null) 276 ..resetAsync(null)
277 ..lookupLibrary(null); 277 ..lookupLibrary(null);
278 compiler.forgetElement(null); 278 compiler.forgetElement(null);
279 compiler.backend.constantCompilerTask.copyConstantValues(null);
279 } 280 }
280 281
281 useTypes() { 282 useTypes() {
282 new dart_types.ResolvedTypedefType(null, null, null).unalias(null); 283 new dart_types.ResolvedTypedefType(null, null, null).unalias(null);
283 } 284 }
284 285
285 useCodeEmitterTask(js_emitter.CodeEmitterTask codeEmitterTask) { 286 useCodeEmitterTask(js_emitter.CodeEmitterTask codeEmitterTask) {
286 codeEmitterTask.oldEmitter.clearCspPrecompiledNodes(); 287 codeEmitterTask.oldEmitter.clearCspPrecompiledNodes();
287 codeEmitterTask.oldEmitter. 288 codeEmitterTask.oldEmitter.
288 buildLazilyInitializedStaticField(null, isolateProperties: null); 289 buildLazilyInitializedStaticField(null, isolateProperties: null);
(...skipping 16 matching lines...) Expand all
305 306
306 class TreeVisitor1 extends tree_ir.ExpressionVisitor1 307 class TreeVisitor1 extends tree_ir.ExpressionVisitor1
307 with tree_ir.StatementVisitor1 { 308 with tree_ir.StatementVisitor1 {
308 noSuchMethod(inv) {} 309 noSuchMethod(inv) {}
309 } 310 }
310 311
311 useTreeVisitors() { 312 useTreeVisitors() {
312 new TreeVisitor1().visitExpression(null, null); 313 new TreeVisitor1().visitExpression(null, null);
313 new TreeVisitor1().visitStatement(null, null); 314 new TreeVisitor1().visitStatement(null, null);
314 } 315 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/typechecker.dart ('k') | tests/compiler/dart2js/const_exp_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698