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

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

Issue 2673513003: dart2js: Introduce HGetLength to replace strange use of HFieldGet (Closed)
Patch Set: Created 3 years, 10 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) 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:js_runtime/shared/embedded_names.dart'; 5 import 'package:js_runtime/shared/embedded_names.dart';
6 import 'package:kernel/ast.dart' as ir; 6 import 'package:kernel/ast.dart' as ir;
7 7
8 import '../common.dart'; 8 import '../common.dart';
9 import '../compiler.dart'; 9 import '../compiler.dart';
10 import '../constants/expressions.dart'; 10 import '../constants/expressions.dart';
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 ir.Procedure get fallThroughError => 382 ir.Procedure get fallThroughError =>
383 kernel.functions[_backend.helpers.fallThroughError]; 383 kernel.functions[_backend.helpers.fallThroughError];
384 384
385 TypeMask get fallThroughErrorType => 385 TypeMask get fallThroughErrorType =>
386 TypeMaskFactory.inferredReturnTypeForElement( 386 TypeMaskFactory.inferredReturnTypeForElement(
387 _backend.helpers.fallThroughError, _globalInferenceResults); 387 _backend.helpers.fallThroughError, _globalInferenceResults);
388 388
389 ir.Procedure get mapLiteralUntypedMaker => 389 ir.Procedure get mapLiteralUntypedMaker =>
390 kernel.functions[_backend.helpers.mapLiteralUntypedMaker]; 390 kernel.functions[_backend.helpers.mapLiteralUntypedMaker];
391 391
392 MemberElement get jsIndexableLength => _backend.helpers.jsIndexableLength;
393
394 ir.Procedure get checkConcurrentModificationError => 392 ir.Procedure get checkConcurrentModificationError =>
395 kernel.functions[_backend.helpers.checkConcurrentModificationError]; 393 kernel.functions[_backend.helpers.checkConcurrentModificationError];
396 394
397 TypeMask get checkConcurrentModificationErrorReturnType => 395 TypeMask get checkConcurrentModificationErrorReturnType =>
398 TypeMaskFactory.inferredReturnTypeForElement( 396 TypeMaskFactory.inferredReturnTypeForElement(
399 _backend.helpers.checkConcurrentModificationError, 397 _backend.helpers.checkConcurrentModificationError,
400 _globalInferenceResults); 398 _globalInferenceResults);
401 399
402 ir.Procedure get checkSubtype => 400 ir.Procedure get checkSubtype =>
403 kernel.functions[_backend.helpers.checkSubtype]; 401 kernel.functions[_backend.helpers.checkSubtype];
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after
886 JumpTarget continueTarget = 884 JumpTarget continueTarget =
887 astAdapter.getJumpTarget(switchCase, isContinueTarget: true); 885 astAdapter.getJumpTarget(switchCase, isContinueTarget: true);
888 assert(continueTarget is KernelJumpTarget); 886 assert(continueTarget is KernelJumpTarget);
889 targetIndexMap[continueTarget] = switchIndex; 887 targetIndexMap[continueTarget] = switchIndex;
890 assert(builder.jumpTargets[continueTarget] == null); 888 assert(builder.jumpTargets[continueTarget] == null);
891 builder.jumpTargets[continueTarget] = this; 889 builder.jumpTargets[continueTarget] = this;
892 switchIndex++; 890 switchIndex++;
893 } 891 }
894 } 892 }
895 } 893 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698