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

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

Issue 2922983002: [arm64] Fix assertion in IsImmLLiteral and enable literal pool tests. (Closed)
Patch Set: 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') | test/cctest/test-assembler-arm64.cc » ('J')
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..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)
« no previous file with comments | « no previous file | src/arm64/assembler-arm64.cc » ('j') | test/cctest/test-assembler-arm64.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698