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

Side by Side Diff: runtime/vm/kernel_to_il.cc

Issue 2891053003: Add support for converted closures with explicit contexts to VM (Closed)
Patch Set: Update the code according to Martin's comments 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) 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 #include <set> 5 #include <set>
6 6
7 #include "vm/kernel_to_il.h" 7 #include "vm/kernel_to_il.h"
8 8
9 #include "vm/compiler.h" 9 #include "vm/compiler.h"
10 #include "vm/intermediate_language.h" 10 #include "vm/intermediate_language.h"
(...skipping 2594 matching lines...) Expand 10 before | Expand all | Expand 10 after
2605 void DartTypeTranslator::VisitDynamicType(DynamicType* node) { 2605 void DartTypeTranslator::VisitDynamicType(DynamicType* node) {
2606 result_ = Object::dynamic_type().raw(); 2606 result_ = Object::dynamic_type().raw();
2607 } 2607 }
2608 2608
2609 2609
2610 void DartTypeTranslator::VisitVoidType(VoidType* node) { 2610 void DartTypeTranslator::VisitVoidType(VoidType* node) {
2611 result_ = Object::void_type().raw(); 2611 result_ = Object::void_type().raw();
2612 } 2612 }
2613 2613
2614 2614
2615 void DartTypeTranslator::VisitVectorType(VectorType* node) {
2616 result_ = Object::vector_type().raw();
2617 }
2618
2619
2615 void DartTypeTranslator::VisitBottomType(BottomType* node) { 2620 void DartTypeTranslator::VisitBottomType(BottomType* node) {
2616 result_ = 2621 result_ =
2617 dart::Class::Handle(Z, I->object_store()->null_class()).CanonicalType(); 2622 dart::Class::Handle(Z, I->object_store()->null_class()).CanonicalType();
2618 } 2623 }
2619 2624
2620 2625
2621 const TypeArguments& DartTypeTranslator::TranslateTypeArguments( 2626 const TypeArguments& DartTypeTranslator::TranslateTypeArguments(
2622 DartType** dart_types, 2627 DartType** dart_types,
2623 intptr_t length) { 2628 intptr_t length) {
2624 bool only_dynamic = true; 2629 bool only_dynamic = true;
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
2739 thread->clear_sticky_error(); 2744 thread->clear_sticky_error();
2740 return error.raw(); 2745 return error.raw();
2741 } 2746 }
2742 } 2747 }
2743 2748
2744 2749
2745 } // namespace kernel 2750 } // namespace kernel
2746 } // namespace dart 2751 } // namespace dart
2747 2752
2748 #endif // !defined(DART_PRECOMPILED_RUNTIME) 2753 #endif // !defined(DART_PRECOMPILED_RUNTIME)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698