| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |