| Index: src/arm64/assembler-arm64.h
|
| diff --git a/src/arm64/assembler-arm64.h b/src/arm64/assembler-arm64.h
|
| index c1e0352cdf61d0e7f3b6ab4493b558ff0dfcba80..40bf105ce80feae60c560125dbf18af7afcbbc12 100644
|
| --- a/src/arm64/assembler-arm64.h
|
| +++ b/src/arm64/assembler-arm64.h
|
| @@ -3494,6 +3494,22 @@ class Assembler : public AssemblerBase {
|
| static constexpr int kGap = 128;
|
|
|
| public:
|
| +#ifdef DEBUG
|
| + // Functions used for testing.
|
| + int GetConstantPoolEntriesSizeForTesting() const {
|
| + // Do not include branch over the pool.
|
| + return constpool_.EntryCount() * kPointerSize;
|
| + }
|
| +
|
| + static constexpr int GetCheckConstPoolIntervalForTesting() {
|
| + return kCheckConstPoolInterval;
|
| + }
|
| +
|
| + static constexpr int GetApproxMaxDistToConstPoolForTesting() {
|
| + return kApproxMaxDistToConstPool;
|
| + }
|
| +#endif
|
| +
|
| class FarBranchInfo {
|
| public:
|
| FarBranchInfo(int offset, Label* label)
|
|
|