v8
3.25.30(node0.11.13)
V8 is Google's open source JavaScript engine
|
#include <stdlib.h>
#include "v8.h"
#include "macro-assembler.h"
#include "factory.h"
#include "platform.h"
#include "serialize.h"
#include "cctest.h"
Go to the source code of this file.
Macros | |
#define | __ assm. |
Typedefs | |
typedef int(* | F0 )() |
typedef int(* | F1 )(int64_t x) |
typedef int(* | F2 )(int64_t x, int64_t y) |
typedef int(* | F3 )(double x) |
typedef int64_t(* | F4 )(int64_t *x, int64_t *y) |
typedef int64_t(* | F5 )(int64_t x) |
typedef int(* | F6 )(float x, float y) |
Functions | |
TEST (AssemblerX64ReturnOperation) | |
TEST (AssemblerX64StackOperations) | |
TEST (AssemblerX64ArithmeticOperations) | |
TEST (AssemblerX64ImulOperation) | |
TEST (AssemblerX64XchglOperations) | |
TEST (AssemblerX64OrlOperations) | |
TEST (AssemblerX64RollOperations) | |
TEST (AssemblerX64SublOperations) | |
TEST (AssemblerX64TestlOperations) | |
TEST (AssemblerX64XorlOperations) | |
TEST (AssemblerX64MemoryOperands) | |
TEST (AssemblerX64ControlFlow) | |
TEST (AssemblerX64LoopImmediates) | |
TEST (OperandRegisterDependency) | |
TEST (AssemblerX64LabelChaining) | |
TEST (AssemblerMultiByteNop) | |
TEST (AssemblerX64Extractps) | |
TEST (AssemblerX64SSE) | |
#define __ assm. |
Definition at line 65 of file test-assembler-x64.cc.
Referenced by TEST().
typedef int(* F0)() |
Definition at line 50 of file test-assembler-x64.cc.
typedef int(* F1)(int64_t x) |
Definition at line 51 of file test-assembler-x64.cc.
typedef int(* F2)(int64_t x, int64_t y) |
Definition at line 52 of file test-assembler-x64.cc.
typedef int(* F3)(double x) |
Definition at line 53 of file test-assembler-x64.cc.
typedef int64_t(* F4)(int64_t *x, int64_t *y) |
Definition at line 54 of file test-assembler-x64.cc.
typedef int64_t(* F5)(int64_t x) |
Definition at line 55 of file test-assembler-x64.cc.
typedef int(* F6)(float x, float y) |
Definition at line 681 of file test-assembler-x64.cc.
TEST | ( | AssemblerX64ReturnOperation | ) |
Definition at line 68 of file test-assembler-x64.cc.
References __, OS::Allocate(), CHECK, CHECK_EQ, Assembler::GetCode(), CcTest::i_isolate(), AssemblerBase::kMinimalBufferSize, and v8::internal::rax.
TEST | ( | AssemblerX64StackOperations | ) |
Definition at line 90 of file test-assembler-x64.cc.
References __, OS::Allocate(), CHECK, CHECK_EQ, Assembler::GetCode(), CcTest::i_isolate(), AssemblerBase::kMinimalBufferSize, v8::internal::rax, v8::internal::rbp, and v8::internal::rsp.
TEST | ( | AssemblerX64ArithmeticOperations | ) |
Definition at line 122 of file test-assembler-x64.cc.
References __, OS::Allocate(), CHECK, CHECK_EQ, Assembler::GetCode(), CcTest::i_isolate(), AssemblerBase::kMinimalBufferSize, and v8::internal::rax.
TEST | ( | AssemblerX64ImulOperation | ) |
Definition at line 144 of file test-assembler-x64.cc.
References __, OS::Allocate(), CHECK, CHECK_EQ, Assembler::GetCode(), CcTest::i_isolate(), AssemblerBase::kMinimalBufferSize, v8::internal::rax, and v8::internal::rdx.
TEST | ( | AssemblerX64XchglOperations | ) |
Definition at line 172 of file test-assembler-x64.cc.
References __, OS::Allocate(), CHECK, CHECK_EQ, Assembler::GetCode(), CcTest::i_isolate(), AssemblerBase::kMinimalBufferSize, v8::internal::r11, v8::internal::rax, v8::internal::USE(), and V8_2PART_UINT64_C.
TEST | ( | AssemblerX64OrlOperations | ) |
Definition at line 200 of file test-assembler-x64.cc.
References __, OS::Allocate(), CHECK, CHECK_EQ, Assembler::GetCode(), CcTest::i_isolate(), AssemblerBase::kMinimalBufferSize, v8::internal::rax, v8::internal::USE(), and V8_2PART_UINT64_C.
TEST | ( | AssemblerX64RollOperations | ) |
Definition at line 224 of file test-assembler-x64.cc.
References __, OS::Allocate(), CHECK, CHECK_EQ, Assembler::GetCode(), CcTest::i_isolate(), AssemblerBase::kMinimalBufferSize, v8::internal::rax, and V8_2PART_UINT64_C.
TEST | ( | AssemblerX64SublOperations | ) |
Definition at line 246 of file test-assembler-x64.cc.
References __, OS::Allocate(), CHECK, CHECK_EQ, Assembler::GetCode(), CcTest::i_isolate(), AssemblerBase::kMinimalBufferSize, v8::internal::rax, v8::internal::USE(), and V8_2PART_UINT64_C.
TEST | ( | AssemblerX64TestlOperations | ) |
Definition at line 270 of file test-assembler-x64.cc.
References __, OS::Allocate(), CHECK, CHECK_EQ, Assembler::GetCode(), CcTest::i_isolate(), AssemblerBase::kMinimalBufferSize, v8::internal::r11, v8::internal::rax, V8_2PART_UINT64_C, and v8::internal::zero.
TEST | ( | AssemblerX64XorlOperations | ) |
Definition at line 299 of file test-assembler-x64.cc.
References __, OS::Allocate(), CHECK, CHECK_EQ, Assembler::GetCode(), CcTest::i_isolate(), AssemblerBase::kMinimalBufferSize, v8::internal::rax, v8::internal::USE(), and V8_2PART_UINT64_C.
TEST | ( | AssemblerX64MemoryOperands | ) |
Definition at line 323 of file test-assembler-x64.cc.
References __, OS::Allocate(), CHECK, CHECK_EQ, Assembler::GetCode(), CcTest::i_isolate(), AssemblerBase::kMinimalBufferSize, v8::internal::rax, v8::internal::rbp, and v8::internal::rsp.
TEST | ( | AssemblerX64ControlFlow | ) |
Definition at line 357 of file test-assembler-x64.cc.
References __, OS::Allocate(), CHECK, CHECK_EQ, Assembler::GetCode(), CcTest::i_isolate(), AssemblerBase::kMinimalBufferSize, v8::internal::rax, v8::internal::rbp, and v8::internal::rsp.
TEST | ( | AssemblerX64LoopImmediates | ) |
Definition at line 386 of file test-assembler-x64.cc.
References __, OS::Allocate(), CHECK, CHECK_EQ, Fail(), Assembler::GetCode(), v8::internal::greater, CcTest::i_isolate(), AssemblerBase::kMinimalBufferSize, v8::internal::less_equal, v8::internal::not_equal, and v8::internal::rax.
TEST | ( | OperandRegisterDependency | ) |
Definition at line 436 of file test-assembler-x64.cc.
References CHECK, v8::internal::r13, v8::internal::r15, v8::internal::r8, v8::internal::r9, v8::internal::rax, v8::internal::rbp, v8::internal::rcx, v8::internal::rdx, v8::internal::rsp, and v8::internal::times_1.
TEST | ( | AssemblerX64LabelChaining | ) |
Definition at line 479 of file test-assembler-x64.cc.
References __, v8::internal::equal, CcTest::i_isolate(), CcTest::InitializeVM(), CcTest::isolate(), v8::internal::not_equal, and v8::internal::NULL.
TEST | ( | AssemblerMultiByteNop | ) |
Definition at line 493 of file test-assembler-x64.cc.
References __, Code::cast(), CHECK, CHECK_EQ, v8::internal::code(), Code::ComputeFlags(), Heap::CreateCode(), Code::entry(), Assembler::GetCode(), Isolate::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), CcTest::isolate(), v8::internal::not_equal, AssemblerBase::pc_offset(), v8::internal::rax, v8::internal::rbx, v8::internal::rcx, v8::internal::rdi, v8::internal::rdx, v8::internal::rsi, and v8::internal::STUB.
TEST | ( | AssemblerX64Extractps | ) |
Definition at line 649 of file test-assembler-x64.cc.
References __, Code::cast(), CHECK, CHECK_EQ, Code::ComputeFlags(), Heap::CreateCode(), Code::entry(), Assembler::GetCode(), Isolate::heap(), CcTest::i_isolate(), CcTest::InitializeVM(), CcTest::isolate(), CpuFeatures::IsSupported(), v8::internal::rax, v8::internal::SSE4_1, v8::internal::STUB, v8::internal::uint64_to_double(), V8_2PART_UINT64_C, and v8::internal::xmm0.
TEST | ( | AssemblerX64SSE | ) |
Definition at line 682 of file test-assembler-x64.cc.
References __, Code::cast(), CHECK, CHECK_EQ, Code::ComputeFlags(), Heap::CreateCode(), Code::entry(), Assembler::GetCode(), Isolate::heap(), CcTest::InitializeVM(), CcTest::isolate(), v8::internal::rax, v8::internal::STUB, v8::internal::xmm0, v8::internal::xmm1, and v8::internal::xmm2.