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

Unified Diff: runtime/vm/kernel.h

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 | « no previous file | runtime/vm/kernel.cc » ('j') | runtime/vm/kernel_to_il.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/kernel.h
diff --git a/runtime/vm/kernel.h b/runtime/vm/kernel.h
index 1a453cc18add12d135266422887ed477318abde0..ec43b8c3fbadd2a9f71bdb85153259d447801db3 100644
--- a/runtime/vm/kernel.h
+++ b/runtime/vm/kernel.h
@@ -19,6 +19,7 @@
M(InvalidType) \
M(DynamicType) \
M(VoidType) \
+ M(BottomType) \
M(InterfaceType) \
M(FunctionType) \
M(TypeParameterType) \
@@ -2681,6 +2682,24 @@ class VoidType : public DartType {
};
+class BottomType : public DartType {
+ public:
+ static BottomType* ReadFrom(Reader* reader);
+
+ virtual ~BottomType();
+
+ DEFINE_CASTING_OPERATIONS(BottomType);
+
+ virtual void AcceptDartTypeVisitor(DartTypeVisitor* visitor);
+ virtual void VisitChildren(Visitor* visitor);
+
+ private:
+ BottomType() {}
+
+ DISALLOW_COPY_AND_ASSIGN(BottomType);
+};
+
+
class InterfaceType : public DartType {
public:
static InterfaceType* ReadFrom(Reader* reader);
@@ -3133,6 +3152,7 @@ class DartTypeVisitor {
VisitDefaultDartType(node);
}
virtual void VisitVoidType(VoidType* node) { VisitDefaultDartType(node); }
+ virtual void VisitBottomType(BottomType* node) { VisitDefaultDartType(node); }
virtual void VisitInterfaceType(InterfaceType* node) {
VisitDefaultDartType(node);
}
« no previous file with comments | « no previous file | runtime/vm/kernel.cc » ('j') | runtime/vm/kernel_to_il.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698