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

Unified Diff: runtime/vm/kernel_to_il.cc

Issue 2863493002: Support BottomType in the VM Kernel reader (Closed)
Patch Set: Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/kernel_to_il.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/kernel_to_il.cc
diff --git a/runtime/vm/kernel_to_il.cc b/runtime/vm/kernel_to_il.cc
index 392ada66538ef3ff4e65c38f6bd6c3df4bb76ebe..167bf2a1688b24f0a7d85a175cef6e8763a983b5 100644
--- a/runtime/vm/kernel_to_il.cc
+++ b/runtime/vm/kernel_to_il.cc
@@ -4843,6 +4843,12 @@ void DartTypeTranslator::VisitVoidType(VoidType* node) {
}
+void DartTypeTranslator::VisitBottomType(BottomType* node) {
+ result_ =
+ dart::Class::Handle(Z, I->object_store()->null_class()).CanonicalType();
Kevin Millikin (Google) 2017/05/03 21:01:06 This is the only interesting code. Is this the ri
regis 2017/05/04 09:35:10 This should be fine.
+}
+
+
const TypeArguments& DartTypeTranslator::TranslateTypeArguments(
DartType** dart_types,
intptr_t length) {
« no previous file with comments | « runtime/vm/kernel_to_il.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698