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

Side by Side Diff: pkg/compiler/lib/src/ssa/builder_kernel.dart

Issue 2814453005: Merge CommonElements and BackendHelpers! (Closed)
Patch Set: comments and re-merge, take two Created 3 years, 8 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
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder.dart ('k') | pkg/compiler/lib/src/ssa/codegen.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 import 'package:kernel/ast.dart' as ir; 5 import 'package:kernel/ast.dart' as ir;
6 6
7 import '../closure.dart'; 7 import '../closure.dart';
8 import '../common.dart'; 8 import '../common.dart';
9 import '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem; 9 import '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem;
10 import '../common/names.dart'; 10 import '../common/names.dart';
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 new DartString.literal(prefixElement.deferredImport.uri.toString()), 577 new DartString.literal(prefixElement.deferredImport.uri.toString()),
578 closedWorld); 578 closedWorld);
579 _pushStaticInvocation(astAdapter.checkDeferredIsLoaded, 579 _pushStaticInvocation(astAdapter.checkDeferredIsLoaded,
580 [prefixConstant, uriConstant], astAdapter.checkDeferredIsLoadedType); 580 [prefixConstant, uriConstant], astAdapter.checkDeferredIsLoadedType);
581 } 581 }
582 582
583 @override 583 @override
584 void visitLoadLibrary(ir.LoadLibrary loadLibrary) { 584 void visitLoadLibrary(ir.LoadLibrary loadLibrary) {
585 // TODO(efortuna): Source information! 585 // TODO(efortuna): Source information!
586 push(new HInvokeStatic( 586 push(new HInvokeStatic(
587 helpers.loadLibraryWrapper, 587 commonElements.loadLibraryWrapper,
588 [ 588 [
589 graph.addConstantString( 589 graph.addConstantString(
590 new DartString.literal(loadLibrary.import.name), closedWorld) 590 new DartString.literal(loadLibrary.import.name), closedWorld)
591 ], 591 ],
592 commonMasks.nonNullType, 592 commonMasks.nonNullType,
593 targetCanThrow: false)); 593 targetCanThrow: false));
594 } 594 }
595 595
596 @override 596 @override
597 void visitBlock(ir.Block block) { 597 void visitBlock(ir.Block block) {
(...skipping 2626 matching lines...) Expand 10 before | Expand all | Expand 10 after
3224 enterBlock.setBlockFlow( 3224 enterBlock.setBlockFlow(
3225 new HTryBlockInformation( 3225 new HTryBlockInformation(
3226 kernelBuilder.wrapStatementGraph(bodyGraph), 3226 kernelBuilder.wrapStatementGraph(bodyGraph),
3227 exception, 3227 exception,
3228 kernelBuilder.wrapStatementGraph(catchGraph), 3228 kernelBuilder.wrapStatementGraph(catchGraph),
3229 kernelBuilder.wrapStatementGraph(finallyGraph)), 3229 kernelBuilder.wrapStatementGraph(finallyGraph)),
3230 exitBlock); 3230 exitBlock);
3231 kernelBuilder.inTryStatement = previouslyInTryStatement; 3231 kernelBuilder.inTryStatement = previouslyInTryStatement;
3232 } 3232 }
3233 } 3233 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder.dart ('k') | pkg/compiler/lib/src/ssa/codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698