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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 inline double dreg(unsigned code) const { 89 inline double dreg(unsigned code) const {
90 return rawbits_to_double(dreg_bits(code)); 90 return rawbits_to_double(dreg_bits(code));
91 } 91 }
92 92
93 // Stack pointer accessors. 93 // Stack pointer accessors.
94 inline int64_t spreg() const { 94 inline int64_t spreg() const {
95 DCHECK(SPRegAliasesMatch()); 95 DCHECK(SPRegAliasesMatch());
96 return dump_.sp_; 96 return dump_.sp_;
97 } 97 }
98 98
99 inline int64_t wspreg() const { 99 inline int32_t wspreg() const {
100 DCHECK(SPRegAliasesMatch()); 100 DCHECK(SPRegAliasesMatch());
101 return dump_.wsp_; 101 return static_cast<int32_t>(dump_.wsp_);
102 } 102 }
103 103
104 // Flags accessors. 104 // Flags accessors.
105 inline uint64_t flags_nzcv() const { 105 inline uint32_t flags_nzcv() const {
106 DCHECK(IsComplete()); 106 DCHECK(IsComplete());
107 DCHECK((dump_.flags_ & ~Flags_mask) == 0); 107 DCHECK((dump_.flags_ & ~Flags_mask) == 0);
108 return dump_.flags_ & Flags_mask; 108 return dump_.flags_ & Flags_mask;
109 } 109 }
110 110
111 inline bool IsComplete() const { 111 inline bool IsComplete() const {
112 return completed_; 112 return completed_;
113 } 113 }
114 114
115 private: 115 private:
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 // As Clobber, but for FP registers. 224 // As Clobber, but for FP registers.
225 void ClobberFP(MacroAssembler* masm, RegList reg_list, 225 void ClobberFP(MacroAssembler* masm, RegList reg_list,
226 double const value = kFP64SignallingNaN); 226 double const value = kFP64SignallingNaN);
227 227
228 // As Clobber, but for a CPURegList with either FP or integer registers. When 228 // As Clobber, but for a CPURegList with either FP or integer registers. When
229 // using this method, the clobber value is always the default for the basic 229 // using this method, the clobber value is always the default for the basic
230 // Clobber or ClobberFP functions. 230 // Clobber or ClobberFP functions.
231 void Clobber(MacroAssembler* masm, CPURegList reg_list); 231 void Clobber(MacroAssembler* masm, CPURegList reg_list);
232 232
233 #endif // V8_ARM64_TEST_UTILS_ARM64_H_ 233 #endif // V8_ARM64_TEST_UTILS_ARM64_H_
OLDNEW
« 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