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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/codegen.dart

Issue 11348177: Cleanup after the interceptor refactoring work, and add a new SSA instruction for an interceptor, s… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 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
Index: sdk/lib/_internal/compiler/implementation/ssa/codegen.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/ssa/codegen.dart (revision 15192)
+++ sdk/lib/_internal/compiler/implementation/ssa/codegen.dart (working copy)
@@ -1529,6 +1529,17 @@
arguments);
}
+ void visitInterceptor(HInterceptor node) {
+ Element element = backend.getInterceptorMethod;
+ assert(element != null);
+ world.registerStaticUse(element);
+ js.VariableUse interceptor =
+ new js.VariableUse(backend.namer.isolateAccess(element));
+ use(node.receiver);
+ List<js.Expression> arguments = <js.Expression>[pop()];
+ push(new js.Call(interceptor, arguments), node);
+ }
+
visitInvokeDynamicMethod(HInvokeDynamicMethod node) {
use(node.receiver);
js.Expression object = pop();
@@ -1651,9 +1662,7 @@
}
visitInvokeStatic(HInvokeStatic node) {
- if (true &&
- (node.typeCode() == HInstruction.INVOKE_STATIC_TYPECODE ||
- node.typeCode() == HInstruction.INVOKE_INTERCEPTOR_TYPECODE)) {
+ if (node.typeCode() == HInstruction.INVOKE_STATIC_TYPECODE) {
// Register this invocation to collect the types used at all call sites.
backend.registerStaticInvocation(node, types);
}

Powered by Google App Engine
This is Rietveld 408576698