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

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

Issue 949733003: Share the JavaScript based LinkedHashMap implementation between constant maps and the LinkedHashMap… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 | Annotate | Revision Log
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 part of dart2js; 5 part of dart2js;
6 6
7 /** 7 /**
8 * If true, print a warning for each method that was resolved, but not 8 * If true, print a warning for each method that was resolved, but not
9 * compiled. 9 * compiled.
10 */ 10 */
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 void onAbstractClassInstantiation(Registry registry) {} 582 void onAbstractClassInstantiation(Registry registry) {}
583 583
584 /// Register that the application may throw a [FallThroughError]. 584 /// Register that the application may throw a [FallThroughError].
585 void onFallThroughError(Registry registry) {} 585 void onFallThroughError(Registry registry) {}
586 586
587 /// Register that a super call will end up calling 587 /// Register that a super call will end up calling
588 /// [: super.noSuchMethod :]. 588 /// [: super.noSuchMethod :].
589 void onSuperNoSuchMethod(Registry registry) {} 589 void onSuperNoSuchMethod(Registry registry) {}
590 590
591 /// Register that the application creates a constant map. 591 /// Register that the application creates a constant map.
592 void onConstantMap(Registry registry) {} 592 void onMapLiteral(Registry registry, DartType type, bool isConstant) {}
593 593
594 /// Called when resolving the `Symbol` constructor. 594 /// Called when resolving the `Symbol` constructor.
595 void onSymbolConstructor(Registry registry) {} 595 void onSymbolConstructor(Registry registry) {}
596 } 596 }
597 597
598 /** 598 /**
599 * Key class used in [TokenMap] in which the hash code for a token is based 599 * Key class used in [TokenMap] in which the hash code for a token is based
600 * on the [charOffset]. 600 * on the [charOffset].
601 */ 601 */
602 class TokenKey { 602 class TokenKey {
(...skipping 1805 matching lines...) Expand 10 before | Expand all | Expand 10 after
2408 return futureClass.computeType(compiler).createInstantiation([elementType]); 2408 return futureClass.computeType(compiler).createInstantiation([elementType]);
2409 } 2409 }
2410 2410
2411 @override 2411 @override
2412 InterfaceType streamType([DartType elementType = const DynamicType()]) { 2412 InterfaceType streamType([DartType elementType = const DynamicType()]) {
2413 return streamClass.computeType(compiler).createInstantiation([elementType]); 2413 return streamClass.computeType(compiler).createInstantiation([elementType]);
2414 } 2414 }
2415 } 2415 }
2416 2416
2417 typedef void InternalErrorFunction(Spannable location, String message); 2417 typedef void InternalErrorFunction(Spannable location, String message);
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | sdk/lib/_internal/compiler/js_lib/collection_patch.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698