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

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

Issue 1157333003: Compute more SendStructures on ResolverVisitor. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Check for explicit this property access. Created 5 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 unified diff | Download patch
« no previous file with comments | « pkg/compiler/lib/src/resolved_visitor.dart ('k') | pkg/compiler/lib/src/types/type_mask.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) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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 part of ssa; 5 part of ssa;
6 6
7 class SsaFunctionCompiler implements FunctionCompiler { 7 class SsaFunctionCompiler implements FunctionCompiler {
8 SsaCodeGeneratorTask generator; 8 SsaCodeGeneratorTask generator;
9 SsaBuilderTask builder; 9 SsaBuilderTask builder;
10 SsaOptimizerTask optimizer; 10 SsaOptimizerTask optimizer;
(...skipping 4458 matching lines...) Expand 10 before | Expand all | Expand 10 after
4469 4469
4470 @override 4470 @override
4471 void visitUnresolvedSuperGet( 4471 void visitUnresolvedSuperGet(
4472 ast.Send node, 4472 ast.Send node,
4473 Element element, 4473 Element element,
4474 _) { 4474 _) {
4475 handleUnresolvedSuperInvoke(node); 4475 handleUnresolvedSuperInvoke(node);
4476 } 4476 }
4477 4477
4478 @override 4478 @override
4479 void visitSuperSetterGet(
4480 ast.Send node,
4481 MethodElement setter,
4482 _) {
4483 handleUnresolvedSuperInvoke(node);
4484 }
4485
4486 @override
4479 void visitUnresolvedSuperInvoke( 4487 void visitUnresolvedSuperInvoke(
4480 ast.Send node, 4488 ast.Send node,
4481 Element element, 4489 Element element,
4482 ast.Node argument, 4490 ast.Node argument,
4483 Selector selector, 4491 Selector selector,
4484 _) { 4492 _) {
4485 handleUnresolvedSuperInvoke(node); 4493 handleUnresolvedSuperInvoke(node);
4486 } 4494 }
4487 4495
4488 @override 4496 @override
(...skipping 3355 matching lines...) Expand 10 before | Expand all | Expand 10 after
7844 if (unaliased is TypedefType) throw 'unable to unalias $type'; 7852 if (unaliased is TypedefType) throw 'unable to unalias $type';
7845 unaliased.accept(this, builder); 7853 unaliased.accept(this, builder);
7846 } 7854 }
7847 7855
7848 void visitDynamicType(DynamicType type, SsaBuilder builder) { 7856 void visitDynamicType(DynamicType type, SsaBuilder builder) {
7849 JavaScriptBackend backend = builder.compiler.backend; 7857 JavaScriptBackend backend = builder.compiler.backend;
7850 ClassElement cls = backend.findHelper('DynamicRuntimeType'); 7858 ClassElement cls = backend.findHelper('DynamicRuntimeType');
7851 builder.push(new HDynamicType(type, new TypeMask.exact(cls, classWorld))); 7859 builder.push(new HDynamicType(type, new TypeMask.exact(cls, classWorld)));
7852 } 7860 }
7853 } 7861 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/resolved_visitor.dart ('k') | pkg/compiler/lib/src/types/type_mask.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698