Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(922)

Unified Diff: src/arm64/assembler-arm64.h

Issue 2922983002: [arm64] Fix assertion in IsImmLLiteral and enable literal pool tests. (Closed)
Patch Set: Address comments. Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/arm64/assembler-arm64.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « no previous file | src/arm64/assembler-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698