clarify can-we-call-JIT logic

I think this makes the relatioship between mask and entry clearer?
Can't have JIT code handle >0 elements unless that JIT code itself
exists.

Change-Id: I238d54a5084c7f90bd32c83db5423840cf415b17
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/222856
Commit-Queue: Mike Klein <mtklein@google.com>
Reviewed-by: Herb Derby <herb@google.com>
This commit is contained in:
Mike Klein 2019-06-21 11:42:44 -05:00 committed by Skia Commit-Bot
parent 244ba5550b
commit 893403fb38

View File

@ -984,8 +984,8 @@ namespace skvm {
fJITLock.release(); // pairs with tryAcquire() in the if(). fJITLock.release(); // pairs with tryAcquire() in the if().
} }
const int jitN = n & mask; if (const int jitN = n & mask) {
if (entry && jitN > 0) { SkASSERT(entry);
bool ran = true; bool ran = true;
switch (nargs) { switch (nargs) {