Index: src/arm64/assembler-arm64.h |
diff --git a/src/arm64/assembler-arm64.h b/src/arm64/assembler-arm64.h |
index c1e0352cdf61d0e7f3b6ab4493b558ff0dfcba80..db6c3fe254e190edabfa40a39d6cb849f3763bf3 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 GetConstantPoolEntriesSize() const { |
Jarin
2017/06/13 14:21:55
Normally testing functions have ForTesting suffix.
georgia.kouveli
2017/06/14 09:46:09
Done.
|
+ // Do not include branch over the pool. |
+ return constpool_.EntryCount() * kPointerSize; |
+ } |
+ |
+ static constexpr int GetCheckConstPoolInterval() { |
+ return kCheckConstPoolInterval; |
+ } |
+ |
+ static constexpr int GetApproxMaxDistToConstPool() { |
+ return kApproxMaxDistToConstPool; |
+ } |
+#endif |
+ |
class FarBranchInfo { |
public: |
FarBranchInfo(int offset, Label* label) |