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

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

Issue 2897683002: Move code for instantiating Invocation to Target. (Closed)
Patch Set: 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 void runBuildTransformations() {} 99 void runBuildTransformations() {}
100 100
101 @override 101 @override
102 void runLinkTransformations(_) {} 102 void runLinkTransformations(_) {}
103 } 103 }
104 104
105 /// Specializes [DillTarget] to build kernel for dart2js: JS-specific libraries 105 /// Specializes [DillTarget] to build kernel for dart2js: JS-specific libraries
106 /// are included in the SDK, and native clauses have no string parameter. 106 /// are included in the SDK, and native clauses have no string parameter.
107 class DillTargetForDart2js extends DillTarget { 107 class DillTargetForDart2js extends DillTarget {
108 DillTargetForDart2js(Ticker ticker, TranslateUri uriTranslator) 108 DillTargetForDart2js(Ticker ticker, TranslateUri uriTranslator)
109 : super(ticker, uriTranslator); 109 : super(ticker, uriTranslator, "none");
110 110
111 @override 111 @override
112 Token skipNativeClause(Token token) => _skipNative(token); 112 Token skipNativeClause(Token token) => _skipNative(token);
113 113
114 @override 114 @override
115 String extractNativeMethodName(Token token) => null; 115 String extractNativeMethodName(Token token) => null;
116 116
117 @override 117 @override
118 void loadExtraRequiredLibraries(Loader loader) => _loadExtras(loader); 118 void loadExtraRequiredLibraries(Loader loader) => _loadExtras(loader);
119 } 119 }
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 'dart:html_common', 158 'dart:html_common',
159 'dart:indexed_db', 159 'dart:indexed_db',
160 'dart:js', 160 'dart:js',
161 'dart:js_util', 161 'dart:js_util',
162 'dart:mirrors', 162 'dart:mirrors',
163 'dart:svg', 163 'dart:svg',
164 'dart:web_audio', 164 'dart:web_audio',
165 'dart:web_gl', 165 'dart:web_gl',
166 'dart:web_sql', 166 'dart:web_sql',
167 ]; 167 ];
OLDNEW
« no previous file with comments | « no previous file | pkg/front_end/lib/kernel_generator.dart » ('j') | pkg/kernel/lib/transformations/mixin_full_resolution.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698