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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/js_backend/backend.dart

Issue 23258002: Load builtin helper libraries on demand. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed review comments. Created 7 years, 4 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 js_backend; 5 part of js_backend;
6 6
7 class JavaScriptItemCompilationContext extends ItemCompilationContext { 7 class JavaScriptItemCompilationContext extends ItemCompilationContext {
8 final Set<HInstruction> boundsChecked; 8 final Set<HInstruction> boundsChecked;
9 9
10 JavaScriptItemCompilationContext() 10 JavaScriptItemCompilationContext()
(...skipping 1439 matching lines...) Expand 10 before | Expand all | Expand 10 after
1450 if (mustRetainMetadata) hasRetainedMetadata = true; 1450 if (mustRetainMetadata) hasRetainedMetadata = true;
1451 if (mustRetainMetadata && isNeededForReflection(element)) { 1451 if (mustRetainMetadata && isNeededForReflection(element)) {
1452 for (MetadataAnnotation metadata in element.metadata) { 1452 for (MetadataAnnotation metadata in element.metadata) {
1453 metadata.value.accept(new ConstantCopier(compiler.constantHandler)); 1453 metadata.value.accept(new ConstantCopier(compiler.constantHandler));
1454 } 1454 }
1455 return true; 1455 return true;
1456 } 1456 }
1457 return false; 1457 return false;
1458 } 1458 }
1459 1459
1460 void onLibraryScanned(LibraryElement library, Uri uri) { 1460 void onLibraryLoaded(LibraryElement library, Uri uri) {
1461 if (uri == Uri.parse('dart:_js_mirrors')) { 1461 if (uri == Uri.parse('dart:_js_mirrors')) {
1462 disableTreeShakingMarker = 1462 disableTreeShakingMarker =
1463 library.find(const SourceString('disableTreeShaking')); 1463 library.find(const SourceString('disableTreeShaking'));
1464 preserveMetadataMarker = 1464 preserveMetadataMarker =
1465 library.find(const SourceString('preserveMetadata')); 1465 library.find(const SourceString('preserveMetadata'));
1466 } else if (uri == Uri.parse('dart:_js_names')) { 1466 } else if (uri == Uri.parse('dart:_js_names')) {
1467 preserveNamesMarker = 1467 preserveNamesMarker =
1468 library.find(const SourceString('preserveNames')); 1468 library.find(const SourceString('preserveNames'));
1469 } 1469 }
1470 } 1470 }
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
1604 copy(constant.values); 1604 copy(constant.values);
1605 copy(constant.protoValue); 1605 copy(constant.protoValue);
1606 copy(constant); 1606 copy(constant);
1607 } 1607 }
1608 1608
1609 void visitConstructed(ConstructedConstant constant) { 1609 void visitConstructed(ConstructedConstant constant) {
1610 copy(constant.fields); 1610 copy(constant.fields);
1611 copy(constant); 1611 copy(constant);
1612 } 1612 }
1613 } 1613 }
OLDNEW
« no previous file with comments | « sdk/lib/_internal/compiler/implementation/compiler.dart ('k') | sdk/lib/_internal/compiler/implementation/library_loader.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698