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

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

Issue 2610903004: Implement async/await/yield and async for-in (Closed)
Patch Set: dartfmt Created 3 years, 11 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/graph_builder.dart ('k') | no next file » | 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: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 '../common/names.dart'; 9 import '../common/names.dart';
10 import '../compiler.dart'; 10 import '../compiler.dart';
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 TypeMaskFactory.inferredReturnTypeForElement( 398 TypeMaskFactory.inferredReturnTypeForElement(
399 _backend.helpers.exceptionUnwrapper, _globalInferenceResults); 399 _backend.helpers.exceptionUnwrapper, _globalInferenceResults);
400 400
401 ir.Procedure get traceFromException => 401 ir.Procedure get traceFromException =>
402 kernel.functions[_backend.helpers.traceFromException]; 402 kernel.functions[_backend.helpers.traceFromException];
403 403
404 TypeMask get traceFromExceptionType => 404 TypeMask get traceFromExceptionType =>
405 TypeMaskFactory.inferredReturnTypeForElement( 405 TypeMaskFactory.inferredReturnTypeForElement(
406 _backend.helpers.traceFromException, _globalInferenceResults); 406 _backend.helpers.traceFromException, _globalInferenceResults);
407 407
408 ir.Procedure get streamIteratorConstructor =>
409 kernel.functions[_backend.helpers.streamIteratorConstructor];
410
411 TypeMask get streamIteratorConstructorType =>
412 TypeMaskFactory.inferredReturnTypeForElement(
413 _backend.helpers.streamIteratorConstructor, _globalInferenceResults);
414
408 ir.Procedure get mapLiteralUntypedMaker => 415 ir.Procedure get mapLiteralUntypedMaker =>
409 kernel.functions[_backend.helpers.mapLiteralUntypedMaker]; 416 kernel.functions[_backend.helpers.mapLiteralUntypedMaker];
410 417
411 MemberElement get jsIndexableLength => _backend.helpers.jsIndexableLength; 418 MemberElement get jsIndexableLength => _backend.helpers.jsIndexableLength;
412 419
413 ir.Procedure get checkConcurrentModificationError => 420 ir.Procedure get checkConcurrentModificationError =>
414 kernel.functions[_backend.helpers.checkConcurrentModificationError]; 421 kernel.functions[_backend.helpers.checkConcurrentModificationError];
415 422
416 TypeMask get checkConcurrentModificationErrorReturnType => 423 TypeMask get checkConcurrentModificationErrorReturnType =>
417 TypeMaskFactory.inferredReturnTypeForElement( 424 TypeMaskFactory.inferredReturnTypeForElement(
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 ir.Procedure get createRuntimeType => 464 ir.Procedure get createRuntimeType =>
458 kernel.functions[_backend.helpers.createRuntimeType]; 465 kernel.functions[_backend.helpers.createRuntimeType];
459 466
460 TypeMask get createRuntimeTypeReturnType => 467 TypeMask get createRuntimeTypeReturnType =>
461 TypeMaskFactory.inferredReturnTypeForElement( 468 TypeMaskFactory.inferredReturnTypeForElement(
462 _backend.helpers.createRuntimeType, _globalInferenceResults); 469 _backend.helpers.createRuntimeType, _globalInferenceResults);
463 470
464 ir.Class get objectClass => 471 ir.Class get objectClass =>
465 kernel.classes[_compiler.commonElements.objectClass]; 472 kernel.classes[_compiler.commonElements.objectClass];
466 473
474 ir.Class get futureClass =>
475 kernel.classes[_compiler.commonElements.futureClass];
476
477 TypeMask makeSubtypeOfObject(ClosedWorld closedWorld) =>
478 new TypeMask.subclass(_compiler.commonElements.objectClass, closedWorld);
479
467 ir.Procedure get currentIsolate => 480 ir.Procedure get currentIsolate =>
468 kernel.functions[_backend.helpers.currentIsolate]; 481 kernel.functions[_backend.helpers.currentIsolate];
469 482
470 ir.Procedure get callInIsolate => 483 ir.Procedure get callInIsolate =>
471 kernel.functions[_backend.helpers.callInIsolate]; 484 kernel.functions[_backend.helpers.callInIsolate];
472 485
473 bool isInForeignLibrary(ir.Member member) => 486 bool isInForeignLibrary(ir.Member member) =>
474 _backend.isForeign(getElement(member)); 487 _backend.isForeign(getElement(member));
475 488
476 native.NativeBehavior getNativeBehavior(ir.Node node) { 489 native.NativeBehavior getNativeBehavior(ir.Node node) {
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
964 977
965 @override 978 @override
966 String get name => null; 979 String get name => null;
967 980
968 @override 981 @override
969 int get nestingLevel => 1; 982 int get nestingLevel => 1;
970 983
971 @override 984 @override
972 ast.Node get statement => null; 985 ast.Node get statement => null;
973 } 986 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/ssa/graph_builder.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698