Add a new statement type 'InlineMarker' to indicate inlined functions.
This will be leveraged in followup CLs to avoid recursive inlining death
spirals.
Change-Id: Icf99c88c4acaaa766e0dc0971830329e24d70509
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/315861
Reviewed-by: Brian Osman <brianosman@google.com>
Commit-Queue: John Stiles <johnstiles@google.com>
diff --git a/src/sksl/SkSLByteCodeGenerator.cpp b/src/sksl/SkSLByteCodeGenerator.cpp
index 772baa4..bd274b9 100644
--- a/src/sksl/SkSLByteCodeGenerator.cpp
+++ b/src/sksl/SkSLByteCodeGenerator.cpp
@@ -1805,8 +1805,6 @@
case Statement::Kind::kIf:
this->writeIfStatement(s.as<IfStatement>());
break;
- case Statement::Kind::kNop:
- break;
case Statement::Kind::kReturn:
this->writeReturnStatement(s.as<ReturnStatement>());
break;
@@ -1819,6 +1817,9 @@
case Statement::Kind::kWhile:
this->writeWhileStatement(s.as<WhileStatement>());
break;
+ case Statement::Kind::kInlineMarker:
+ case Statement::Kind::kNop:
+ break;
default:
SkASSERT(false);
}