Interpreter: Remove vectorized branches

These are unused (and don't really make sense)

Change-Id: Ib3eac82204df91aabbc934ac77c21282860f1f8c
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/213661
Commit-Queue: Ethan Nicholas <ethannicholas@google.com>
Reviewed-by: Ethan Nicholas <ethannicholas@google.com>
This commit is contained in:
Brian Osman 2019-05-14 13:57:52 -04:00 committed by Skia Commit-Bot
parent 8bd6e8f198
commit b9ce40a968

View File

@ -448,10 +448,6 @@ void Interpreter::run(const ByteCodeFunction& f, Value* stack, Value args[], Val
switch (inst) {
VECTOR_BINARY_OP(kAddI, int32_t, fSigned, +)
VECTOR_BINARY_OP(kAddF, float, fFloat, +)
case ByteCodeInstruction::kBranch: {
ip = code + READ16();
break;
}
VECTOR_BINARY_OP(kCompareIEQ, int32_t, fSigned, ==)
VECTOR_BINARY_OP(kCompareFEQ, float, fFloat, ==)
VECTOR_BINARY_OP(kCompareINEQ, int32_t, fSigned, !=)
@ -468,13 +464,6 @@ void Interpreter::run(const ByteCodeFunction& f, Value* stack, Value args[], Val
VECTOR_BINARY_OP(kCompareSLTEQ, int32_t, fSigned, <=)
VECTOR_BINARY_OP(kCompareULTEQ, uint32_t, fUnsigned, <=)
VECTOR_BINARY_OP(kCompareFLTEQ, float, fFloat, <=)
case ByteCodeInstruction::kConditionalBranch: {
uint16_t target = READ16();
if (POP().fBool) {
ip = code + target;
}
break;
}
VECTOR_BINARY_OP(kDivideS, int32_t, fSigned, /)
VECTOR_BINARY_OP(kDivideU, uint32_t, fUnsigned, /)
VECTOR_BINARY_OP(kDivideF, float, fFloat, /)