ByteCode: Fixes for TRACE

Change-Id: I6b709a2b5e8014cedb152e763ea4470c6f79de4b
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/222504
Commit-Queue: Brian Osman <brianosman@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
Auto-Submit: Brian Osman <brianosman@google.com>
Reviewed-by: Mike Klein <mtklein@google.com>
This commit is contained in:
Brian Osman 2019-06-20 14:59:12 -04:00 committed by Skia Commit-Bot
parent 6f24faa623
commit ecb3bb53ac

View File

@ -76,6 +76,7 @@ static const uint8_t* disassemble_instruction(const uint8_t* ip) {
VECTOR_DISASSEMBLE(kConvertStoF, "convertstof")
VECTOR_DISASSEMBLE(kConvertUtoF, "convertutof")
VECTOR_DISASSEMBLE(kCos, "cos")
case ByteCodeInstruction::kCross: printf("cross"); break;
VECTOR_MATRIX_DISASSEMBLE(kDivideF, "dividef")
VECTOR_DISASSEMBLE(kDivideS, "divideS")
VECTOR_DISASSEMBLE(kDivideU, "divideu")
@ -1058,7 +1059,7 @@ void ByteCode::runStriped(const ByteCodeFunction* f, float* args[], int nargs, i
const float* uniforms, int uniformCount,
float* outArgs[], int outCount) const {
#ifdef TRACE
disassemble(f);
f->disassemble();
#endif
Interpreter::VValue stack[128];