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

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

Issue 2466353002: Revert "More functionality in kernel_impact." and "Compute NativeBehavior for foreign functions." (Closed)
Patch Set: Created 4 years, 1 month 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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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_backend.helpers; 5 library dart2js.js_backend.helpers;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common/names.dart' show Identifiers, Uris; 8 import '../common/names.dart' show Identifiers, Uris;
9 import '../common/resolution.dart' show Resolution; 9 import '../common/resolution.dart' show Resolution;
10 import '../compiler.dart' show Compiler; 10 import '../compiler.dart' show Compiler;
(...skipping 26 matching lines...) Expand all
37 static final Uri DART_JS_NAMES = new Uri(scheme: 'dart', path: '_js_names'); 37 static final Uri DART_JS_NAMES = new Uri(scheme: 'dart', path: '_js_names');
38 static final Uri DART_EMBEDDED_NAMES = 38 static final Uri DART_EMBEDDED_NAMES =
39 new Uri(scheme: 'dart', path: '_js_embedded_names'); 39 new Uri(scheme: 'dart', path: '_js_embedded_names');
40 static final Uri DART_ISOLATE_HELPER = 40 static final Uri DART_ISOLATE_HELPER =
41 new Uri(scheme: 'dart', path: '_isolate_helper'); 41 new Uri(scheme: 'dart', path: '_isolate_helper');
42 static final Uri PACKAGE_JS = new Uri(scheme: 'package', path: 'js/js.dart'); 42 static final Uri PACKAGE_JS = new Uri(scheme: 'package', path: 'js/js.dart');
43 43
44 static const String INVOKE_ON = '_getCachedInvocation'; 44 static const String INVOKE_ON = '_getCachedInvocation';
45 static const String START_ROOT_ISOLATE = 'startRootIsolate'; 45 static const String START_ROOT_ISOLATE = 'startRootIsolate';
46 46
47 static const String JS = 'JS';
48 static const String JS_BUILTIN = 'JS_BUILTIN';
49 static const String JS_EMBEDDED_GLOBAL = 'JS_EMBEDDED_GLOBAL';
50 static const String JS_INTERCEPTOR_CONSTANT = 'JS_INTERCEPTOR_CONSTANT';
51
52 final Compiler compiler; 47 final Compiler compiler;
53 48
54 Element cachedCheckConcurrentModificationError; 49 Element cachedCheckConcurrentModificationError;
55 50
56 BackendHelpers(this.compiler); 51 BackendHelpers(this.compiler);
57 52
58 JavaScriptBackend get backend => compiler.backend; 53 JavaScriptBackend get backend => compiler.backend;
59 54
60 Resolution get resolution => backend.resolution; 55 Resolution get resolution => backend.resolution;
61 56
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 MethodElement _objectNoSuchMethod; 712 MethodElement _objectNoSuchMethod;
718 713
719 MethodElement get objectNoSuchMethod { 714 MethodElement get objectNoSuchMethod {
720 if (_objectNoSuchMethod == null) { 715 if (_objectNoSuchMethod == null) {
721 _objectNoSuchMethod = 716 _objectNoSuchMethod =
722 coreClasses.objectClass.lookupLocalMember(Identifiers.noSuchMethod_); 717 coreClasses.objectClass.lookupLocalMember(Identifiers.noSuchMethod_);
723 } 718 }
724 return _objectNoSuchMethod; 719 return _objectNoSuchMethod;
725 } 720 }
726 } 721 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/kernel/kernel_debug.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698