/external/v8/src/ia32/ |
D | macro-assembler-ia32.cc | 90 test(value, Immediate(kSmiTagMask)); in RecordWrite() 120 mov(object, Immediate(BitCast<int32_t>(kZapValue))); in RecordWrite() 121 mov(value, Immediate(BitCast<int32_t>(kZapValue))); in RecordWrite() 122 mov(scratch, Immediate(BitCast<int32_t>(kZapValue))); in RecordWrite() 136 test(value, Immediate(kSmiTagMask)); in RecordWrite() 148 mov(object, Immediate(BitCast<int32_t>(kZapValue))); in RecordWrite() 149 mov(address, Immediate(BitCast<int32_t>(kZapValue))); in RecordWrite() 150 mov(value, Immediate(BitCast<int32_t>(kZapValue))); in RecordWrite() 157 Set(eax, Immediate(0)); in DebugBreak() 158 mov(ebx, Immediate(ExternalReference(Runtime::kDebugBreak, isolate()))); in DebugBreak() [all …]
|
D | code-stubs-ia32.cc | 46 __ test(eax, Immediate(kSmiTagMask)); in Generate() 53 __ cmp(Operand(ebx), Immediate(factory->heap_number_map())); in Generate() 88 __ mov(ebx, Immediate(factory->empty_fixed_array())); in Generate() 92 Immediate(factory->the_hole_value())); in Generate() 97 Immediate(factory->undefined_value())); in Generate() 114 __ push(Immediate(factory->false_value())); in Generate() 134 Immediate(Smi::FromInt(length))); in Generate() 137 __ Set(ebx, Immediate(0)); // Set to NULL. in Generate() 270 __ cmp(FieldOperand(eax, String::kLengthOffset), Immediate(0)); in Generate() 392 __ push(Immediate(Smi::FromInt(MinorKey()))); in GenerateTypeTransition() [all …]
|
D | codegen-ia32.cc | 87 Immediate(OS::kMinComplexMemCopy)); in CreateMemCopyFunction() 111 __ add(Operand(edx), Immediate(16)); in CreateMemCopyFunction() 118 __ test(Operand(src), Immediate(0x0F)); in CreateMemCopyFunction() 133 __ add(Operand(src), Immediate(0x20)); in CreateMemCopyFunction() 137 __ add(Operand(dst), Immediate(0x20)); in CreateMemCopyFunction() 145 __ test(Operand(count), Immediate(0x10)); in CreateMemCopyFunction() 148 __ add(Operand(src), Immediate(0x10)); in CreateMemCopyFunction() 150 __ add(Operand(dst), Immediate(0x10)); in CreateMemCopyFunction() 179 __ add(Operand(src), Immediate(0x20)); in CreateMemCopyFunction() 183 __ add(Operand(dst), Immediate(0x20)); in CreateMemCopyFunction() [all …]
|
D | regexp-macro-assembler-ia32.cc | 137 __ add(Operand(edi), Immediate(by * char_size())); in AdvanceCurrentPosition() 146 __ add(register_location(reg), Immediate(by)); in AdvanceRegister() 155 __ add(Operand(ebx), Immediate(masm_->CodeObject())); in Backtrack() 180 __ cmp(Operand(ebp, kStartIndex), Immediate(0)); in CheckAtStart() 192 __ cmp(Operand(ebp, kStartIndex), Immediate(0)); in CheckNotAtStart() 222 __ cmp(Operand(edi), Immediate(-(byte_offset + byte_length))); in CheckCharacters() 257 __ cmp(Operand(ebx, byte_offset + i), Immediate(combined_chars)); in CheckCharacters() 268 Immediate(*reinterpret_cast<const int*>(&str[i]))); in CheckCharacters() 291 __ add(Operand(backtrack_stackpointer()), Immediate(kPointerSize)); // Pop. in CheckGreedyLoop() 347 __ add(Operand(edx), Immediate(1)); in CheckNotBackReferenceIgnoreCase() [all …]
|
D | stub-cache-ia32.cc | 69 __ add(Operand(extra), Immediate(Code::kHeaderSize - kHeapObjectTag)); in ProbeTable() 95 __ add(Operand(offset), Immediate(Code::kHeaderSize - kHeapObjectTag)); in ProbeTable() 142 Immediate(masm->isolate()->factory()->hash_table_map())); in GenerateDictionaryNegativeLookup() 170 Immediate(Smi::FromInt(name->Hash() + in GenerateDictionaryNegativeLookup() 236 __ test(receiver, Immediate(kSmiTagMask)); in GenerateProbe() 254 __ add(Operand(scratch), Immediate(flags)); in GenerateProbe() 286 __ Set(prototype, Immediate(Handle<Map>(function->initial_map()))); in GenerateDirectLoadGlobalFunctionPrototype() 297 __ test(receiver, Immediate(kSmiTagMask)); in GenerateLoadArrayLength() 318 __ test(receiver, Immediate(kSmiTagMask)); in GenerateStringCheck() 325 __ test(scratch, Immediate(kNotStringTag)); in GenerateStringCheck() [all …]
|
D | full-codegen-ia32.cc | 61 __ test(reg, Immediate(kSmiTagMask)); in EmitJumpIfNotSmi() 66 __ test(reg, Immediate(kSmiTagMask)); in EmitJumpIfSmi() 73 __ test(eax, Immediate(delta_to_patch_site)); in EmitPatchInfo() 132 __ push(Immediate(isolate()->factory()->undefined_value())); in Generate() 134 __ mov(eax, Immediate(isolate()->factory()->undefined_value())); in Generate() 195 __ SafePush(Immediate(Smi::FromInt(scope()->num_parameters()))); in Generate() 262 __ Set(eax, Immediate(Smi::FromInt(0))); in ClearAccumulator() 285 __ test(eax, Immediate(Min(loop_depth(), Code::kMaxLoopNestingMarker))); in EmitStackCheck() 385 __ SafeSet(result_register(), Immediate(lit)); in Plug() 387 __ Set(result_register(), Immediate(lit)); in Plug() [all …]
|
D | assembler-ia32-inl.h | 249 Immediate::Immediate(int x) { in Immediate() function 255 Immediate::Immediate(const ExternalReference& ext) { in Immediate() function 261 Immediate::Immediate(Label* internal_offset) { in Immediate() function 267 Immediate::Immediate(Handle<Object> handle) { in Immediate() function 282 Immediate::Immediate(Smi* value) { in Immediate() function 288 Immediate::Immediate(Address addr) { in Immediate() function 320 void Assembler::emit(const Immediate& x) { in emit() 342 void Assembler::emit_w(const Immediate& x) { in emit_w()
|
D | assembler-ia32.h | 272 class Immediate BASE_EMBEDDED { 274 inline explicit Immediate(int x); 275 inline explicit Immediate(const ExternalReference& ext); 276 inline explicit Immediate(Handle<Object> handle); 277 inline explicit Immediate(Smi* value); 278 inline explicit Immediate(Address addr); 280 static Immediate CodeRelativeOffset(Label* label) { in CodeRelativeOffset() 281 return Immediate(label); in CodeRelativeOffset() 293 inline explicit Immediate(Label* value); 675 void push(const Immediate& x); [all …]
|
D | builtins-ia32.cc | 72 __ add(Operand(eax), Immediate(num_extra_args + 1)); in Generate_Adaptor() 85 __ test(edi, Immediate(kSmiTagMask)); in Generate_JSConstructCall() 101 __ Set(ebx, Immediate(0)); in Generate_JSConstructCall() 133 __ cmp(Operand::StaticVariable(debug_step_in_fp), Immediate(0)); in Generate_JSConstructStubHelper() 142 __ test(eax, Immediate(kSmiTagMask)); in Generate_JSConstructStubHelper() 207 __ add(Operand(ecx), Immediate(kPointerSize)); in Generate_JSConstructStubHelper() 220 __ or_(Operand(ebx), Immediate(kHeapObjectTag)); in Generate_JSConstructStubHelper() 272 __ add(Operand(eax), Immediate(kPointerSize)); in Generate_JSConstructStubHelper() 282 __ or_(Operand(edi), Immediate(kHeapObjectTag)); // add the heap tag in Generate_JSConstructStubHelper() 358 __ test(eax, Immediate(kSmiTagMask)); in Generate_JSConstructStubHelper() [all …]
|
D | ic-ia32.cc | 75 __ test(receiver, Immediate(kSmiTagMask)); in GenerateStringDictionaryReceiverCheck() 134 __ add(Operand(r0), Immediate(StringDictionary::GetProbeOffset(i))); in GenerateStringDictionaryProbes() 203 Immediate(PropertyDetails::TypeField::mask() << kSmiTagSize)); in GenerateDictionaryLoad() 261 Immediate(kTypeAndReadOnlyMask)); in GenerateDictionaryStore() 338 __ add(Operand(r2), Immediate(NumberDictionary::GetProbeOffset(i))); in GenerateNumberDictionaryLoad() 364 Immediate(PropertyDetails::TypeField::mask() << kSmiTagSize)); in GenerateNumberDictionaryLoad() 437 __ test(receiver, Immediate(kSmiTagMask)); in GenerateKeyedLoadReceiverCheck() 488 __ cmp(Operand(scratch), Immediate(FACTORY->the_hole_value())); in GenerateFastArrayLoad() 516 __ test(hash, Immediate(String::kContainsCachedArrayIndexMask)); in GenerateKeyStringCheck() 536 __ test(eax, Immediate(kSmiTagMask)); in GenerateGeneric() [all …]
|
D | lithium-codegen-ia32.cc | 138 __ mov(Operand(eax), Immediate(slots)); in GeneratePrologue() 141 __ push(Immediate(kSlotsZapValue)); in GeneratePrologue() 145 __ sub(Operand(esp), Immediate(slots * kPointerSize)); in GeneratePrologue() 293 Immediate LCodeGen::ToImmediate(LOperand* op) { in ToImmediate() 299 return Immediate(static_cast<int32_t>(literal->Number())); in ToImmediate() 304 return Immediate(literal); in ToImmediate() 545 __ sub(Operand(eax), Immediate(Smi::FromInt(1))); in DeoptimizeIf() 548 __ mov(eax, Immediate(Smi::FromInt(FLAG_deopt_every_n_times))); in DeoptimizeIf() 1020 __ test(ToRegister(left), Immediate(0x80000000)); in DoShiftI() 1042 __ test(ToRegister(left), Immediate(0x80000000)); in DoShiftI() [all …]
|
D | debug-ia32.cc | 119 __ test(reg, Immediate(0xc0000000)); in Generate_DebugBreakCallHelper() 130 __ Set(eax, Immediate(0)); // No arguments. in Generate_DebugBreakCallHelper() 131 __ mov(ebx, Immediate(ExternalReference::debug_break(masm->isolate()))); in Generate_DebugBreakCallHelper() 142 __ Set(reg, Immediate(kDebugZapValue)); in Generate_DebugBreakCallHelper() 159 __ add(Operand(esp), Immediate(kPointerSize)); in Generate_DebugBreakCallHelper() 284 __ mov(Operand::StaticVariable(restarter_frame_function_slot), Immediate(0)); in GenerateFrameDropperLiveEdit()
|
D | macro-assembler-ia32.h | 152 void StoreToSafepointRegisterSlot(Register dst, Immediate src); 197 void Set(Register dst, const Immediate& x); 198 void Set(const Operand& dst, const Immediate& x); 201 bool IsUnsafeImmediate(const Immediate& x); 202 void SafeSet(Register dst, const Immediate& x); 203 void SafePush(const Immediate& x); 275 test(value, Immediate(kSmiTagMask)); in JumpIfSmi() 280 test(value, Immediate(kSmiTagMask)); in JumpIfNotSmi() 708 Immediate(ExternalReference::new_space_mask(isolate()))); in InNewSpace() 710 Immediate(ExternalReference::new_space_start(isolate()))); in InNewSpace() [all …]
|
/external/v8/src/x64/ |
D | assembler-x64.h | 349 class Immediate BASE_EMBEDDED { 351 explicit Immediate(int32_t value) : value_(value) {} in Immediate() function 653 void push(Immediate value); 663 void enter(Immediate size); 668 void movb(Register dst, Immediate imm); 678 void movl(const Operand& dst, Immediate imm); 680 void movl(Register dst, Immediate imm32); 688 void movq(Register dst, Immediate x); 694 void movq(const Operand& dst, Immediate value); 738 void addl(Register dst, Immediate src) { in addl() [all …]
|
D | regexp-macro-assembler-x64.cc | 153 __ addq(rdi, Immediate(by * char_size())); in AdvanceCurrentPosition() 162 __ addq(register_location(reg), Immediate(by)); in AdvanceRegister() 182 __ cmpl(current_character(), Immediate(c)); in CheckCharacter() 188 __ cmpl(current_character(), Immediate(limit)); in CheckCharacterGT() 196 __ cmpb(Operand(rbp, kStartIndex), Immediate(0)); in CheckAtStart() 208 __ cmpb(Operand(rbp, kStartIndex), Immediate(0)); in CheckNotAtStart() 218 __ cmpl(current_character(), Immediate(limit)); in CheckCharacterLT() 238 __ cmpl(rdi, Immediate(-(byte_offset + byte_length))); in CheckCharacters() 254 Immediate(static_cast<int8_t>(str[0]))); in CheckCharacters() 260 __ cmpl(rax, Immediate(static_cast<int32_t>(str[0]))); in CheckCharacters() [all …]
|
D | macro-assembler-x64.cc | 212 and_(object, Immediate(~Page::kPageAlignmentMask)); in RecordWriteHelper() 216 shrl(addr, Immediate(Page::kRegionSizeLog2)); in RecordWriteHelper() 217 andl(addr, Immediate(Page::kPageAlignmentMask >> Page::kRegionSizeLog2)); in RecordWriteHelper() 375 testq(rsp, Immediate(frame_alignment_mask)); in CheckStackAlignment() 470 addq(rsp, Immediate(num_arguments * kPointerSize)); in IllegalOperation() 486 and_(hash, Immediate(String::kArrayIndexValueMask)); in IndexFromHash() 487 shr(hash, Immediate(String::kHashShift)); in IndexFromHash() 672 addl(Operand(base_reg, kLevelOffset), Immediate(1)); in TryCallApiFunctionAndReturn() 692 subl(Operand(base_reg, kLevelOffset), Immediate(1)); in TryCallApiFunctionAndReturn() 792 movl(dst, Immediate(static_cast<uint32_t>(x))); in Set() [all …]
|
D | code-stubs-x64.cc | 249 __ and_(rbx, Immediate(1 << Map::kIsUndetectable)); in Generate() 253 __ cmpq(rcx, Immediate(FIRST_JS_OBJECT_TYPE)); in Generate() 257 __ cmpq(rcx, Immediate(FIRST_NONSTRING_TYPE)); in Generate() 911 __ subq(rsp, Immediate(kDoubleSize)); in Generate() 917 __ addq(rsp, Immediate(kDoubleSize)); in Generate() 946 __ sar(rdx, Immediate(32)); in Generate() 951 __ sarl(rdx, Immediate(8)); in Generate() 952 __ sarl(rcx, Immediate(16)); in Generate() 953 __ sarl(rax, Immediate(24)); in Generate() 958 __ andl(rcx, Immediate(TranscendentalCache::SubCache::kCacheSize - 1)); in Generate() [all …]
|
D | codegen-x64.cc | 84 __ testb(rax, Immediate(5)); in CreateModuloFunction() 97 __ testl(rax, Immediate(0x400 /* C2 */)); in CreateModuloFunction() 107 __ testb(rax, Immediate(5)); in CreateModuloFunction() 126 __ testb(rax, Immediate(0x3f /* Any Exception*/)); in CreateModuloFunction()
|
D | ic-x64.cc | 52 __ cmpb(type, Immediate(JS_GLOBAL_OBJECT_TYPE)); in GenerateGlobalInstanceTypeCheck() 54 __ cmpb(type, Immediate(JS_BUILTINS_OBJECT_TYPE)); in GenerateGlobalInstanceTypeCheck() 56 __ cmpb(type, Immediate(JS_GLOBAL_PROXY_TYPE)); in GenerateGlobalInstanceTypeCheck() 79 __ cmpb(r0, Immediate(FIRST_JS_OBJECT_TYPE)); in GenerateStringDictionaryReceiverCheck() 89 Immediate((1 << Map::kIsAccessCheckNeeded) | in GenerateStringDictionaryReceiverCheck() 131 __ shrl(r1, Immediate(String::kHashShift)); in GenerateStringDictionaryProbes() 133 __ addl(r1, Immediate(StringDictionary::GetProbeOffset(i))); in GenerateStringDictionaryProbes() 317 __ shll(r1, Immediate(15)); in GenerateNumberDictionaryLoad() 321 __ shrl(r1, Immediate(12)); in GenerateNumberDictionaryLoad() 327 __ shrl(r1, Immediate(4)); in GenerateNumberDictionaryLoad() [all …]
|
D | assembler-x64.cc | 86 __ xor_(rax, Immediate(0x200000)); // Flip bit 21. in Probe() 102 __ movl(rax, Immediate(1)); in Probe() 108 __ shl(rcx, Immediate(32)); in Probe() 119 __ movl(rax, Immediate(1)); in Probe() 124 __ or_(rax, Immediate(1 << CPUID)); in Probe() 648 Immediate src) { in immediate_arithmetic_op() 667 Immediate src) { in immediate_arithmetic_op() 684 Immediate src) { in immediate_arithmetic_op_16() 705 Immediate src) { in immediate_arithmetic_op_16() 723 Immediate src) { in immediate_arithmetic_op_32() [all …]
|
D | builtins-x64.cc | 71 __ addq(rax, Immediate(num_extra_args + 1)); in Generate_Adaptor() 132 __ cmpq(Operand(kScratchRegister, 0), Immediate(0)); in Generate_JSConstructStubHelper() 178 __ shl(rdi, Immediate(kPointerSizeLog2)); in Generate_JSConstructStubHelper() 209 __ addq(rcx, Immediate(kPointerSize)); in Generate_JSConstructStubHelper() 222 __ or_(rbx, Immediate(kHeapObjectTag)); in Generate_JSConstructStubHelper() 275 __ addq(rcx, Immediate(kPointerSize)); in Generate_JSConstructStubHelper() 285 __ or_(rdi, Immediate(kHeapObjectTag)); // add the heap tag in Generate_JSConstructStubHelper() 488 __ addq(rcx, Immediate(1)); in Generate_JSEntryTrampolineHelper() 580 __ cmpq(rcx, Immediate(FullCodeGenerator::NO_REGISTERS)); in Generate_NotifyDeoptimizedHelper() 586 __ cmpq(rcx, Immediate(FullCodeGenerator::TOS_REG)); in Generate_NotifyDeoptimizedHelper() [all …]
|
D | macro-assembler-x64.h | 237 addq(kRootRegister, Immediate(kRootRegisterBias)); in InitializeRootRegister() 1258 masm->push(Immediate(reinterpret_cast<int>(&__FILE_LINE__))); \ 1549 testl(rax, Immediate(0x7fffffff)); in SmiDiv() 1608 cmpl(rax, Immediate(Smi::kMinValue)); in SmiMod() 1610 cmpl(src2, Immediate(-1)); in SmiMod() 1652 shr(dst, Immediate(shift_value + kSmiShift)); in SmiShiftLogicalRightConstant() 1653 shl(dst, Immediate(kSmiShift)); in SmiShiftLogicalRightConstant() 1677 orl(rcx, Immediate(kSmiShift)); in SmiShiftLogicalRight() 1679 shl(dst, Immediate(kSmiShift)); in SmiShiftLogicalRight() 1716 movl(kScratchRegister, Immediate(kSmiTagMask)); in SelectNonSmi() [all …]
|
/external/v8/test/cctest/ |
D | test-macro-assembler-x64.cc | 43 using v8::internal::Immediate; 109 __ movq(rdx, Immediate(-1)); in ExitCode() 143 __ movl(rax, Immediate(id)); in TestMoveSmi() 202 __ movl(rax, Immediate(id + 1)); in TestSmiCompare() 205 __ movl(rax, Immediate(id + 2)); in TestSmiCompare() 209 __ movl(rax, Immediate(id + 3)); in TestSmiCompare() 212 __ movl(rax, Immediate(id + 4)); in TestSmiCompare() 222 __ movl(rax, Immediate(id + 9)); in TestSmiCompare() 226 __ movl(rax, Immediate(id + 10)); in TestSmiCompare() 231 __ movl(rax, Immediate(id + 11)); in TestSmiCompare() [all …]
|
D | test-disasm-ia32.cc | 66 __ add(Operand(eax), Immediate(12345678)); in TEST() 68 __ sub(Operand(eax), Immediate(12345678)); in TEST() 89 __ add(Operand(ebp, ecx, times_4, 12), Immediate(12)); in TEST() 92 __ add(Operand(ebx), Immediate(12)); in TEST() 101 __ cmp(Operand(ebp, ecx, times_4, 0), Immediate(1000)); in TEST() 135 __ push(Immediate(12)); in TEST() 136 __ push(Immediate(23456)); in TEST() 164 __ mov(Operand(ebx, ecx, times_4, 10000), Immediate(12345)); in TEST() 178 __ test(Operand(ebx, ecx, times_4, 10000), Immediate(123456)); in TEST() 219 __ add(Operand(ebx), Immediate(12)); in TEST() [all …]
|
D | test-assembler-x64.cc | 41 using v8::internal::Immediate; 266 __ movq(rax, Immediate(-3)); in TEST() 271 __ addq(rax, Immediate(7)); in TEST() 273 __ cmpq(rax, Immediate(20)); in TEST() 276 __ cmpq(rax, Immediate(25)); in TEST() 281 __ movq(rax, Immediate(0x11FEED00)); in TEST() 284 __ addq(rax, Immediate(-0x1100)); in TEST() 286 __ cmpq(rax, Immediate(0x11FE8000)); in TEST() 289 __ cmpq(rax, Immediate(0x11FE7600)); in TEST() 292 __ movq(rax, Immediate(1)); in TEST() [all …]
|