Chromium Code Reviews| 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 const VERBOSE_OPTIMIZER_HINTS = false; | 7 const VERBOSE_OPTIMIZER_HINTS = false; |
| 8 | 8 |
| 9 class JavaScriptItemCompilationContext extends ItemCompilationContext { | 9 class JavaScriptItemCompilationContext extends ItemCompilationContext { |
| 10 final Set<HInstruction> boundsChecked = new Set<HInstruction>(); | 10 final Set<HInstruction> boundsChecked = new Set<HInstruction>(); |
| (...skipping 2557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2568 "async": "_internal/js_runtime/lib/async_patch.dart", | 2568 "async": "_internal/js_runtime/lib/async_patch.dart", |
| 2569 "collection": "_internal/js_runtime/lib/collection_patch.dart", | 2569 "collection": "_internal/js_runtime/lib/collection_patch.dart", |
| 2570 "convert": "_internal/js_runtime/lib/convert_patch.dart", | 2570 "convert": "_internal/js_runtime/lib/convert_patch.dart", |
| 2571 "core": "_internal/js_runtime/lib/core_patch.dart", | 2571 "core": "_internal/js_runtime/lib/core_patch.dart", |
| 2572 "developer": "_internal/js_runtime/lib/developer_patch.dart", | 2572 "developer": "_internal/js_runtime/lib/developer_patch.dart", |
| 2573 "io": "_internal/js_runtime/lib/io_patch.dart", | 2573 "io": "_internal/js_runtime/lib/io_patch.dart", |
| 2574 "isolate": "_internal/js_runtime/lib/isolate_patch.dart", | 2574 "isolate": "_internal/js_runtime/lib/isolate_patch.dart", |
| 2575 "math": "_internal/js_runtime/lib/math_patch.dart", | 2575 "math": "_internal/js_runtime/lib/math_patch.dart", |
| 2576 "mirrors": "_internal/js_runtime/lib/mirrors_patch.dart", | 2576 "mirrors": "_internal/js_runtime/lib/mirrors_patch.dart", |
| 2577 "typed_data": "_internal/js_runtime/lib/typed_data_patch.dart", | 2577 "typed_data": "_internal/js_runtime/lib/typed_data_patch.dart", |
| 2578 "_internal": "_internal/js_runtime/lib/internal_patch.dart" | 2578 "_internal": "_internal/js_runtime/lib/internal_patch.dart", |
| 2579 "custom": "_internal/js_runtime/lib/custom_patch.dart" | |
|
Johnni Winther
2016/06/23 12:45:15
All these should be part of the .platform file.
| |
| 2579 }; | 2580 }; |
| 2580 | 2581 |
| 2581 @override | 2582 @override |
| 2582 Uri resolvePatchUri(String libraryName, Uri platformConfigUri) { | 2583 Uri resolvePatchUri(String libraryName, Uri platformConfigUri) { |
| 2583 String patchLocation = _patchLocations[libraryName]; | 2584 String patchLocation = _patchLocations[libraryName]; |
| 2584 if (patchLocation == null) return null; | 2585 if (patchLocation == null) return null; |
| 2585 return platformConfigUri.resolve(patchLocation); | 2586 return platformConfigUri.resolve(patchLocation); |
| 2586 } | 2587 } |
| 2587 | 2588 |
| 2588 @override | 2589 @override |
| (...skipping 538 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 3127 | 3128 |
| 3128 @override | 3129 @override |
| 3129 void onImpactUsed(ImpactUseCase impactUse) { | 3130 void onImpactUsed(ImpactUseCase impactUse) { |
| 3130 if (impactUse == DeferredLoadTask.IMPACT_USE && !supportSerialization) { | 3131 if (impactUse == DeferredLoadTask.IMPACT_USE && !supportSerialization) { |
| 3131 // TODO(johnniwinther): Allow emptying when serialization has been | 3132 // TODO(johnniwinther): Allow emptying when serialization has been |
| 3132 // performed. | 3133 // performed. |
| 3133 resolution.emptyCache(); | 3134 resolution.emptyCache(); |
| 3134 } | 3135 } |
| 3135 } | 3136 } |
| 3136 } | 3137 } |
| OLD | NEW |