28 #ifndef V8_ARM_CONSTANTS_ARM_H_
29 #define V8_ARM_CONSTANTS_ARM_H_
32 #if defined(__arm__) && !defined(__ARM_EABI__)
33 #error ARM EABI support is required.
46 return ((length & 0xfff0) << 4) | (length & 0xf);
50 return ((instr >> 4) & 0xfff0) | (instr & 0xf);
515 #define DECLARE_STATIC_TYPED_ACCESSOR(return_type, Name) \
516 static inline return_type Name(Instr instr) { \
517 char* temp = reinterpret_cast<char*>(&instr); \
518 return reinterpret_cast<Instruction*>(temp)->Name(); \
521 #define DECLARE_STATIC_ACCESSOR(Name) DECLARE_STATIC_TYPED_ACCESSOR(int, Name)
525 return *
reinterpret_cast<const Instr*
>(
this);
530 *
reinterpret_cast<Instr*
>(
this) = value;
534 inline int Bit(
int nr)
const {
552 return (instr >> nr) & 1;
557 return (instr >> lo) & ((2 << (hi -
lo)) - 1);
563 return instr & (((2 << (hi -
lo)) - 1) << lo);
619 return VFPGlueRegValue(pre, 16, 7);
622 return VFPGlueRegValue(pre, 0, 5);
625 return VFPGlueRegValue(pre, 12, 22);
687 && ((
Bit(7) == 0)); }
724 inline int VFPGlueRegValue(
VFPRegPrecision pre,
int four_bit,
int one_bit) {
726 return (
Bits(four_bit + 3, four_bit) << 1) |
Bit(one_bit);
728 return (
Bit(one_bit) << 4) |
Bits(four_bit + 3, four_bit);
732 DISALLOW_IMPLICIT_CONSTRUCTORS(Instruction);
740 static const char*
Name(
int reg);
759 static const char*
Name(
int reg,
bool is_double);
764 static int Number(
const char*
name,
bool* is_double);
773 #endif // V8_ARM_CONSTANTS_ARM_H_
static int BitField(Instr instr, int hi, int lo)
const uint32_t kVFPZConditionFlagBit
const int kNumVFPRegisters
const Instr kLdrRegFpOffsetPattern
const Instr kMovwLeaveCCFlip
const Instr kLdrPCPattern
const Instr kMovMvnPattern
const uint32_t kVFPNConditionFlagBit
const uint32_t kVFPInvalidOpExceptionBit
static int Bit(Instr instr, int nr)
const uint32_t kVFPOverflowExceptionBit
const int kConstantPoolLengthMaxMask
int EncodeConstantPoolLength(int length)
int VFPDRegValue(VFPRegPrecision pre)
bool IsSpecialType0() const
const uint32_t kVFPUnderflowExceptionBit
SoftwareInterruptCodes SvcValue() const
static const char * Name(int reg, bool is_double)
DECLARE_STATIC_TYPED_ACCESSOR(Condition, ConditionValue)
const Instr kLdrStrOffsetMask
Instr InstructionBits() const
static int Number(const char *name, bool *is_double)
const uint32_t kMaxStopCode
int ShiftAmountValue() const
#define ASSERT(condition)
int DecodeConstantPoolLength(int instr)
const uint32_t kStopCodeMask
const Instr kCmpCmnPattern
const Instr kPopRegPattern
static const char * Name(int reg)
const Instr kVldrDPCPattern
const int kNumVFPSingleRegisters
const Instr kPushRegPattern
const uint32_t kVFPFlushToZeroMask
Condition ReverseCondition(Condition cond)
static Instruction * At(byte *pc)
int ImmedMovwMovtValue() const
const uint32_t kVFPDefaultNaNModeControlBit
const Instr kLdrStrInstrArgumentMask
const int32_t kDefaultStopCode
static int Number(const char *name)
void SetInstructionBits(Instr value)
Hint NegateHint(Hint ignored)
const Instr kLdrRegFpNegOffsetPattern
double DoubleImmedVmov() const
static int Bits(Instr instr, int hi, int lo)
const Instr kMovLeaveCCMask
int BitField(int hi, int lo) const
const Instr kPopInstruction
const Instr kStrRegFpOffsetPattern
const uint32_t kVFPExceptionMask
Opcode OpcodeField() const
int CoprocessorValue() const
const int kConstantPoolMarker
int Bits(int hi, int lo) const
const Instr kMovLeaveCCPattern
const Instr kLdrStrInstrTypeMask
int VFPNRegValue(VFPRegPrecision pre)
const Instr kBlxRegPattern
const uint32_t kVFPVConditionFlagBit
const uint32_t kVFPInexactExceptionBit
Condition NegateCondition(Condition cond)
DECLARE_STATIC_ACCESSOR(RnValue)
uint32_t SRegisterFieldMask
Condition ConditionField() const
ShiftOp ShiftField() const
int Offset12Value() const
const int kCodeAgeJumpInstruction
CheckForInexactConversion
const int kConstantPoolMarkerMask
Condition ConditionValue() const
const uint32_t kVFPRoundingModeMask
int SImmed24Value() const
const Instr kStrRegFpNegOffsetPattern
enable upcoming ES6 features enable harmony block scoping enable harmony enable harmony proxies enable harmony generators enable harmony numeric enable harmony string enable harmony math functions harmony_scoping harmony_symbols harmony_collections harmony_iteration harmony_strings harmony_scoping harmony_maths tracks arrays with only smi values Optimize object Array DOM strings and string pretenure call new trace pretenuring decisions of HAllocate instructions track fields with only smi values track fields with heap values track_fields track_fields Enables optimizations which favor memory size over execution speed use string slices optimization filter maximum number of GVN fix point iterations use function inlining use allocation folding eliminate write barriers targeting allocations in optimized code maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining crankshaft harvests type feedback from stub cache trace check elimination phase hydrogen tracing filter trace hydrogen to given file name trace inlining decisions trace store elimination trace all use positions trace global value numbering trace hydrogen escape analysis trace the tracking of allocation sites trace map generalization environment for every instruction deoptimize every n garbage collections put a break point before deoptimizing deoptimize uncommon cases use on stack replacement trace array bounds check elimination perform array index dehoisting use load elimination use store elimination use constant folding eliminate unreachable code number of stress runs when picking a function to watch for shared function not JSFunction itself flushes the cache of optimized code for closures on every GC functions with arguments object maximum number of escape analysis fix point iterations allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms concurrent on stack replacement do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes number of stack frames inspected by the profiler percentage of ICs that must have type info to allow optimization extra verbose compilation tracing generate extra emit comments in code disassembly enable use of SSE3 instructions if available enable use of CMOV instruction if available enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable loading bit constant by means of movw movt instruction enable unaligned accesses for enable use of d16 d31 registers on ARM this requires VFP3 force all emitted branches to be in long expose natives in global object expose freeBuffer extension expose gc extension under the specified name expose externalize string extension number of stack frames to capture disable builtin natives files print name of functions for which code is generated use random jit cookie to mask large constants trace lazy optimization use adaptive optimizations always try to OSR functions trace optimize function deoptimization minimum length for automatic enable preparsing maximum number of optimization attempts before giving up cache prototype transitions trace debugging JSON request response trace out of bounds accesses to external arrays trace_js_array_abuse automatically set the debug break flag when debugger commands are in the queue abort by crashing maximum length of function source code printed in a stack trace max size of the new max size of the old max size of executable always perform global GCs print one trace line following each garbage collection do not print trace line after scavenger collection print statistics of the maximum memory committed for the heap in name
int VFPMRegValue(VFPRegPrecision pre)
const uint32_t kVFPCConditionFlagBit
const int kNumVFPDoubleRegisters
int RegShiftValue() const