// Copyright 2023 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. #ifndef V8_OBJECTS_BYTECODE_ARRAY_H_ #define V8_OBJECTS_BYTECODE_ARRAY_H_ #include "src/objects/struct.h" #include "src/objects/trusted-object.h" // Has to be the last include (doesn't have include guards): #include "src/objects/object-macros.h" namespace v8 { namespace internal { class BytecodeWrapper; namespace interpreter { class Register; } // namespace interpreter // TODO(jgruber): These should no longer be included here; instead, all // TorqueGeneratedFooAsserts should be emitted into a global .cc file. #include "torque-generated/src/objects/bytecode-array-tq.inc" // BytecodeArray represents a sequence of interpreter bytecodes. class BytecodeArray : public ExposedTrustedObject { … }; // A BytecodeWrapper wraps a BytecodeArray but lives inside the sandbox. This // can be useful for example when a reference to a BytecodeArray needs to be // stored along other tagged pointers inside an array or similar datastructure. class BytecodeWrapper : public Struct { … }; } // namespace internal } // namespace v8 #include "src/objects/object-macros-undef.h" #endif // V8_OBJECTS_BYTECODE_ARRAY_H_