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

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

Issue 2997033002: Revert "Implement .getCallType" and "Update status" (Closed)
Patch Set: Created 3 years, 4 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/kernel/types.dart ('k') | pkg/compiler/lib/src/ssa/kernel_impact.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 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 4203 matching lines...) Expand 10 before | Expand all | Expand 10 after
4214 element.kind != ElementKind.FIELD) { 4214 element.kind != ElementKind.FIELD) {
4215 inputs.add(invokeInterceptor(receiver)); 4215 inputs.add(invokeInterceptor(receiver));
4216 } 4216 }
4217 inputs.add(receiver); 4217 inputs.add(receiver);
4218 inputs.addAll(arguments); 4218 inputs.addAll(arguments);
4219 TypeMask type; 4219 TypeMask type;
4220 if (!element.isGetter && selector.isGetter) { 4220 if (!element.isGetter && selector.isGetter) {
4221 type = TypeMaskFactory.inferredTypeForMember( 4221 type = TypeMaskFactory.inferredTypeForMember(
4222 element, globalInferenceResults); 4222 element, globalInferenceResults);
4223 } else if (element.isFunction) { 4223 } else if (element.isFunction) {
4224 MethodElement method = element;
4225 type = TypeMaskFactory.inferredReturnTypeForElement( 4224 type = TypeMaskFactory.inferredReturnTypeForElement(
4226 method, globalInferenceResults); 4225 element, globalInferenceResults);
4227 } else { 4226 } else {
4228 type = closedWorld.commonMasks.dynamicType; 4227 type = closedWorld.commonMasks.dynamicType;
4229 } 4228 }
4230 HInstruction instruction = new HInvokeSuper(element, currentNonClosureClass, 4229 HInstruction instruction = new HInvokeSuper(element, currentNonClosureClass,
4231 selector, inputs, type, sourceInformation, 4230 selector, inputs, type, sourceInformation,
4232 isSetter: selector.isSetter || selector.isIndexSet); 4231 isSetter: selector.isSetter || selector.isIndexSet);
4233 instruction.sideEffects = 4232 instruction.sideEffects =
4234 closedWorld.getSideEffectsOfSelector(selector, null); 4233 closedWorld.getSideEffectsOfSelector(selector, null);
4235 return instruction; 4234 return instruction;
4236 } 4235 }
(...skipping 2603 matching lines...) Expand 10 before | Expand all | Expand 10 after
6840 this.oldReturnLocal, 6839 this.oldReturnLocal,
6841 this.oldReturnType, 6840 this.oldReturnType,
6842 this.oldResolvedAst, 6841 this.oldResolvedAst,
6843 this.oldStack, 6842 this.oldStack,
6844 this.oldLocalsHandler, 6843 this.oldLocalsHandler,
6845 this.inTryStatement, 6844 this.inTryStatement,
6846 this.allFunctionsCalledOnce, 6845 this.allFunctionsCalledOnce,
6847 this.oldElementInferenceResults) 6846 this.oldElementInferenceResults)
6848 : super(function); 6847 : super(function);
6849 } 6848 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/kernel/types.dart ('k') | pkg/compiler/lib/src/ssa/kernel_impact.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698