// Copyright 2025 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 "irregexp/imported/regexp-code-generator.h" #include #include #include #include #include #include "irregexp/imported/regexp-bytecode-analysis.h" #include "irregexp/imported/regexp-bytecode-iterator-inl.h" #include "irregexp/imported/regexp-bytecodes-inl.h" namespace v8 { namespace internal { namespace regexp { #define __ masm_-> CodeGenerator::CodeGenerator(Isolate* isolate, RegExpMacroAssembler* masm, DirectHandle bytecode) : isolate_(isolate), zone_(isolate_->allocator(), ZONE_NAME), masm_(masm), bytecode_(bytecode), iter_(bytecode_), labels_(zone_.AllocateArray