%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
// 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. #include "src/regexp/regexp-bytecodes.h" #include <cctype> #include "src/utils/utils.h" namespace v8 { namespace internal { void RegExpBytecodeDisassembleSingle(const byte* code_base, const byte* pc) { int bytecode = *reinterpret_cast<const int32_t*>(pc) & BYTECODE_MASK; PrintF("%s", RegExpBytecodeName(bytecode)); // 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++) { unsigned char b = pc[i]; PrintF("%c", std::isprint(b) ? b : '.'); } PrintF("\n"); } void RegExpBytecodeDisassemble(const byte* code_base, int length, const char* pattern) { PrintF("[generated bytecode for regexp pattern: '%s']\n", pattern); ptrdiff_t offset = 0; while (offset < length) { const byte* const pc = code_base + offset; PrintF("%p %4" V8PRIxPTRDIFF " ", pc, offset); RegExpBytecodeDisassembleSingle(code_base, pc); offset += RegExpBytecodeLength(*pc); } } } // namespace internal } // namespace v8