28 #ifndef V8_ARM64_TEST_UTILS_ARM64_H_
29 #define V8_ARM64_TEST_UTILS_ARM64_H_
39 using namespace v8::internal;
62 ASSERT(RegAliasesMatch(code));
63 return dump_.w_[
code];
70 ASSERT(RegAliasesMatch(code));
71 return dump_.x_[
code];
76 ASSERT(FPRegAliasesMatch(code));
77 return dump_.s_[
code];
81 return rawbits_to_float(sreg_bits(code));
85 ASSERT(FPRegAliasesMatch(code));
86 return dump_.d_[
code];
90 return rawbits_to_double(dreg_bits(code));
95 ASSERT(SPRegAliasesMatch());
100 ASSERT(SPRegAliasesMatch());
107 ASSERT((dump_.flags_ & ~Flags_mask) == 0);
108 return dump_.flags_ & Flags_mask;
122 bool RegAliasesMatch(
unsigned code)
const {
125 return ((dump_.x_[code] &
kWRegMask) == dump_.w_[code]);
129 bool SPRegAliasesMatch()
const {
131 return ((dump_.sp_ &
kWRegMask) == dump_.wsp_);
135 bool FPRegAliasesMatch(
unsigned code)
const {
164 static dump_t for_sizeof();
192 bool EqualNzcv(uint32_t expected, uint32_t result);
207 int reg_size,
int reg_count,
RegList allowed);
211 int reg_size,
int reg_count,
RegList allowed);
222 uint64_t
const value = 0xfedcba9876543210UL);
226 double const value = kFP64SignallingNaN);
233 #endif // V8_ARM64_TEST_UTILS_ARM64_H_
int64_t xreg(unsigned code) const
float sreg(unsigned code) const
void Clobber(MacroAssembler *masm, RegList reg_list, uint64_t const value=0xfedcba9876543210UL)
uint64_t dreg_bits(unsigned code) const
bool EqualNzcv(uint32_t expected, uint32_t result)
#define ASSERT(condition)
RegList PopulateFPRegisterArray(FPRegister *s, FPRegister *d, FPRegister *v, int reg_size, int reg_count, RegList allowed)
STATIC_ASSERT(sizeof(CPURegister)==sizeof(Register))
double dreg(unsigned code) const
bool Equal32(uint32_t expected, const RegisterDump *, uint32_t result)
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 code(assertions) for debugging") DEFINE_bool(code_comments
const unsigned kSPRegInternalCode
bool EqualFP64(double expected, const RegisterDump *, double result)
bool Equal64(uint64_t expected, const RegisterDump *, uint64_t result)
const unsigned kNumberOfFPRegisters
bool EqualFP32(float expected, const RegisterDump *, float result)
bool EqualRegisters(const RegisterDump *a, const RegisterDump *b)
const unsigned kNumberOfRegisters
uint32_t sreg_bits(unsigned code) const
uint64_t flags_nzcv() const
void ClobberFP(MacroAssembler *masm, RegList reg_list, double const value=kFP64SignallingNaN)
int32_t wreg(unsigned code) const
RegList PopulateRegisterArray(Register *w, Register *x, Register *r, int reg_size, int reg_count, RegList allowed)