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

Unified Diff: pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart

Issue 2938193003: Revert "Towards compiling Hello World!" and "Compile and run Hello World!" (Closed)
Patch Set: Created 3 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/kernel/element_map_impl.dart ('k') | pkg/compiler/lib/src/serialization/system.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart
diff --git a/pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart b/pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart
index 2ebf13d13615d75d64e5e61b7d78f8a45b396921..b085a564e707c5a535eb95538a420efe91147ebb 100644
--- a/pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart
+++ b/pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart
@@ -73,13 +73,8 @@ class KernelBackendStrategy implements BackendStrategy {
NativeBasicData nativeBasicData,
ClosedWorld closedWorld,
SelectorConstraintsStrategy selectorConstraintsStrategy) {
- KernelFrontEndStrategy frontendStrategy = _compiler.frontendStrategy;
- return new KernelCodegenWorldBuilder(
- frontendStrategy.elementMap,
- closedWorld.elementEnvironment,
- nativeBasicData,
- closedWorld,
- selectorConstraintsStrategy);
+ return new KernelCodegenWorldBuilder(closedWorld.elementEnvironment,
+ nativeBasicData, closedWorld, selectorConstraintsStrategy);
}
@override
@@ -122,8 +117,7 @@ class KernelCodegenWorkItem extends CodegenWorkItem {
final CodegenRegistry registry;
KernelCodegenWorkItem(this._backend, this._closedWorld, this.element)
- : registry =
- new CodegenRegistry(_closedWorld.elementEnvironment, element);
+ : registry = new CodegenRegistry(element);
@override
WorldImpact run() {
@@ -272,8 +266,7 @@ class KernelToLocalsMapImpl implements KernelToLocalsMap {
@override
JumpTarget getJumpTarget(ir.TreeNode node, {bool isContinueTarget: false}) {
- // TODO(johnniwinther): Support jump targets.
- return null;
+ throw new UnimplementedError('KernelToLocalsMapImpl.getJumpTarget');
}
@override
« no previous file with comments | « pkg/compiler/lib/src/kernel/element_map_impl.dart ('k') | pkg/compiler/lib/src/serialization/system.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698