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

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

Issue 2836993003: Handle instantiation of native classes in closed_world2_test (Closed)
Patch Set: Fixes 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 library dart2js.kernel.frontend_strategy; 5 library dart2js.kernel.frontend_strategy;
6 6
7 import '../common.dart'; 7 import '../common.dart';
8 import '../common_elements.dart'; 8 import '../common_elements.dart';
9 import '../common/tasks.dart'; 9 import '../common/tasks.dart';
10 import '../environment.dart' as env; 10 import '../environment.dart' as env;
11 import '../frontend_strategy.dart'; 11 import '../frontend_strategy.dart';
12 import '../js_backend/native_data.dart';
12 import '../library_loader.dart'; 13 import '../library_loader.dart';
14 import '../native/resolver.dart';
13 import '../serialization/task.dart'; 15 import '../serialization/task.dart';
14 import '../patch_parser.dart'; 16 import '../patch_parser.dart';
15 import '../resolved_uri_translator.dart'; 17 import '../resolved_uri_translator.dart';
16 import 'element_map.dart'; 18 import 'element_map.dart';
17 19
18 /// Front end strategy that loads '.dill' files and builds a resolved element 20 /// Front end strategy that loads '.dill' files and builds a resolved element
19 /// model from kernel IR nodes. 21 /// model from kernel IR nodes.
20 class KernelFrontEndStrategy implements FrontEndStrategy { 22 class KernelFrontEndStrategy implements FrontEndStrategy {
21 KernelToElementMap elementMap; 23 KernelToElementMap elementMap;
22 24
(...skipping 16 matching lines...) Expand all
39 return new DillLibraryLoaderTask( 41 return new DillLibraryLoaderTask(
40 elementMap, uriTranslator, scriptLoader, reporter, measurer); 42 elementMap, uriTranslator, scriptLoader, reporter, measurer);
41 } 43 }
42 44
43 @override 45 @override
44 ElementEnvironment get elementEnvironment => elementMap.elementEnvironment; 46 ElementEnvironment get elementEnvironment => elementMap.elementEnvironment;
45 47
46 @override 48 @override
47 AnnotationProcessor get annotationProcesser => 49 AnnotationProcessor get annotationProcesser =>
48 _annotationProcesser ??= new KernelAnnotationProcessor(elementMap); 50 _annotationProcesser ??= new KernelAnnotationProcessor(elementMap);
51
52 @override
53 NativeClassFinder createNativeClassResolver(NativeBasicData nativeBasicData) {
54 return new BaseNativeClassFinder(elementMap.elementEnvironment,
55 elementMap.commonElements, nativeBasicData);
56 }
49 } 57 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/element_map.dart ('k') | pkg/compiler/lib/src/kernel/native_class_resolver.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698