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

Unified Diff: test/cctest/test-utils-arm64.h

Issue 1131573006: ARM64: Enable shorten-64-to-32 warning (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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
Index: test/cctest/test-utils-arm64.h
diff --git a/test/cctest/test-utils-arm64.h b/test/cctest/test-utils-arm64.h
index d00ad5e78cda419be593e4019762b1142daab06e..a091bf39328ee3a99af3e062bea0903bc38082c9 100644
--- a/test/cctest/test-utils-arm64.h
+++ b/test/cctest/test-utils-arm64.h
@@ -96,13 +96,13 @@ class RegisterDump {
return dump_.sp_;
}
- inline int64_t wspreg() const {
+ inline int32_t wspreg() const {
DCHECK(SPRegAliasesMatch());
- return dump_.wsp_;
+ return static_cast<int32_t>(dump_.wsp_);
}
// Flags accessors.
- inline uint64_t flags_nzcv() const {
+ inline uint32_t flags_nzcv() const {
DCHECK(IsComplete());
DCHECK((dump_.flags_ & ~Flags_mask) == 0);
return dump_.flags_ & Flags_mask;
« no previous file with comments | « test/cctest/test-fuzz-arm64.cc ('k') | test/unittests/compiler/arm64/instruction-selector-arm64-unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698