SIGN IN SIGN UP
facebook / hermes UNCLAIMED

A JavaScript engine optimized for running React Native.

0 0 24 JavaScript
/*
* 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<uint8_t> 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