38 using namespace v8::internal;
41 #define STDCALL __attribute__((stdcall))
43 #define STDCALL __stdcall
52 TEST(LoadAndStoreWithRepresentation) {
63 MacroAssembler assembler(isolate, buffer, static_cast<int>(actual_size));
71 __ mov(
eax, Immediate(1));
73 __ mov(
ebx, Immediate(-1));
76 __ mov(
edx, Immediate(255));
85 __ mov(
eax, Immediate(2));
87 __ mov(
ebx, Immediate(-1));
90 __ mov(
edx, Immediate(255));
94 __ mov(
edx, Immediate(-1));
99 __ mov(
eax, Immediate(3));
101 __ mov(
ebx, Immediate(-1));
104 __ mov(
edx, Immediate(65535));
108 __ mov(
ebx, Immediate(-1));
113 __ mov(
eax, Immediate(4));
115 __ mov(
ebx, Immediate(-1));
118 __ mov(
edx, Immediate(65535));
127 CpuFeatureScope scope(masm,
SSE2);
128 __ mov(
eax, Immediate(5));
142 __ mov(
eax, Immediate(6));
143 __ Move(
edx, Immediate(0));
144 __ cmp(
edx, Immediate(0));
146 __ Move(
ecx, Immediate(-1));
147 __ cmp(
ecx, Immediate(-1));
149 __ Move(
ebx, Immediate(0x77));
150 __ cmp(
ebx, Immediate(0x77));
163 int result = FUNCTION_CAST<F0>(buffer)();
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 NULL
static Representation UInteger8()
static bool Initialize(Deserializer *des)
#define CHECK_EQ(expected, value)
static const int kMinimalBufferSize
static bool IsSupported(CpuFeature f)
static Representation Integer16()
void GetCode(CodeDesc *desc)
static i::Isolate * i_isolate()
void Load(const v8::FunctionCallbackInfo< v8::Value > &args)
static void * Allocate(const size_t requested, size_t *allocated, bool is_executable)
static Representation UInteger16()
static Representation Integer8()