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

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

Issue 2308983002: Revert "Refactor how we read global-type-inference data from ssa" (Closed)
Patch Set: Created 4 years, 3 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/ssa/builder.dart ('k') | pkg/compiler/lib/src/ssa/kernel_ast_adapter.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) 2016, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2016, 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 'package:kernel/ast.dart' as ir; 5 import 'package:kernel/ast.dart' as ir;
6 6
7 import '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem; 7 import '../common/codegen.dart' show CodegenRegistry, CodegenWorkItem;
8 import '../common/tasks.dart' show CompilerTask; 8 import '../common/tasks.dart' show CompilerTask;
9 import '../compiler.dart'; 9 import '../compiler.dart';
10 import '../diagnostics/spannable.dart'; 10 import '../diagnostics/spannable.dart';
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 HInterceptor interceptor = 291 HInterceptor interceptor =
292 new HInterceptor(receiver, backend.nonNullType); 292 new HInterceptor(receiver, backend.nonNullType);
293 add(interceptor); 293 add(interceptor);
294 inputs.add(interceptor); 294 inputs.add(interceptor);
295 } 295 }
296 inputs.addAll(arguments); 296 inputs.addAll(arguments);
297 297
298 TypeMask type = astAdapter.selectorTypeOf(invocation); 298 TypeMask type = astAdapter.selectorTypeOf(invocation);
299 299
300 push(new HInvokeDynamicMethod(astAdapter.getSelector(invocation), 300 push(new HInvokeDynamicMethod(astAdapter.getSelector(invocation),
301 astAdapter.typeOfInvocation(invocation), inputs, type, isIntercepted)); 301 astAdapter.getTypeMask(invocation), inputs, type, isIntercepted));
302 } 302 }
303 303
304 @override 304 @override
305 visitThisExpression(ir.ThisExpression thisExpression) { 305 visitThisExpression(ir.ThisExpression thisExpression) {
306 stack.add(localsHandler.readThis()); 306 stack.add(localsHandler.readThis());
307 } 307 }
308 308
309 @override 309 @override
310 visitNot(ir.Not not) { 310 visitNot(ir.Not not) {
311 not.operand.accept(this); 311 not.operand.accept(this);
312 push(new HNot(popBoolified(), backend.boolType)); 312 push(new HNot(popBoolified(), backend.boolType));
313 } 313 }
314 } 314 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/builder.dart ('k') | pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698