diff options
Diffstat (limited to 'deps/v8/src/arm64/constants-arm64.h')
-rw-r--r-- | deps/v8/src/arm64/constants-arm64.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/deps/v8/src/arm64/constants-arm64.h b/deps/v8/src/arm64/constants-arm64.h index 7ee22760d..8db120ba4 100644 --- a/deps/v8/src/arm64/constants-arm64.h +++ b/deps/v8/src/arm64/constants-arm64.h @@ -15,7 +15,9 @@ STATIC_ASSERT(sizeof(1L) == sizeof(int64_t)); // NOLINT(runtime/sizeof) // Get the standard printf format macros for C99 stdint types. +#ifndef __STDC_FORMAT_MACROS #define __STDC_FORMAT_MACROS +#endif #include <inttypes.h> @@ -25,8 +27,7 @@ namespace internal { const unsigned kInstructionSize = 4; const unsigned kInstructionSizeLog2 = 2; -const unsigned kLiteralEntrySize = 4; -const unsigned kLiteralEntrySizeLog2 = 2; +const unsigned kLoadLiteralScaleLog2 = 2; const unsigned kMaxLoadLiteralRange = 1 * MB; const unsigned kNumberOfRegisters = 32; @@ -258,15 +259,15 @@ enum Condition { nv = 15 // Behaves as always/al. }; -inline Condition InvertCondition(Condition cond) { +inline Condition NegateCondition(Condition cond) { // Conditions al and nv behave identically, as "always true". They can't be // inverted, because there is no never condition. - ASSERT((cond != al) && (cond != nv)); + DCHECK((cond != al) && (cond != nv)); return static_cast<Condition>(cond ^ 1); } -// Corresponds to transposing the operands of a comparison. -inline Condition ReverseConditionForCmp(Condition cond) { +// Commute a condition such that {a cond b == b cond' a}. +inline Condition CommuteCondition(Condition cond) { switch (cond) { case lo: return hi; @@ -293,7 +294,7 @@ inline Condition ReverseConditionForCmp(Condition cond) { // 'mi' for instance). UNREACHABLE(); return nv; - }; + } } enum FlagsUpdate { @@ -399,7 +400,7 @@ enum SystemRegister { // // The enumerations can be used like this: // -// ASSERT(instr->Mask(PCRelAddressingFMask) == PCRelAddressingFixed); +// DCHECK(instr->Mask(PCRelAddressingFMask) == PCRelAddressingFixed); // switch(instr->Mask(PCRelAddressingMask)) { // case ADR: Format("adr 'Xd, 'AddrPCRelByte"); break; // case ADRP: Format("adrp 'Xd, 'AddrPCRelPage"); break; |