28 #ifndef V8_MIPS_CONSTANTS_H_
29 #define V8_MIPS_CONSTANTS_H_
33 #define UNIMPLEMENTED_MIPS() \
34 v8::internal::PrintF("%s, \tline %d: \tfunction %s not implemented. \n", \
35 __FILE__, __LINE__, __func__)
37 #define UNIMPLEMENTED_MIPS()
40 #define UNSUPPORTED_MIPS() v8::internal::PrintF("Unsupported instruction.\n")
48 #ifdef _MIPS_ARCH_MIPS32R2
50 #elif _MIPS_ARCH_LOONGSON
59 #if(defined(__mips_hard_float) && __mips_hard_float != 0)
63 #elif(defined(__mips_soft_float) && __mips_soft_float != 0)
141 static const char*
Name(
int reg);
146 struct RegisterAlias {
163 static const char*
Name(
int reg);
330 MOVZ = ((1 << 3) + 2),
331 MOVN = ((1 << 3) + 3),
332 BREAK = ((1 << 3) + 5),
342 ADD = ((4 << 3) + 0),
344 SUB = ((4 << 3) + 2),
346 AND = ((4 << 3) + 4),
358 TEQ = ((6 << 3) + 4),
363 CLZ = ((4 << 3) + 0),
383 BC1 = ((1 << 3) + 0) << 21,
384 S = ((2 << 3) + 0) << 21,
385 D = ((2 << 3) + 1) << 21,
386 W = ((2 << 3) + 4) << 21,
387 L = ((2 << 3) + 5) << 21,
388 PS = ((2 << 3) + 6) << 21,
627 return *
reinterpret_cast<const Instr*
>(
this);
632 *
reinterpret_cast<Instr*
>(
this) = value;
636 inline int Bit(
int nr)
const {
659 return static_cast<Opcode>(
820 #endif // #ifndef V8_MIPS_CONSTANTS_H_
const int kJSArgsSlotsSize
const int kCArgsSlotsSize
const uint32_t kFCSRUnderflowFlagBit
const int32_t kPrefHintPrepareForStore
const int kBArgsSlotsSize
const int32_t kPrefHintLoadRetained
const uint32_t kFCSRInexactFlagBit
const int kBranchReturnOffset
bool IsForbiddenInBranchDelay() const
int FunctionValue() const
int32_t Imm26Value() const
const int kNumSimuRegisters
const uint32_t kFCSRExceptionFlagMask
const int kInvalidFPUControlRegister
const uint32_t kMaxWatchpointCode
const int kInvalidFPURegister
static const int32_t kMaxValue
Instr InstructionBits() const
const uint32_t kMaxStopCode
#define ASSERT(condition)
const int32_t kPrefHintStoreStreamed
const uint32_t kFPURoundingModeMask
const Instr kSwRegFpOffsetPattern
const int kInvalidRegister
const uint32_t kFCSRUnderflowFlagMask
Opcode OpcodeValue() const
const int kFunctionFieldMask
const Instr kPopRegPattern
static const char * Name(int reg)
const int kNumFPURegisters
const Instr kPushRegPattern
Condition ReverseCondition(Condition cond)
static Instruction * At(byte *pc)
int FunctionFieldRaw() const
const Instr rtCallRedirInstr
const uint32_t kFPUInvalidResult
STATIC_ASSERT(sizeof(CPURegister)==sizeof(Register))
static int Number(const char *name)
const Instr kLwSwInstrTypeMask
const uint32_t kFCSROverflowFlagMask
void SetInstructionBits(Instr value)
Hint NegateHint(Hint ignored)
const bool IsMipsSoftFloatABI
bool IsLinkingInstruction() const
const uint32_t kFCSRInvalidOpFlagBit
const Instr kLwRegFpOffsetPattern
const Instr kPushInstruction
int32_t Imm16Value() const
const Instr kPopInstruction
const int32_t kPrefHintStore
const uint32_t kFCSROverflowFlagBit
static const char * Name(int reg)
const uint32_t kFCSRInvalidOpFlagMask
const uint32_t kFCSRDivideByZeroFlagBit
int Bits(int hi, int lo) const
const int32_t kPrefHintLoadStreamed
const int32_t kPrefHintWritebackInvalidate
Condition NegateCondition(Condition cond)
const Instr kLwSwInstrArgumentMask
const int32_t kPrefHintLoad
const int32_t kPrefHintStoreRetained
const uint32_t kFCSRDivideByZeroFlagMask
CheckForInexactConversion
const Instr kLwRegFpNegOffsetPattern
static int Number(const char *name)
const uint32_t kFCSRFlagMask
int SecondaryValue() const
const Instr kLwSwOffsetMask
Type InstructionType() const
int RsFieldRawNoAssert() const
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
const Instr kSwRegFpNegOffsetPattern
const uint32_t kFCSRInexactFlagMask
Opcode OpcodeFieldRaw() const
static const int32_t kMinValue