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

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

Issue 2455073003: Compute NativeBehavior for foreign functions. (Closed)
Patch Set: Updated cf. comment. 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
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/native/behavior.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) 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
47 final Compiler compiler; 52 final Compiler compiler;
48 53
49 Element cachedCheckConcurrentModificationError; 54 Element cachedCheckConcurrentModificationError;
50 55
51 BackendHelpers(this.compiler); 56 BackendHelpers(this.compiler);
52 57
53 JavaScriptBackend get backend => compiler.backend; 58 JavaScriptBackend get backend => compiler.backend;
54 59
55 Resolution get resolution => backend.resolution; 60 Resolution get resolution => backend.resolution;
56 61
(...skipping 655 matching lines...) Expand 10 before | Expand all | Expand 10 after
712 MethodElement _objectNoSuchMethod; 717 MethodElement _objectNoSuchMethod;
713 718
714 MethodElement get objectNoSuchMethod { 719 MethodElement get objectNoSuchMethod {
715 if (_objectNoSuchMethod == null) { 720 if (_objectNoSuchMethod == null) {
716 _objectNoSuchMethod = 721 _objectNoSuchMethod =
717 coreClasses.objectClass.lookupLocalMember(Identifiers.noSuchMethod_); 722 coreClasses.objectClass.lookupLocalMember(Identifiers.noSuchMethod_);
718 } 723 }
719 return _objectNoSuchMethod; 724 return _objectNoSuchMethod;
720 } 725 }
721 } 726 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_backend/backend.dart ('k') | pkg/compiler/lib/src/native/behavior.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698