v8
3.14.5(node0.10.28)
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 | __ masm-> |
Typedefs | |
typedef int(* | F0 )() |
Functions | |
TEST (Smi) | |
TEST (SmiMove) | |
void | TestSmiCompare (MacroAssembler *masm, Label *exit, int id, int x, int y) |
TEST (SmiCompare) | |
TEST (Integer32ToSmi) | |
void | TestI64PlusConstantToSmi (MacroAssembler *masm, Label *exit, int id, int64_t x, int y) |
TEST (Integer64PlusConstantToSmi) | |
TEST (SmiCheck) | |
void | TestSmiNeg (MacroAssembler *masm, Label *exit, int id, int x) |
TEST (SmiNeg) | |
TEST (SmiAdd) | |
TEST (SmiSub) | |
void | TestSmiMul (MacroAssembler *masm, Label *exit, int id, int x, int y) |
TEST (SmiMul) | |
void | TestSmiDiv (MacroAssembler *masm, Label *exit, int id, int x, int y) |
TEST (SmiDiv) | |
void | TestSmiMod (MacroAssembler *masm, Label *exit, int id, int x, int y) |
TEST (SmiMod) | |
void | TestSmiIndex (MacroAssembler *masm, Label *exit, int id, int x) |
TEST (SmiIndex) | |
void | TestSelectNonSmi (MacroAssembler *masm, Label *exit, int id, int x, int y) |
TEST (SmiSelectNonSmi) | |
void | TestSmiAnd (MacroAssembler *masm, Label *exit, int id, int x, int y) |
TEST (SmiAnd) | |
void | TestSmiOr (MacroAssembler *masm, Label *exit, int id, int x, int y) |
TEST (SmiOr) | |
void | TestSmiXor (MacroAssembler *masm, Label *exit, int id, int x, int y) |
TEST (SmiXor) | |
void | TestSmiNot (MacroAssembler *masm, Label *exit, int id, int x) |
TEST (SmiNot) | |
void | TestSmiShiftLeft (MacroAssembler *masm, Label *exit, int id, int x) |
TEST (SmiShiftLeft) | |
void | TestSmiShiftLogicalRight (MacroAssembler *masm, Label *exit, int id, int x) |
TEST (SmiShiftLogicalRight) | |
void | TestSmiShiftArithmeticRight (MacroAssembler *masm, Label *exit, int id, int x) |
TEST (SmiShiftArithmeticRight) | |
void | TestPositiveSmiPowerUp (MacroAssembler *masm, Label *exit, int id, int x) |
TEST (PositiveSmiTimesPowerOfTwoToInteger64) | |
TEST (OperandOffset) | |
#define __ masm-> |
Definition at line 93 of file test-macro-assembler-x64.cc.
Referenced by TEST(), TestI64PlusConstantToSmi(), TestPositiveSmiPowerUp(), TestSelectNonSmi(), TestSmiAnd(), TestSmiCompare(), TestSmiDiv(), TestSmiIndex(), TestSmiMod(), TestSmiMul(), TestSmiNeg(), TestSmiNot(), TestSmiOr(), TestSmiShiftArithmeticRight(), TestSmiShiftLeft(), TestSmiShiftLogicalRight(), and TestSmiXor().
typedef int(* F0)() |
Definition at line 91 of file test-macro-assembler-x64.cc.
TEST | ( | Smi | ) |
Definition at line 116 of file test-macro-assembler-x64.cc.
References CHECK_EQ, and Smi::value().
TEST | ( | SmiMove | ) |
Definition at line 152 of file test-macro-assembler-x64.cc.
References __, CHECK, CHECK_EQ, Assembler::GetCode(), V8::Initialize(), NULL, v8::internal::rax, and MacroAssembler::set_allow_stub_calls().
TEST | ( | SmiCompare | ) |
Definition at line 241 of file test-macro-assembler-x64.cc.
References __, CHECK, CHECK_EQ, Assembler::GetCode(), V8::Initialize(), NULL, v8::internal::rax, MacroAssembler::set_allow_stub_calls(), and TestSmiCompare().
TEST | ( | Integer32ToSmi | ) |
Definition at line 294 of file test-macro-assembler-x64.cc.
References __, CHECK, CHECK_EQ, Assembler::GetCode(), V8::Initialize(), v8::internal::not_equal, NULL, v8::internal::r8, v8::internal::rax, v8::internal::rcx, v8::internal::rdx, and MacroAssembler::set_allow_stub_calls().
TEST | ( | Integer64PlusConstantToSmi | ) |
Definition at line 424 of file test-macro-assembler-x64.cc.
References __, CHECK, CHECK_EQ, Assembler::GetCode(), V8::Initialize(), NULL, v8::internal::rax, MacroAssembler::set_allow_stub_calls(), and TestI64PlusConstantToSmi().
TEST | ( | SmiCheck | ) |
Definition at line 470 of file test-macro-assembler-x64.cc.
References __, CHECK, CHECK_EQ, MacroAssembler::CheckBothSmi(), MacroAssembler::CheckInteger32ValidSmiValue(), MacroAssembler::CheckIsMinSmi(), MacroAssembler::CheckNonNegativeSmi(), MacroAssembler::CheckSmi(), Assembler::GetCode(), V8::Initialize(), v8::internal::kSmiTagMask, v8::internal::NegateCondition(), NULL, v8::internal::rax, v8::internal::rcx, v8::internal::rdx, and MacroAssembler::set_allow_stub_calls().
TEST | ( | SmiNeg | ) |
Definition at line 719 of file test-macro-assembler-x64.cc.
References __, CHECK, CHECK_EQ, Assembler::GetCode(), V8::Initialize(), NULL, v8::internal::rax, MacroAssembler::set_allow_stub_calls(), and TestSmiNeg().
TEST | ( | SmiAdd | ) |
Definition at line 810 of file test-macro-assembler-x64.cc.
References __, CHECK, CHECK_EQ, Assembler::GetCode(), V8::Initialize(), NULL, v8::internal::rax, and MacroAssembler::set_allow_stub_calls().
TEST | ( | SmiSub | ) |
Definition at line 1001 of file test-macro-assembler-x64.cc.
References __, CHECK, CHECK_EQ, Assembler::GetCode(), V8::Initialize(), NULL, v8::internal::rax, and MacroAssembler::set_allow_stub_calls().
TEST | ( | SmiMul | ) |
Definition at line 1094 of file test-macro-assembler-x64.cc.
References __, CHECK, CHECK_EQ, Assembler::GetCode(), V8::Initialize(), NULL, v8::internal::rax, MacroAssembler::set_allow_stub_calls(), and TestSmiMul().
TEST | ( | SmiDiv | ) |
Definition at line 1201 of file test-macro-assembler-x64.cc.
References __, CHECK, CHECK_EQ, Assembler::GetCode(), V8::Initialize(), NULL, v8::internal::r14, v8::internal::r15, v8::internal::rax, MacroAssembler::set_allow_stub_calls(), and TestSmiDiv().
TEST | ( | SmiMod | ) |
Definition at line 1313 of file test-macro-assembler-x64.cc.
References __, CHECK, CHECK_EQ, Assembler::GetCode(), V8::Initialize(), NULL, v8::internal::r14, v8::internal::r15, v8::internal::rax, MacroAssembler::set_allow_stub_calls(), and TestSmiMod().
TEST | ( | SmiIndex | ) |
Definition at line 1411 of file test-macro-assembler-x64.cc.
References __, CHECK, CHECK_EQ, Assembler::GetCode(), V8::Initialize(), NULL, v8::internal::rax, MacroAssembler::set_allow_stub_calls(), and TestSmiIndex().
TEST | ( | SmiSelectNonSmi | ) |
Definition at line 1482 of file test-macro-assembler-x64.cc.
References __, CHECK, CHECK_EQ, Assembler::GetCode(), V8::Initialize(), NULL, v8::internal::rax, MacroAssembler::set_allow_stub_calls(), and TestSelectNonSmi().
TEST | ( | SmiAnd | ) |
Definition at line 1563 of file test-macro-assembler-x64.cc.
References __, CHECK, CHECK_EQ, Assembler::GetCode(), V8::Initialize(), NULL, v8::internal::rax, MacroAssembler::set_allow_stub_calls(), and TestSmiAnd().
TEST | ( | SmiOr | ) |
Definition at line 1646 of file test-macro-assembler-x64.cc.
References __, CHECK, CHECK_EQ, Assembler::GetCode(), V8::Initialize(), NULL, v8::internal::rax, MacroAssembler::set_allow_stub_calls(), and TestSmiOr().
TEST | ( | SmiXor | ) |
Definition at line 1731 of file test-macro-assembler-x64.cc.
References __, CHECK, CHECK_EQ, Assembler::GetCode(), V8::Initialize(), NULL, v8::internal::rax, MacroAssembler::set_allow_stub_calls(), and TestSmiXor().
TEST | ( | SmiNot | ) |
Definition at line 1800 of file test-macro-assembler-x64.cc.
References __, CHECK, CHECK_EQ, Assembler::GetCode(), V8::Initialize(), NULL, v8::internal::rax, MacroAssembler::set_allow_stub_calls(), and TestSmiNot().
TEST | ( | SmiShiftLeft | ) |
Definition at line 1898 of file test-macro-assembler-x64.cc.
References __, CHECK, CHECK_EQ, Assembler::GetCode(), V8::Initialize(), NULL, v8::internal::rax, MacroAssembler::set_allow_stub_calls(), and TestSmiShiftLeft().
TEST | ( | SmiShiftLogicalRight | ) |
Definition at line 2006 of file test-macro-assembler-x64.cc.
References __, CHECK, CHECK_EQ, Assembler::GetCode(), V8::Initialize(), NULL, v8::internal::rax, MacroAssembler::set_allow_stub_calls(), and TestSmiShiftLogicalRight().
TEST | ( | SmiShiftArithmeticRight | ) |
Definition at line 2077 of file test-macro-assembler-x64.cc.
References __, CHECK, CHECK_EQ, Assembler::GetCode(), V8::Initialize(), NULL, v8::internal::rax, MacroAssembler::set_allow_stub_calls(), and TestSmiShiftArithmeticRight().
TEST | ( | PositiveSmiTimesPowerOfTwoToInteger64 | ) |
Definition at line 2143 of file test-macro-assembler-x64.cc.
References __, CHECK, CHECK_EQ, Assembler::GetCode(), V8::Initialize(), NULL, v8::internal::rax, MacroAssembler::set_allow_stub_calls(), and TestPositiveSmiPowerUp().
TEST | ( | OperandOffset | ) |
Definition at line 2185 of file test-macro-assembler-x64.cc.
References __, CHECK, CHECK_EQ, Assembler::GetCode(), V8::Initialize(), v8::internal::kIntSize, v8::internal::kPointerSize, NONE, v8::internal::not_equal, NULL, v8::internal::r13, v8::internal::r14, v8::internal::r8, v8::internal::rax, v8::internal::rbp, v8::internal::rbx, v8::internal::rcx, v8::internal::rdx, v8::internal::rsp, MacroAssembler::set_allow_stub_calls(), and v8::internal::times_pointer_size.
void TestI64PlusConstantToSmi | ( | MacroAssembler * | masm, |
Label * | exit, | ||
int | id, | ||
int64_t | x, | ||
int | y | ||
) |
Definition at line 398 of file test-macro-assembler-x64.cc.
References __, ASSERT, NONE, v8::internal::not_equal, v8::internal::r11, v8::internal::r8, v8::internal::rax, v8::internal::rcx, and v8::internal::rdx.
Referenced by TEST().
void TestPositiveSmiPowerUp | ( | MacroAssembler * | masm, |
Label * | exit, | ||
int | id, | ||
int | x | ||
) |
Definition at line 2117 of file test-macro-assembler-x64.cc.
References __, ASSERT, v8::internal::not_equal, v8::internal::r11, v8::internal::r8, v8::internal::rax, v8::internal::rcx, and v8::internal::rdx.
Referenced by TEST().
void TestSelectNonSmi | ( | MacroAssembler * | masm, |
Label * | exit, | ||
int | id, | ||
int | x, | ||
int | y | ||
) |
Definition at line 1449 of file test-macro-assembler-x64.cc.
References __, v8::internal::kSmiTagMask, v8::internal::not_equal, v8::internal::r9, v8::internal::rax, v8::internal::rcx, and v8::internal::rdx.
Referenced by TEST().
void TestSmiAnd | ( | MacroAssembler * | masm, |
Label * | exit, | ||
int | id, | ||
int | x, | ||
int | y | ||
) |
Definition at line 1524 of file test-macro-assembler-x64.cc.
References __, v8::internal::not_equal, v8::internal::r11, v8::internal::r8, v8::internal::r9, v8::internal::rax, v8::internal::rcx, and v8::internal::rdx.
Referenced by TEST().
void TestSmiCompare | ( | MacroAssembler * | masm, |
Label * | exit, | ||
int | id, | ||
int | x, | ||
int | y | ||
) |
Definition at line 195 of file test-macro-assembler-x64.cc.
References __, ASSERT, ASSERT_EQ, v8::internal::greater_equal, v8::internal::less_equal, v8::internal::not_equal, v8::internal::r8, v8::internal::r9, v8::internal::rax, v8::internal::rcx, and v8::internal::rdx.
Referenced by TEST().
void TestSmiDiv | ( | MacroAssembler * | masm, |
Label * | exit, | ||
int | id, | ||
int | x, | ||
int | y | ||
) |
Definition at line 1140 of file test-macro-assembler-x64.cc.
References __, v8::internal::not_equal, v8::internal::overflow, v8::internal::r11, v8::internal::r14, v8::internal::r15, v8::internal::r8, v8::internal::r9, and v8::internal::rcx.
Referenced by TEST().
void TestSmiIndex | ( | MacroAssembler * | masm, |
Label * | exit, | ||
int | id, | ||
int | x | ||
) |
Definition at line 1371 of file test-macro-assembler-x64.cc.
References __, ASSERT, Register::is(), v8::internal::not_equal, v8::internal::r8, v8::internal::rax, v8::internal::rcx, v8::internal::rdx, SmiIndex::reg, SmiIndex::scale, MacroAssembler::SmiToIndex(), and MacroAssembler::SmiToNegativeIndex().
Referenced by TEST().
void TestSmiMod | ( | MacroAssembler * | masm, |
Label * | exit, | ||
int | id, | ||
int | x, | ||
int | y | ||
) |
Definition at line 1259 of file test-macro-assembler-x64.cc.
References __, v8::internal::not_equal, v8::internal::r11, v8::internal::r14, v8::internal::r15, v8::internal::r8, v8::internal::r9, and v8::internal::rcx.
Referenced by TEST().
void TestSmiMul | ( | MacroAssembler * | masm, |
Label * | exit, | ||
int | id, | ||
int | x, | ||
int | y | ||
) |
Definition at line 1052 of file test-macro-assembler-x64.cc.
References __, v8::internal::not_equal, v8::internal::r11, v8::internal::r8, v8::internal::r9, v8::internal::rax, v8::internal::rcx, and v8::internal::rdx.
Referenced by TEST().
void TestSmiNeg | ( | MacroAssembler * | masm, |
Label * | exit, | ||
int | id, | ||
int | x | ||
) |
Definition at line 673 of file test-macro-assembler-x64.cc.
References __, v8::internal::not_equal, v8::internal::r11, v8::internal::r8, v8::internal::r9, v8::internal::rax, and v8::internal::rcx.
Referenced by TEST().
void TestSmiNot | ( | MacroAssembler * | masm, |
Label * | exit, | ||
int | id, | ||
int | x | ||
) |
Definition at line 1777 of file test-macro-assembler-x64.cc.
References __, v8::internal::not_equal, v8::internal::r11, v8::internal::r8, v8::internal::r9, v8::internal::rax, and v8::internal::rcx.
Referenced by TEST().
void TestSmiOr | ( | MacroAssembler * | masm, |
Label * | exit, | ||
int | id, | ||
int | x, | ||
int | y | ||
) |
Definition at line 1607 of file test-macro-assembler-x64.cc.
References __, v8::internal::not_equal, v8::internal::r11, v8::internal::r8, v8::internal::r9, v8::internal::rax, v8::internal::rcx, and v8::internal::rdx.
Referenced by TEST().
void TestSmiShiftArithmeticRight | ( | MacroAssembler * | masm, |
Label * | exit, | ||
int | id, | ||
int | x | ||
) |
Definition at line 2046 of file test-macro-assembler-x64.cc.
References __, v8::internal::kSmiValueSize, v8::internal::not_equal, v8::internal::r11, v8::internal::r8, v8::internal::rax, v8::internal::rcx, and v8::internal::rdx.
Referenced by TEST().
void TestSmiShiftLeft | ( | MacroAssembler * | masm, |
Label * | exit, | ||
int | id, | ||
int | x | ||
) |
Definition at line 1841 of file test-macro-assembler-x64.cc.
References __, CHECK, v8::internal::kSmiValueSize, v8::internal::not_equal, v8::internal::r11, v8::internal::r8, v8::internal::r9, v8::internal::rax, v8::internal::rcx, and v8::internal::rdx.
Referenced by TEST().
void TestSmiShiftLogicalRight | ( | MacroAssembler * | masm, |
Label * | exit, | ||
int | id, | ||
int | x | ||
) |
Definition at line 1938 of file test-macro-assembler-x64.cc.
References __, v8::internal::kSmiValueSize, v8::internal::not_equal, v8::internal::r11, v8::internal::r8, v8::internal::r9, v8::internal::rax, v8::internal::rcx, and v8::internal::rdx.
Referenced by TEST().
void TestSmiXor | ( | MacroAssembler * | masm, |
Label * | exit, | ||
int | id, | ||
int | x, | ||
int | y | ||
) |
Definition at line 1692 of file test-macro-assembler-x64.cc.
References __, v8::internal::not_equal, v8::internal::r11, v8::internal::r8, v8::internal::r9, v8::internal::rax, v8::internal::rcx, and v8::internal::rdx.
Referenced by TEST().