// Copyright 2019 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file.
// Args and the bytecode as hex. for (int i = 0; i < RegExpBytecodeLength(bytecode); i++) {
PrintF(", %02x", pc[i]);
}
PrintF(" ");
// Args as ascii. for (int i = 1; i < RegExpBytecodeLength(bytecode); i++) { unsignedchar b = pc[i];
PrintF("%c", std::isprint(b) ? b : '.');
}
PrintF("\n");
}
void RegExpBytecodeDisassemble(const uint8_t* code_base, int length, constchar* pattern) {
PrintF("[generated bytecode for regexp pattern: '%s']\n", pattern);