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

Side by Side Diff: pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart

Issue 2960723004: Handle super-method call (Closed)
Patch Set: Created 3 years, 5 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) 2014, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2014, 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 library dart2js.js_emitter.full_emitter; 5 library dart2js.js_emitter.full_emitter;
6 6
7 import 'dart:collection' show HashMap; 7 import 'dart:collection' show HashMap;
8 import 'dart:convert'; 8 import 'dart:convert';
9 9
10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames; 10 import 'package:js_runtime/shared/embedded_names.dart' as embeddedNames;
(...skipping 1933 matching lines...) Expand 10 before | Expand all | Expand 10 after
1944 output.close(); 1944 output.close();
1945 } 1945 }
1946 1946
1947 hunkHashes[outputUnit] = hash; 1947 hunkHashes[outputUnit] = hash;
1948 } 1948 }
1949 return hunkHashes; 1949 return hunkHashes;
1950 } 1950 }
1951 1951
1952 jsAst.Comment buildGeneratedBy() { 1952 jsAst.Comment buildGeneratedBy() {
1953 List<String> options = []; 1953 List<String> options = [];
1954 if (commonElements.mirrorsLibrary != null && 1954 if (_closedWorld.backendUsage.isMirrorsUsed) {
1955 !compiler.options.loadFromDill) {
1956 // TODO(johnniwinther): Add `isMirrorsUsed` to [BackendData] instead 1955 // TODO(johnniwinther): Add `isMirrorsUsed` to [BackendData] instead
1957 // of checking `mirrorsLibrary`. 1956 // of checking `mirrorsLibrary`.
Siggi Cherem (dart-lang) 2017/06/27 20:12:57 delete todo :)
Johnni Winther 2017/06/28 08:03:03 Done.
1958 options.add('mirrors'); 1957 options.add('mirrors');
1959 } 1958 }
1960 if (compiler.options.useContentSecurityPolicy) options.add("CSP"); 1959 if (compiler.options.useContentSecurityPolicy) options.add("CSP");
1961 return new jsAst.Comment(generatedBy(compiler, flavor: options.join(", "))); 1960 return new jsAst.Comment(generatedBy(compiler, flavor: options.join(", ")));
1962 } 1961 }
1963 1962
1964 void outputDeferredMap() { 1963 void outputDeferredMap() {
1965 Map<String, dynamic> mapping = new Map<String, dynamic>(); 1964 Map<String, dynamic> mapping = new Map<String, dynamic>();
1966 // Json does not support comments, so we embed the explanation in the 1965 // Json does not support comments, so we embed the explanation in the
1967 // data. 1966 // data.
1968 mapping["_comment"] = "This mapping shows which compiled `.js` files are " 1967 mapping["_comment"] = "This mapping shows which compiled `.js` files are "
1969 "needed for a given deferred library import."; 1968 "needed for a given deferred library import.";
1970 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap()); 1969 mapping.addAll(compiler.deferredLoadTask.computeDeferredMap());
1971 compiler.outputProvider( 1970 compiler.outputProvider(
1972 compiler.options.deferredMapUri.path, '', OutputType.info) 1971 compiler.options.deferredMapUri.path, '', OutputType.info)
1973 ..add(const JsonEncoder.withIndent(" ").convert(mapping)) 1972 ..add(const JsonEncoder.withIndent(" ").convert(mapping))
1974 ..close(); 1973 ..close();
1975 } 1974 }
1976 } 1975 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698