v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include "v8.h"
#include "macro-assembler.h"
#include "arm64/utils-arm64.h"
#include "cctest.h"
#include "test-utils-arm64.h"
Go to the source code of this file.
Macros | |
#define | __ masm-> |
Functions | |
bool | Equal32 (uint32_t expected, const RegisterDump *, uint32_t result) |
bool | Equal64 (uint64_t expected, const RegisterDump *, uint64_t result) |
bool | EqualFP32 (float expected, const RegisterDump *, float result) |
bool | EqualFP64 (double expected, const RegisterDump *, double result) |
bool | Equal32 (uint32_t expected, const RegisterDump *core, const Register ®) |
bool | Equal64 (uint64_t expected, const RegisterDump *core, const Register ®) |
bool | EqualFP32 (float expected, const RegisterDump *core, const FPRegister &fpreg) |
bool | EqualFP64 (double expected, const RegisterDump *core, const FPRegister &fpreg) |
bool | Equal64 (const Register ®0, const RegisterDump *core, const Register ®1) |
bool | EqualNzcv (uint32_t expected, uint32_t result) |
bool | EqualRegisters (const RegisterDump *a, const RegisterDump *b) |
RegList | PopulateRegisterArray (Register *w, Register *x, Register *r, int reg_size, int reg_count, RegList allowed) |
RegList | PopulateFPRegisterArray (FPRegister *s, FPRegister *d, FPRegister *v, int reg_size, int reg_count, RegList allowed) |
void | Clobber (MacroAssembler *masm, RegList reg_list, uint64_t const value) |
void | ClobberFP (MacroAssembler *masm, RegList reg_list, double const value) |
void | Clobber (MacroAssembler *masm, CPURegList reg_list) |
#define __ masm-> |
Definition at line 38 of file test-utils-arm64.cc.
Referenced by Clobber(), ClobberFP(), and RegisterDump::Dump().
void Clobber | ( | MacroAssembler * | masm, |
RegList | reg_list, | ||
uint64_t const | value | ||
) |
Definition at line 267 of file test-utils-arm64.cc.
References __, ASSERT, Register::Create(), CPURegister::Is(), Register::IsValid(), CPURegister::IsZero(), v8::internal::kNumberOfRegisters, and v8::internal::kXRegSizeInBits.
void Clobber | ( | MacroAssembler * | masm, |
CPURegList | reg_list | ||
) |
Definition at line 309 of file test-utils-arm64.cc.
References Clobber(), ClobberFP(), CPURegister::kFPRegister, CPURegister::kRegister, CPURegList::list(), CPURegList::type(), and UNREACHABLE.
void ClobberFP | ( | MacroAssembler * | masm, |
RegList | reg_list, | ||
double const | value | ||
) |
Definition at line 290 of file test-utils-arm64.cc.
References __, FPRegister::Create(), FPRegister::IsValid(), v8::internal::kDRegSizeInBits, and v8::internal::kNumberOfFPRegisters.
Referenced by Clobber().
bool Equal32 | ( | uint32_t | expected, |
const RegisterDump * | , | ||
uint32_t | result | ||
) |
Definition at line 41 of file test-utils-arm64.cc.
Referenced by Equal32().
bool Equal32 | ( | uint32_t | expected, |
const RegisterDump * | core, | ||
const Register & | reg | ||
) |
Definition at line 97 of file test-utils-arm64.cc.
References ASSERT, Register::code(), Equal32(), CPURegister::Is32Bits(), RegisterDump::wreg(), and RegisterDump::xreg().
bool Equal64 | ( | uint64_t | expected, |
const RegisterDump * | , | ||
uint64_t | result | ||
) |
Definition at line 51 of file test-utils-arm64.cc.
Referenced by Equal64().
bool Equal64 | ( | uint64_t | expected, |
const RegisterDump * | core, | ||
const Register & | reg | ||
) |
Definition at line 112 of file test-utils-arm64.cc.
References ASSERT, Register::code(), Equal64(), CPURegister::Is64Bits(), and RegisterDump::xreg().
bool Equal64 | ( | const Register & | reg0, |
const RegisterDump * | core, | ||
const Register & | reg1 | ||
) |
Definition at line 146 of file test-utils-arm64.cc.
References ASSERT, Register::code(), Equal64(), CPURegister::Is64Bits(), and RegisterDump::xreg().
bool EqualFP32 | ( | float | expected, |
const RegisterDump * | , | ||
float | result | ||
) |
Definition at line 61 of file test-utils-arm64.cc.
References std::isnan().
Referenced by EqualFP32().
bool EqualFP32 | ( | float | expected, |
const RegisterDump * | core, | ||
const FPRegister & | fpreg | ||
) |
Definition at line 121 of file test-utils-arm64.cc.
References ASSERT, CPURegister::code(), RegisterDump::dreg_bits(), EqualFP32(), CPURegister::Is32Bits(), and RegisterDump::sreg().
bool EqualFP64 | ( | double | expected, |
const RegisterDump * | , | ||
double | result | ||
) |
Definition at line 79 of file test-utils-arm64.cc.
References std::isnan().
Referenced by EqualFP64().
bool EqualFP64 | ( | double | expected, |
const RegisterDump * | core, | ||
const FPRegister & | fpreg | ||
) |
Definition at line 138 of file test-utils-arm64.cc.
References ASSERT, CPURegister::code(), RegisterDump::dreg(), EqualFP64(), and CPURegister::Is64Bits().
bool EqualNzcv | ( | uint32_t | expected, |
uint32_t | result | ||
) |
Definition at line 176 of file test-utils-arm64.cc.
References ASSERT, and v8::internal::NZCVFlag.
bool EqualRegisters | ( | const RegisterDump * | a, |
const RegisterDump * | b | ||
) |
Definition at line 190 of file test-utils-arm64.cc.
References RegisterDump::dreg_bits(), v8::internal::kNumberOfFPRegisters, v8::internal::kNumberOfRegisters, and RegisterDump::xreg().
RegList PopulateFPRegisterArray | ( | FPRegister * | s, |
FPRegister * | d, | ||
FPRegister * | v, | ||
int | reg_size, | ||
int | reg_count, | ||
RegList | allowed | ||
) |
Definition at line 240 of file test-utils-arm64.cc.
References ASSERT, v8::internal::CountSetBits(), FPRegister::Create(), v8::internal::kDRegSizeInBits, v8::internal::kNumberOfFPRegisters, and v8::internal::kSRegSizeInBits.
RegList PopulateRegisterArray | ( | Register * | w, |
Register * | x, | ||
Register * | r, | ||
int | reg_size, | ||
int | reg_count, | ||
RegList | allowed | ||
) |
Definition at line 213 of file test-utils-arm64.cc.
References ASSERT, v8::internal::CountSetBits(), Register::Create(), v8::internal::kNumberOfRegisters, v8::internal::kWRegSizeInBits, and v8::internal::kXRegSizeInBits.