5 #ifndef V8_ARM_CONSTANTS_ARM_H_
6 #define V8_ARM_CONSTANTS_ARM_H_
9 #if defined(__arm__) && !defined(__ARM_EABI__)
10 #error ARM EABI support is required.
23 return ((length & 0xfff0) << 4) | (length & 0xf);
27 return ((instr >> 4) & 0xfff0) | (instr & 0xf);
434 #define DECLARE_STATIC_TYPED_ACCESSOR(return_type, Name) \
435 static inline return_type Name(Instr instr) { \
436 char* temp = reinterpret_cast<char*>(&instr); \
437 return reinterpret_cast<Instruction*>(temp)->Name(); \
440 #define DECLARE_STATIC_ACCESSOR(Name) DECLARE_STATIC_TYPED_ACCESSOR(int, Name)
444 return *
reinterpret_cast<const Instr*
>(
this);
449 *
reinterpret_cast<Instr*
>(
this) = value;
453 inline int Bit(
int nr)
const {
471 return (instr >> nr) & 1;
476 return (instr >>
lo) & ((2 << (
hi -
lo)) - 1);
482 return instr & (((2 << (
hi -
lo)) - 1) <<
lo);
609 && ((
Bit(7) == 0)); }
648 return (
Bits(four_bit + 3, four_bit) << 1) |
Bit(one_bit);
650 return (
Bit(one_bit) << 4) |
Bits(four_bit + 3, four_bit);
662 static const char*
Name(
int reg);
681 static const char*
Name(
int reg,
bool is_double);
Instr InstructionBits() const
int BitField(int hi, int lo) const
void SetInstructionBits(Instr value)
DECLARE_STATIC_ACCESSOR(ImmedMovwMovtValue)
static int BitField(Instr instr, int hi, int lo)
int VFPDRegValue(VFPRegPrecision pre)
int SImmed24Value() const
bool IsSpecialType0() const
double DoubleImmedVmov() const
int ImmedMovwMovtValue() const
int VFPNRegValue(VFPRegPrecision pre)
SoftwareInterruptCodes SvcValue() const
static int Bit(Instr instr, int nr)
DECLARE_STATIC_ACCESSOR(RotateValue)
int Bits(int hi, int lo) const
int ShiftAmountValue() const
Condition ConditionField() const
int VFPMRegValue(VFPRegPrecision pre)
DECLARE_STATIC_ACCESSOR(RnValue)
DECLARE_STATIC_ACCESSOR(RmValue)
ShiftOp ShiftField() const
static Instruction * At(byte *pc)
Opcode OpcodeField() const
int Offset12Value() const
int RegShiftValue() const
DECLARE_STATIC_ACCESSOR(RdValue)
int CoprocessorValue() const
int VFPGlueRegValue(VFPRegPrecision pre, int four_bit, int one_bit)
DISALLOW_IMPLICIT_CONSTRUCTORS(Instruction)
Condition ConditionValue() const
DECLARE_STATIC_TYPED_ACCESSOR(Condition, ConditionField)
static int Bits(Instr instr, int hi, int lo)
DECLARE_STATIC_TYPED_ACCESSOR(Condition, ConditionValue)
DECLARE_STATIC_ACCESSOR(Immed8Value)
static int Number(const char *name)
static const RegisterAlias aliases_[]
static const char * names_[kNumRegisters]
static const char * Name(int reg)
static const char * names_[kNumVFPRegisters]
static int Number(const char *name, bool *is_double)
static const char * Name(int reg, bool is_double)
enable harmony numeric enable harmony object literal extensions Optimize object Array DOM strings and string trace pretenuring decisions of HAllocate instructions Enables optimizations which favor memory size over execution speed maximum source size in bytes considered for a single inlining maximum cumulative number of AST nodes considered for inlining trace the tracking of allocation sites deoptimize every n garbage collections perform array bounds checks elimination analyze liveness of environment slots and zap dead values flushes the cache of optimized code for closures on every GC allow uint32 values on optimize frames if they are used only in safe operations track concurrent recompilation artificial compilation delay in ms do not emit check maps for constant values that have a leaf deoptimize the optimized code if the layout of the maps changes enable context specialization in TurboFan execution budget before interrupt is triggered max percentage of megamorphic generic ICs to allow optimization enable use of SAHF instruction if enable use of VFP3 instructions if available enable use of NEON instructions if enable use of SDIV and UDIV instructions if enable use of MLS 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 enable alignment of csp to bytes on platforms which prefer the register to always be expose gc extension under the specified name show built in functions in stack traces use random jit cookie to mask large constants minimum length for automatic enable preparsing CPU profiler sampling interval in microseconds trace out of bounds accesses to external arrays default size of stack region v8 is allowed to maximum length of function source code printed in a stack trace min size of a semi the new space consists of two semi spaces print one trace line following each garbage collection do not print trace line after scavenger collection print cumulative GC statistics in name
#define DCHECK(condition)
Hint NegateHint(Hint ignored)
const int32_t kDefaultStopCode
const int kNumVFPDoubleRegisters
Condition CommuteCondition(Condition cond)
int EncodeConstantPoolLength(int length)
const uint32_t kVFPDefaultNaNModeControlBit
CheckForInexactConversion
@ kCheckForInexactConversion
@ kDontCheckForInexactConversion
const int kConstantPoolLengthMaxMask
int DecodeConstantPoolLength(int instr)
const uint32_t kMaxStopCode
const int kCodeAgeJumpInstruction
const int kNumVFPRegisters
uint32_t SRegisterFieldMask
const uint32_t kVFPNConditionFlagBit
Condition NegateCondition(Condition cond)
const uint32_t kVFPZConditionFlagBit
const uint32_t kVFPVConditionFlagBit
const int kNumVFPSingleRegisters
const int kConstantPoolMarkerMask
const uint32_t kVFPOverflowExceptionBit
const uint32_t kVFPInvalidOpExceptionBit
const uint32_t kVFPFlushToZeroMask
const uint32_t kVFPExceptionMask
const uint32_t kVFPUnderflowExceptionBit
const uint32_t kVFPCConditionFlagBit
const uint32_t kVFPRoundingModeMask
const uint32_t kVFPInexactExceptionBit
const int kConstantPoolMarker
const uint32_t kStopCodeMask
Debugger support for the V8 JavaScript engine.