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

Side by Side Diff: pkg/compiler/lib/src/js_model/elements.dart

Issue 2954493002: Less inequivalence on Hello World! (Closed)
Patch Set: Updated cf. comments Created 3 years, 5 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) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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_model.elements; 5 library dart2js.js_model.elements;
6 6
7 import '../common_elements.dart'; 7 import '../common_elements.dart';
8 import '../constants/constant_system.dart'; 8 import '../constants/constant_system.dart';
9 import '../constants/values.dart'; 9 import '../constants/values.dart';
10 import '../elements/elements.dart'; 10 import '../elements/elements.dart';
(...skipping 447 matching lines...) Expand 10 before | Expand all | Expand 10 after
458 final int index; 458 final int index;
459 459
460 JTypeVariable(this.typeDeclaration, this.name, this.index); 460 JTypeVariable(this.typeDeclaration, this.name, this.index);
461 461
462 String toString() => 'type_variable(${typeDeclaration.name}.$name)'; 462 String toString() => 'type_variable(${typeDeclaration.name}.$name)';
463 } 463 }
464 464
465 class JsClosedWorld extends ClosedWorldBase { 465 class JsClosedWorld extends ClosedWorldBase {
466 JsClosedWorld( 466 JsClosedWorld(
467 {ElementEnvironment elementEnvironment, 467 {ElementEnvironment elementEnvironment,
468 DartTypes dartTypes,
468 CommonElements commonElements, 469 CommonElements commonElements,
469 ConstantSystem constantSystem, 470 ConstantSystem constantSystem,
470 NativeData nativeData, 471 NativeData nativeData,
471 InterceptorData interceptorData, 472 InterceptorData interceptorData,
472 BackendUsage backendUsage, 473 BackendUsage backendUsage,
473 ResolutionWorldBuilder resolutionWorldBuilder, 474 ResolutionWorldBuilder resolutionWorldBuilder,
474 Set<ClassEntity> implementedClasses, 475 Set<ClassEntity> implementedClasses,
475 FunctionSet functionSet, 476 FunctionSet functionSet,
476 Set<TypedefElement> allTypedefs, 477 Set<TypedefElement> allTypedefs,
477 Map<ClassEntity, Set<ClassEntity>> mixinUses, 478 Map<ClassEntity, Set<ClassEntity>> mixinUses,
478 Map<ClassEntity, Set<ClassEntity>> typesImplementedBySubclasses, 479 Map<ClassEntity, Set<ClassEntity>> typesImplementedBySubclasses,
479 Map<ClassEntity, ClassHierarchyNode> classHierarchyNodes, 480 Map<ClassEntity, ClassHierarchyNode> classHierarchyNodes,
480 Map<ClassEntity, ClassSet> classSets}) 481 Map<ClassEntity, ClassSet> classSets})
481 : super( 482 : super(
482 elementEnvironment: elementEnvironment, 483 elementEnvironment: elementEnvironment,
484 dartTypes: dartTypes,
483 commonElements: commonElements, 485 commonElements: commonElements,
484 constantSystem: constantSystem, 486 constantSystem: constantSystem,
485 nativeData: nativeData, 487 nativeData: nativeData,
486 interceptorData: interceptorData, 488 interceptorData: interceptorData,
487 backendUsage: backendUsage, 489 backendUsage: backendUsage,
488 resolutionWorldBuilder: resolutionWorldBuilder, 490 resolutionWorldBuilder: resolutionWorldBuilder,
489 implementedClasses: implementedClasses, 491 implementedClasses: implementedClasses,
490 functionSet: functionSet, 492 functionSet: functionSet,
491 allTypedefs: allTypedefs, 493 allTypedefs: allTypedefs,
492 mixinUses: mixinUses, 494 mixinUses: mixinUses,
(...skipping 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after
1856 @override 1858 @override
1857 ClassEntity get numClass => _map.toBackendClass(_commonElements.numClass); 1859 ClassEntity get numClass => _map.toBackendClass(_commonElements.numClass);
1858 1860
1859 @override 1861 @override
1860 ClassEntity get boolClass => _map.toBackendClass(_commonElements.boolClass); 1862 ClassEntity get boolClass => _map.toBackendClass(_commonElements.boolClass);
1861 1863
1862 @override 1864 @override
1863 FunctionEntity get throwUnsupportedError => 1865 FunctionEntity get throwUnsupportedError =>
1864 _map.toBackendMember(_commonElements.throwUnsupportedError); 1866 _map.toBackendMember(_commonElements.throwUnsupportedError);
1865 } 1867 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/startup_emitter/emitter.dart ('k') | pkg/compiler/lib/src/kernel/element_map_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698