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

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

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/assembler-arm64-inl.h ('k') | src/arm64/instructions-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 #ifndef V8_ARM64_INSTRUCTIONS_ARM64_H_ 5 #ifndef V8_ARM64_INSTRUCTIONS_ARM64_H_
6 #define V8_ARM64_INSTRUCTIONS_ARM64_H_ 6 #define V8_ARM64_INSTRUCTIONS_ARM64_H_
7 7
8 #include "src/arm64/constants-arm64.h" 8 #include "src/arm64/constants-arm64.h"
9 #include "src/arm64/utils-arm64.h" 9 #include "src/arm64/utils-arm64.h"
10 #include "src/globals.h" 10 #include "src/globals.h"
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
331 // which is encoded as 331 // which is encoded as
332 // orr r<n>, xzr, r<n> 332 // orr r<n>, xzr, r<n>
333 return (Mask(LogicalShiftedMask) == ORR_x) && 333 return (Mask(LogicalShiftedMask) == ORR_x) &&
334 (Rd() == Rm()) && 334 (Rd() == Rm()) &&
335 (Rd() == n); 335 (Rd() == n);
336 } 336 }
337 337
338 // Find the PC offset encoded in this instruction. 'this' may be a branch or 338 // Find the PC offset encoded in this instruction. 'this' may be a branch or
339 // a PC-relative addressing instruction. 339 // a PC-relative addressing instruction.
340 // The offset returned is unscaled. 340 // The offset returned is unscaled.
341 ptrdiff_t ImmPCOffset(); 341 int64_t ImmPCOffset();
342 342
343 // Find the target of this instruction. 'this' may be a branch or a 343 // Find the target of this instruction. 'this' may be a branch or a
344 // PC-relative addressing instruction. 344 // PC-relative addressing instruction.
345 Instruction* ImmPCOffsetTarget(); 345 Instruction* ImmPCOffsetTarget();
346 346
347 static bool IsValidImmPCOffset(ImmBranchType branch_type, int32_t offset); 347 static bool IsValidImmPCOffset(ImmBranchType branch_type, int32_t offset);
348 bool IsTargetInImmPCOffsetRange(Instruction* target); 348 bool IsTargetInImmPCOffsetRange(Instruction* target);
349 // Patch a PC-relative offset to refer to 'target'. 'this' may be a branch or 349 // Patch a PC-relative offset to refer to 'target'. 'this' may be a branch or
350 // a PC-relative addressing instruction. 350 // a PC-relative addressing instruction.
351 void SetImmPCOffsetTarget(Instruction* target); 351 void SetImmPCOffsetTarget(Instruction* target);
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
500 TRACE_ENABLE = 1 << 6, 500 TRACE_ENABLE = 1 << 6,
501 TRACE_DISABLE = 2 << 6, 501 TRACE_DISABLE = 2 << 6,
502 TRACE_OVERRIDE = 3 << 6 502 TRACE_OVERRIDE = 3 << 6
503 }; 503 };
504 504
505 505
506 } } // namespace v8::internal 506 } } // namespace v8::internal
507 507
508 508
509 #endif // V8_ARM64_INSTRUCTIONS_ARM64_H_ 509 #endif // V8_ARM64_INSTRUCTIONS_ARM64_H_
OLDNEW
« no previous file with comments | « src/arm64/assembler-arm64-inl.h ('k') | src/arm64/instructions-arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698