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

Side by Side Diff: src/arm64/instructions-arm64.cc

Issue 559073003: ARM64: Change some incorect uses of ptrdiff_t to int64_t. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « src/arm64/instructions-arm64.h ('k') | src/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/v8.h" 5 #include "src/v8.h"
6 6
7 #if V8_TARGET_ARCH_ARM64 7 #if V8_TARGET_ARCH_ARM64
8 8
9 #define ARM64_DEFINE_FP_STATICS 9 #define ARM64_DEFINE_FP_STATICS
10 10
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 switch (op) { 175 switch (op) {
176 case STP_x: 176 case STP_x:
177 case LDP_x: 177 case LDP_x:
178 case STP_d: 178 case STP_d:
179 case LDP_d: return LSDoubleWord; 179 case LDP_d: return LSDoubleWord;
180 default: return LSWord; 180 default: return LSWord;
181 } 181 }
182 } 182 }
183 183
184 184
185 ptrdiff_t Instruction::ImmPCOffset() { 185 int64_t Instruction::ImmPCOffset() {
186 ptrdiff_t offset; 186 int64_t offset;
187 if (IsPCRelAddressing()) { 187 if (IsPCRelAddressing()) {
188 // PC-relative addressing. Only ADR is supported. 188 // PC-relative addressing. Only ADR is supported.
189 offset = ImmPCRel(); 189 offset = ImmPCRel();
190 } else if (BranchType() != UnknownBranchType) { 190 } else if (BranchType() != UnknownBranchType) {
191 // All PC-relative branches. 191 // All PC-relative branches.
192 // Relative branch offsets are instruction-size-aligned. 192 // Relative branch offsets are instruction-size-aligned.
193 offset = ImmBranch() << kInstructionSizeLog2; 193 offset = ImmBranch() << kInstructionSizeLog2;
194 } else { 194 } else {
195 // Load literal (offset from PC). 195 // Load literal (offset from PC).
196 DCHECK(IsLdrLiteral()); 196 DCHECK(IsLdrLiteral());
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 uint64_t payload = ImmMoveWide(); 308 uint64_t payload = ImmMoveWide();
309 // TODO(all): If we extend ::InlineData() to support bigger data, we need 309 // TODO(all): If we extend ::InlineData() to support bigger data, we need
310 // to update this method too. 310 // to update this method too.
311 return payload; 311 return payload;
312 } 312 }
313 313
314 314
315 } } // namespace v8::internal 315 } } // namespace v8::internal
316 316
317 #endif // V8_TARGET_ARCH_ARM64 317 #endif // V8_TARGET_ARCH_ARM64
OLDNEW
« no previous file with comments | « src/arm64/instructions-arm64.h ('k') | src/arm64/lithium-codegen-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698