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

Unified Diff: pkg/compiler/lib/src/ssa/builder_kernel.dart

Issue 2814453005: Merge CommonElements and BackendHelpers! (Closed)
Patch Set: merge with head 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 side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/ssa/builder_kernel.dart
diff --git a/pkg/compiler/lib/src/ssa/builder_kernel.dart b/pkg/compiler/lib/src/ssa/builder_kernel.dart
index 553f028e76e11b41917f79bb377d5c975e5a7de5..db50aecdbe176ee6d1b29b6922a45e389042b497 100644
--- a/pkg/compiler/lib/src/ssa/builder_kernel.dart
+++ b/pkg/compiler/lib/src/ssa/builder_kernel.dart
@@ -584,7 +584,7 @@ class KernelSsaBuilder extends ir.Visitor with GraphBuilder {
void visitLoadLibrary(ir.LoadLibrary loadLibrary) {
// TODO(efortuna): Source information!
push(new HInvokeStatic(
- backend.helpers.loadLibraryWrapper,
+ compiler.commonElements.loadLibraryWrapper,
[
graph.addConstantString(
new DartString.literal(loadLibrary.import.name), closedWorld)
@@ -2504,7 +2504,8 @@ class KernelSsaBuilder extends ir.Visitor with GraphBuilder {
push(new HForeignCode(nativeBehavior.codeTemplate, ssaType, inputs,
isStatement: !nativeBehavior.codeTemplate.isExpression,
effects: nativeBehavior.sideEffects,
- nativeBehavior: nativeBehavior)..sourceInformation = sourceInformation);
+ nativeBehavior: nativeBehavior)
+ ..sourceInformation = sourceInformation);
}
void handleJsStringConcat(ir.StaticInvocation invocation) {
@@ -2608,9 +2609,8 @@ class KernelSsaBuilder extends ir.Visitor with GraphBuilder {
_pushDynamicInvocation(
invocation,
astAdapter.typeOfInvocation(invocation, closedWorld),
- <HInstruction>[receiver]
- ..addAll(
- _visitArgumentsForDynamicTarget(selector, invocation.arguments)));
+ <HInstruction>[receiver]..addAll(
+ _visitArgumentsForDynamicTarget(selector, invocation.arguments)));
}
bool _handleEqualsNull(ir.MethodInvocation invocation) {

Powered by Google App Engine
This is Rietveld 408576698