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

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

Issue 2874723002: Add a way to use shared CanonicalName root to deserialize Program. (Closed)
Patch Set: Always compute canonical names. Use shared name root. Created 3 years, 7 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
OLDNEW
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2017, 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 /// Additions to Fasta for generating .dill (Kernel IR) files with dart2js patch 5 /// Additions to Fasta for generating .dill (Kernel IR) files with dart2js patch
6 /// files and native hooks. 6 /// files and native hooks.
7 library compiler.src.kernel.fasta_support; 7 library compiler.src.kernel.fasta_support;
8 8
9 // TODO(sigmund): get rid of this file. Fasta should be agnostic of the 9 // TODO(sigmund): get rid of this file. Fasta should be agnostic of the
10 // target platform, at which point this should not be necessary. In particular, 10 // target platform, at which point this should not be necessary. In particular,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 void runBuildTransformations() {} 93 void runBuildTransformations() {}
94 94
95 @override 95 @override
96 void runLinkTransformations(_) {} 96 void runLinkTransformations(_) {}
97 } 97 }
98 98
99 /// Specializes [DillTarget] to build kernel for dart2js: JS-specific libraries 99 /// Specializes [DillTarget] to build kernel for dart2js: JS-specific libraries
100 /// are included in the SDK, and native clauses have no string parameter. 100 /// are included in the SDK, and native clauses have no string parameter.
101 class DillTargetForDart2js extends DillTarget { 101 class DillTargetForDart2js extends DillTarget {
102 DillTargetForDart2js(Ticker ticker, TranslateUri uriTranslator) 102 DillTargetForDart2js(Ticker ticker, TranslateUri uriTranslator)
103 : super(ticker, uriTranslator); 103 : super(null, ticker, uriTranslator);
104 104
105 @override 105 @override
106 Token skipNativeClause(Token token) => _skipNative(token); 106 Token skipNativeClause(Token token) => _skipNative(token);
107 107
108 @override 108 @override
109 String extractNativeMethodName(Token token) => null; 109 String extractNativeMethodName(Token token) => null;
110 110
111 @override 111 @override
112 void loadExtraRequiredLibraries(Loader loader) => _loadExtras(loader); 112 void loadExtraRequiredLibraries(Loader loader) => _loadExtras(loader);
113 } 113 }
(...skipping 28 matching lines...) Expand all
142 'dart:_native_typed_data', 142 'dart:_native_typed_data',
143 'dart:_internal', 143 'dart:_internal',
144 'dart:_js_helper', 144 'dart:_js_helper',
145 'dart:_interceptors', 145 'dart:_interceptors',
146 'dart:_foreign_helper', 146 'dart:_foreign_helper',
147 'dart:_js_mirrors', 147 'dart:_js_mirrors',
148 'dart:_js_names', 148 'dart:_js_names',
149 'dart:_js_embedded_names', 149 'dart:_js_embedded_names',
150 'dart:_isolate_helper', 150 'dart:_isolate_helper',
151 ]; 151 ];
OLDNEW
« no previous file with comments | « no previous file | pkg/compiler/lib/src/kernel/task.dart » ('j') | pkg/front_end/lib/src/fasta/kernel/kernel_target.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698