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:
parent
244ba5550b
commit
893403fb38
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user