v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <stdlib.h>
#include "v8.h"
#include "debug.h"
#include "disasm.h"
#include "disassembler.h"
#include "macro-assembler.h"
#include "serialize.h"
#include "cctest.h"
Go to the source code of this file.
Macros | |
#define | SET_UP() |
#define | COMPARE(asm_, compare_string) |
#define | EMIT_PENDING_LITERALS() assm.CheckConstPool(true, false) |
#define | VERIFY_RUN() |
Functions | |
bool | DisassembleAndCompare (byte *pc, const char *compare_string) |
TEST (Type0) | |
TEST (Type1) | |
TEST (Type3) | |
TEST (Vfp) | |
TEST (Neon) | |
TEST (LoadStore) | |
#define COMPARE | ( | asm_, | |
compare_string | |||
) |
Definition at line 79 of file test-disasm-arm.cc.
Referenced by TEST().
Definition at line 88 of file test-disasm-arm.cc.
Referenced by TEST().
#define SET_UP | ( | ) |
Definition at line 66 of file test-disasm-arm.cc.
Referenced by TEST().
#define VERIFY_RUN | ( | ) |
Definition at line 94 of file test-disasm-arm.cc.
Referenced by TEST().
bool DisassembleAndCompare | ( | byte * | pc, |
const char * | compare_string | ||
) |
Definition at line 43 of file test-disasm-arm.cc.
References Disassembler::InstructionDecode(), and Vector< T >::start().
TEST | ( | Type0 | ) |
Definition at line 100 of file test-disasm-arm.cc.
References v8::internal::al, v8::internal::ARMv7, v8::internal::ASR, v8::internal::cc, COMPARE, v8::internal::cs, EMIT_PENDING_LITERALS, v8::internal::eq, v8::internal::fp, v8::internal::ge, v8::internal::gt, v8::internal::hi, v8::internal::hs, v8::internal::ip, CpuFeatures::IsSupported(), v8::internal::le, v8::internal::LeaveCC, v8::internal::lo, v8::internal::lr, v8::internal::ls, v8::internal::LSL, v8::internal::LSR, v8::internal::lt, v8::internal::mi, v8::internal::ne, v8::internal::pl, v8::internal::r0, v8::internal::r1, v8::internal::r10, v8::internal::r2, v8::internal::r3, v8::internal::r4, v8::internal::r5, v8::internal::r6, v8::internal::r7, v8::internal::r8, v8::internal::r9, v8::internal::ROR, SET_UP, v8::internal::SetCC, v8::internal::sp, v8::internal::vc, VERIFY_RUN, and v8::internal::vs.
TEST | ( | Type1 | ) |
Definition at line 331 of file test-disasm-arm.cc.
References v8::internal::cc, COMPARE, v8::internal::cs, v8::internal::eq, v8::internal::LeaveCC, v8::internal::ne, v8::internal::r0, v8::internal::r1, v8::internal::r2, v8::internal::r3, v8::internal::r4, v8::internal::r5, SET_UP, v8::internal::SetCC, and VERIFY_RUN.
TEST | ( | Type3 | ) |
Definition at line 360 of file test-disasm-arm.cc.
References v8::internal::ARMv7, v8::internal::ASR, COMPARE, CpuFeatures::IsSupported(), v8::internal::lr, v8::internal::LSL, v8::internal::r0, v8::internal::r1, v8::internal::r10, v8::internal::r2, v8::internal::r3, v8::internal::r4, v8::internal::r5, v8::internal::r8, v8::internal::r9, v8::internal::ROR, SET_UP, and VERIFY_RUN.
TEST | ( | Vfp | ) |
Definition at line 428 of file test-disasm-arm.cc.
References v8::internal::cc, COMPARE, v8::internal::d0, v8::internal::d1, v8::internal::d14, v8::internal::d15, v8::internal::d16, v8::internal::d17, v8::internal::d18, v8::internal::d2, v8::internal::d20, v8::internal::d23, v8::internal::d25, v8::internal::d26, v8::internal::d27, v8::internal::d3, v8::internal::d30, v8::internal::d31, v8::internal::d4, v8::internal::d5, v8::internal::d6, v8::internal::d7, v8::internal::eq, v8::internal::ge, v8::internal::hi, v8::internal::ia, CpuFeatures::IsSupported(), v8::internal::mi, v8::internal::ne, v8::internal::pc, v8::internal::pl, v8::internal::r0, v8::internal::r1, v8::internal::r10, v8::internal::r2, v8::internal::r3, v8::internal::r4, v8::internal::r5, v8::internal::r6, v8::internal::r7, v8::internal::r8, v8::internal::r9, v8::internal::s0, v8::internal::s1, v8::internal::s15, v8::internal::s16, v8::internal::s2, v8::internal::s3, v8::internal::s31, v8::internal::s5, SET_UP, VERIFY_RUN, v8::internal::VFP3, v8::internal::VFP32DREGS, v8::internal::VmovIndexHi, and v8::internal::VmovIndexLo.
TEST | ( | Neon | ) |
Definition at line 683 of file test-disasm-arm.cc.
References COMPARE, v8::internal::d1, v8::internal::d17, v8::internal::d2, v8::internal::d4, CpuFeatures::IsSupported(), v8::internal::NEON, v8::internal::Neon16, v8::internal::Neon8, v8::internal::NeonU8, v8::internal::q3, v8::internal::q4, v8::internal::r1, v8::internal::r9, SET_UP, and VERIFY_RUN.
TEST | ( | LoadStore | ) |
Definition at line 702 of file test-disasm-arm.cc.
References v8::internal::ARMv7, COMPARE, v8::internal::fp, v8::internal::ip, CpuFeatures::IsSupported(), v8::internal::NegOffset, v8::internal::NegPostIndex, v8::internal::NegPreIndex, v8::internal::PostIndex, v8::internal::PreIndex, v8::internal::r0, v8::internal::r1, v8::internal::r10, v8::internal::r2, v8::internal::r3, v8::internal::r4, v8::internal::r5, v8::internal::r6, v8::internal::r7, v8::internal::r8, v8::internal::r9, SET_UP, v8::internal::sp, and VERIFY_RUN.