/* * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ #include "hermes/InternalJavaScript/InternalBytecode.h" #include "hermes/BCGen/HBC/BytecodeFileFormat.h" namespace hermes { namespace vm { llvh::ArrayRef getInternalBytecode() { // Bytecode is required to be aligned, so ensure we don't fail to load it // at runtime. alignas(hbc::BYTECODE_ALIGNMENT) static const uint8_t InternalBytecode[] = { #include "InternalBytecode.inc" }; return llvh::makeArrayRef(InternalBytecode, sizeof(InternalBytecode)); } } // namespace vm } // namespace hermes