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

Side by Side Diff: pkg/compiler/lib/src/js_backend/backend_impact.dart

Issue 1888803002: Support serialization of all resolved asts from dart:core (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix unittests. Created 4 years, 8 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
OLDNEW
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 dart2js.js_helpers.impact; 5 library dart2js.js_helpers.impact;
6 6
7 import '../compiler.dart' show Compiler; 7 import '../compiler.dart' show Compiler;
8 import '../core_types.dart' show CoreClasses; 8 import '../core_types.dart' show CoreClasses;
9 import '../dart_types.dart' show InterfaceType; 9 import '../dart_types.dart' show InterfaceType;
10 import '../elements/elements.dart' show ClassElement, Element; 10 import '../elements/elements.dart' show ClassElement, Element;
(...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 find(JavaScriptMapConstant.DART_GENERAL_CLASS) 284 find(JavaScriptMapConstant.DART_GENERAL_CLASS)
285 ]); 285 ]);
286 } 286 }
287 return _constantMapLiteral; 287 return _constantMapLiteral;
288 } 288 }
289 289
290 BackendImpact _symbolConstructor; 290 BackendImpact _symbolConstructor;
291 291
292 BackendImpact get symbolConstructor { 292 BackendImpact get symbolConstructor {
293 if (_symbolConstructor == null) { 293 if (_symbolConstructor == null) {
294 _symbolConstructor = new BackendImpact( 294 _symbolConstructor =
295 staticUses: [helpers.compiler.symbolValidatedConstructor]); 295 new BackendImpact(staticUses: [helpers.symbolValidatedConstructor]);
296 } 296 }
297 return _symbolConstructor; 297 return _symbolConstructor;
298 } 298 }
299 299
300 BackendImpact _constSymbol; 300 BackendImpact _constSymbol;
301 301
302 BackendImpact get constSymbol { 302 BackendImpact get constSymbol {
303 if (_constSymbol == null) { 303 if (_constSymbol == null) {
304 _constSymbol = new BackendImpact( 304 _constSymbol = new BackendImpact(
305 instantiatedClasses: [coreClasses.symbolClass], 305 instantiatedClasses: [coreClasses.symbolClass],
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 BackendImpact _closure; 599 BackendImpact _closure;
600 600
601 BackendImpact get closure { 601 BackendImpact get closure {
602 if (_closure == null) { 602 if (_closure == null) {
603 _closure = 603 _closure =
604 new BackendImpact(instantiatedClasses: [coreClasses.functionClass]); 604 new BackendImpact(instantiatedClasses: [coreClasses.functionClass]);
605 } 605 }
606 return _closure; 606 return _closure;
607 } 607 }
608 } 608 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend_helpers.dart ('k') | pkg/compiler/lib/src/parser/parser.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698