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

Unified Diff: runtime/vm/kernel_binary.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
Index: runtime/vm/kernel_binary.cc
diff --git a/runtime/vm/kernel_binary.cc b/runtime/vm/kernel_binary.cc
index e7b25c9a2347821770517b9c67d3a134431afdec..311a69a112af6cce29d1d281df5003147227bb8d 100644
--- a/runtime/vm/kernel_binary.cc
+++ b/runtime/vm/kernel_binary.cc
@@ -1381,6 +1381,8 @@ DartType* DartType::ReadFrom(Reader* reader) {
return DynamicType::ReadFrom(reader);
case kVoidType:
return VoidType::ReadFrom(reader);
+ case kBottomType:
+ return BottomType::ReadFrom(reader);
case kInterfaceType:
return InterfaceType::ReadFrom(reader);
case kSimpleInterfaceType:
@@ -1421,6 +1423,12 @@ VoidType* VoidType::ReadFrom(Reader* reader) {
}
+BottomType* BottomType::ReadFrom(Reader* reader) {
+ TRACE_READ_OFFSET();
+ return new BottomType();
+}
+
+
InterfaceType* InterfaceType::ReadFrom(Reader* reader) {
TRACE_READ_OFFSET();
intptr_t klass_name = Reference::ReadClassFrom(reader);

Powered by Google App Engine
This is Rietveld 408576698