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

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

Issue 2098493002: WIP: Add custom platform library. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Add argument. Created 4 years, 6 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
« no previous file with comments | « pkg/compiler/lib/src/dart2js.dart ('k') | sdk/lib/_internal/js_runtime/lib/custom_patch.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 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
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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/dart2js.dart ('k') | sdk/lib/_internal/js_runtime/lib/custom_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698