-
Notifications
You must be signed in to change notification settings - Fork 599
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move bytecode version constant to its own header
Summary: Add a header file that only contains the bytecode version number. This makes it easier to programmatically determine whether the version has been updated, enabling greater signal-to-noise ratio in tooling that prevents forgotten version bumps. Reviewed By: neildhar Differential Revision: D29522296 fbshipit-source-id: 13cdd668b53bafec3049cc19181b334ace9d2ca3
- Loading branch information
1 parent
cec7541
commit 7324df9
Showing
2 changed files
with
29 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
/* | ||
* Copyright (c) Facebook, Inc. and its affiliates. | ||
* | ||
* This source code is licensed under the MIT license found in the | ||
* LICENSE file in the root directory of this source tree. | ||
*/ | ||
|
||
#ifndef HERMES_BCGEN_HBC_BYTECODEVERSION_H | ||
#define HERMES_BCGEN_HBC_BYTECODEVERSION_H | ||
|
||
#include <cstdint> | ||
|
||
/* | ||
* This file should *only* contain the version number constant definition, | ||
* to enable tooling to determine whether the version has been updated. | ||
*/ | ||
|
||
namespace hermes { | ||
namespace hbc { | ||
|
||
// Bytecode version generated by this version of the compiler. | ||
// Updated: Mar 11, 2021 | ||
const static uint32_t BYTECODE_VERSION = 83; | ||
|
||
} // namespace hbc | ||
} // namespace hermes | ||
|
||
#endif // HERMES_BCGEN_HBC_BYTECODEVERSION_H |