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

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

Issue 2981543002: Handle type variable test and typed list literal. (Closed)
Patch Set: Updated cf. comment Created 3 years, 5 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
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 import 'dart:collection'; 5 import 'dart:collection';
6 6
7 import 'package:js_runtime/shared/embedded_names.dart'; 7 import 'package:js_runtime/shared/embedded_names.dart';
8 8
9 import '../closure.dart'; 9 import '../closure.dart';
10 import '../common.dart'; 10 import '../common.dart';
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 sourceInformationBuilder.buildVariableDeclaration(); 249 sourceInformationBuilder.buildVariableDeclaration();
250 localsHandler = new LocalsHandler( 250 localsHandler = new LocalsHandler(
251 this, 251 this,
252 target, 252 target,
253 target.memberContext, 253 target.memberContext,
254 target.contextClass, 254 target.contextClass,
255 null, 255 null,
256 closedWorld.nativeData, 256 closedWorld.nativeData,
257 closedWorld.interceptorData); 257 closedWorld.interceptorData);
258 loopHandler = new SsaLoopHandler(this); 258 loopHandler = new SsaLoopHandler(this);
259 typeBuilder = new TypeBuilderImpl(this); 259 typeBuilder = new TypeBuilder(this);
260 } 260 }
261 261
262 MemberElement get targetElement => target; 262 MemberElement get targetElement => target;
263 263
264 /// Reference to resolved elements in [target]'s AST. 264 /// Reference to resolved elements in [target]'s AST.
265 TreeElements get elements => resolvedAst.elements; 265 TreeElements get elements => resolvedAst.elements;
266 266
267 @override 267 @override
268 SemanticSendVisitor get sendVisitor => this; 268 SemanticSendVisitor get sendVisitor => this;
269 269
(...skipping 6576 matching lines...) Expand 10 before | Expand all | Expand 10 after
6846 this.oldReturnLocal, 6846 this.oldReturnLocal,
6847 this.oldReturnType, 6847 this.oldReturnType,
6848 this.oldResolvedAst, 6848 this.oldResolvedAst,
6849 this.oldStack, 6849 this.oldStack,
6850 this.oldLocalsHandler, 6850 this.oldLocalsHandler,
6851 this.inTryStatement, 6851 this.inTryStatement,
6852 this.allFunctionsCalledOnce, 6852 this.allFunctionsCalledOnce,
6853 this.oldElementInferenceResults) 6853 this.oldElementInferenceResults)
6854 : super(function); 6854 : super(function);
6855 } 6855 }
6856
6857 class TypeBuilderImpl extends TypeBuilder {
6858 TypeBuilderImpl(GraphBuilder builder) : super(builder);
6859
6860 @override
6861 InterfaceType getThisType(covariant ClassElement cls) {
6862 return cls.thisType;
6863 }
6864 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/js_emitter/type_test_registry.dart ('k') | pkg/compiler/lib/src/ssa/builder_kernel.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698