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

Unified Diff: runtime/vm/kernel.cc

Issue 2792333002: Add Kernel AST nodes for Vector and Closure primitives in VM (Closed)
Patch Set: Remove PositionScopes and static_cast for UInts 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.h ('k') | runtime/vm/kernel_binary.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/kernel.cc
diff --git a/runtime/vm/kernel.cc b/runtime/vm/kernel.cc
index ea314283a138ea34a4042a9ee5c7575848d02cf8..293f946592b9babbcaa7ebb65226015547d9a561 100644
--- a/runtime/vm/kernel.cc
+++ b/runtime/vm/kernel.cc
@@ -895,6 +895,71 @@ void Let::VisitChildren(Visitor* visitor) {
}
+VectorCreation::~VectorCreation() {}
+
+
+void VectorCreation::AcceptExpressionVisitor(ExpressionVisitor* visitor) {
+ visitor->VisitVectorCreation(this);
+}
+
+
+void VectorCreation::VisitChildren(Visitor* visitor) {}
+
+
+VectorGet::~VectorGet() {}
+
+
+void VectorGet::AcceptExpressionVisitor(ExpressionVisitor* visitor) {
+ visitor->VisitVectorGet(this);
+}
+
+
+void VectorGet::VisitChildren(Visitor* visitor) {
+ vector_expression()->AcceptExpressionVisitor(visitor);
+}
+
+
+VectorSet::~VectorSet() {}
+
+
+void VectorSet::AcceptExpressionVisitor(ExpressionVisitor* visitor) {
+ visitor->VisitVectorSet(this);
+}
+
+
+void VectorSet::VisitChildren(Visitor* visitor) {
+ vector_expression()->AcceptExpressionVisitor(visitor);
+ value()->AcceptExpressionVisitor(visitor);
+}
+
+
+VectorCopy::~VectorCopy() {}
+
+
+void VectorCopy::AcceptExpressionVisitor(ExpressionVisitor* visitor) {
+ visitor->VisitVectorCopy(this);
+}
+
+
+void VectorCopy::VisitChildren(Visitor* visitor) {
+ vector_expression()->AcceptExpressionVisitor(visitor);
+}
+
+
+ClosureCreation::~ClosureCreation() {}
+
+
+void ClosureCreation::AcceptExpressionVisitor(ExpressionVisitor* visitor) {
+ visitor->VisitClosureCreation(this);
+}
+
+
+void ClosureCreation::VisitChildren(Visitor* visitor) {
+ context_vector()->AcceptExpressionVisitor(visitor);
+ function_type()->AcceptDartTypeVisitor(visitor);
+}
+
+
Statement::~Statement() {}
@@ -1295,6 +1360,17 @@ void TypeParameterType::AcceptDartTypeVisitor(DartTypeVisitor* visitor) {
void TypeParameterType::VisitChildren(Visitor* visitor) {}
+VectorType::~VectorType() {}
+
+
+void VectorType::AcceptDartTypeVisitor(DartTypeVisitor* visitor) {
+ visitor->VisitVectorType(this);
+}
+
+
+void VectorType::VisitChildren(Visitor* visitor) {}
+
+
TypeParameter::~TypeParameter() {}
« no previous file with comments | « runtime/vm/kernel.h ('k') | runtime/vm/kernel_binary.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698