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

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

Issue 2464103002: Introduce ClassLike, MemberLike, FieldLike and FunctionLike (Closed)
Patch Set: Updated cf. comments. 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4665ee8a0ee8ef4ed4813bb152f1e7ecfd90b810..6183f3f0d4b94b20eba12d886b0df92944d3b88a 100644
--- a/pkg/compiler/lib/src/ssa/builder_kernel.dart
+++ b/pkg/compiler/lib/src/ssa/builder_kernel.dart
@@ -574,8 +574,8 @@ class KernelSsaBuilder extends ir.Visitor with GraphBuilder {
_pushStaticInvocation(staticTarget, const <HInstruction>[],
astAdapter.returnTypeOf(staticTarget));
} else {
- Element element = astAdapter.getElement(staticTarget).declaration;
- push(new HStatic(element, astAdapter.inferredTypeOf(staticTarget)));
+ push(new HStatic(astAdapter.getMember(staticTarget),
+ astAdapter.inferredTypeOf(staticTarget)));
}
}
@@ -592,7 +592,7 @@ class KernelSsaBuilder extends ir.Visitor with GraphBuilder {
pop();
} else {
// TODO(het): check or trust type
- add(new HStaticStore(astAdapter.getElement(staticTarget), value));
+ add(new HStaticStore(astAdapter.getMember(staticTarget), value));
}
stack.add(value);
}
@@ -681,7 +681,7 @@ class KernelSsaBuilder extends ir.Visitor with GraphBuilder {
void _pushStaticInvocation(
ir.Node target, List<HInstruction> arguments, TypeMask typeMask) {
HInstruction instruction = new HInvokeStatic(
- astAdapter.getElement(target).declaration, arguments, typeMask,
+ astAdapter.getMember(target), arguments, typeMask,
targetCanThrow: astAdapter.getCanThrow(target));
instruction.sideEffects = astAdapter.getSideEffects(target);
@@ -757,8 +757,8 @@ class KernelSsaBuilder extends ir.Visitor with GraphBuilder {
inputs.addAll(arguments);
HInstruction instruction = new HInvokeSuper(
- astAdapter.getElement(invocation.interfaceTarget),
- astAdapter.getElement(surroundingClass),
+ astAdapter.getMethod(invocation.interfaceTarget),
+ astAdapter.getClass(surroundingClass),
selector,
inputs,
astAdapter.returnTypeOf(invocation.interfaceTarget),
« 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