/external/v8/test/cctest/ |
D | test-disasm-x87.cc | 43 #define __ assm. macro 59 __ adc(eax, 12345678); in TEST() 60 __ add(eax, Immediate(12345678)); in TEST() 61 __ or_(eax, 12345678); in TEST() 62 __ sub(eax, Immediate(12345678)); in TEST() 63 __ xor_(eax, 12345678); in TEST() 64 __ and_(eax, 12345678); in TEST() 66 __ cmp(eax, foo); in TEST() 69 __ mov(ebx, Operand(esp, ecx, times_2, 0)); // [esp+ecx*4] in TEST() 72 __ add(edx, ebx); in TEST() [all …]
|
D | test-disasm-ia32.cc | 43 #define __ assm. macro 59 __ adc(eax, 12345678); in TEST() 60 __ add(eax, Immediate(12345678)); in TEST() 61 __ or_(eax, 12345678); in TEST() 62 __ sub(eax, Immediate(12345678)); in TEST() 63 __ xor_(eax, 12345678); in TEST() 64 __ and_(eax, 12345678); in TEST() 66 __ cmp(eax, foo); in TEST() 69 __ mov(ebx, Operand(esp, ecx, times_2, 0)); // [esp+ecx*4] in TEST() 72 __ add(edx, ebx); in TEST() [all …]
|
D | test-disasm-x64.cc | 42 #define __ assm. macro 58 __ addq(rax, Immediate(12345678)); in TEST() 59 __ orq(rax, Immediate(12345678)); in TEST() 60 __ subq(rax, Immediate(12345678)); in TEST() 61 __ xorq(rax, Immediate(12345678)); in TEST() 62 __ andq(rax, Immediate(12345678)); in TEST() 65 __ movq(rbx, Operand(rsp, rcx, times_2, 0)); // [rsp+rcx*4] in TEST() 68 __ addq(rdx, rbx); in TEST() 69 __ addq(rdx, Operand(rbx, 0)); in TEST() 70 __ addq(rdx, Operand(rbx, 16)); in TEST() [all …]
|
D | test-assembler-x64.cc | 67 #define __ assm. macro 80 __ movq(rax, arg2); in TEST() 81 __ nop(); in TEST() 82 __ ret(0); in TEST() 104 __ pushq(rbp); in TEST() 105 __ movq(rbp, rsp); in TEST() 106 __ pushq(arg2); // Value at (rbp - 8) in TEST() 107 __ pushq(arg2); // Value at (rbp - 16) in TEST() 108 __ pushq(arg1); // Value at (rbp - 24) in TEST() 109 __ popq(rax); in TEST() [all …]
|
D | test-assembler-ia32.cc | 48 #define __ assm. macro 58 __ mov(eax, Operand(esp, 4)); in TEST() 59 __ add(eax, Operand(esp, 8)); in TEST() 60 __ ret(0); in TEST() 86 __ mov(edx, Operand(esp, 4)); in TEST() 87 __ xor_(eax, eax); // clear eax in TEST() 88 __ jmp(&C); in TEST() 90 __ bind(&L); in TEST() 91 __ add(eax, edx); in TEST() 92 __ sub(edx, Immediate(1)); in TEST() [all …]
|
D | test-macro-assembler-x64.cc | 95 #define __ masm-> macro 100 __ pushq(i::kRootRegister); in EntryCode() 101 __ InitializeRootRegister(); in EntryCode() 106 __ popq(i::kRootRegister); in ExitCode() 137 __ movl(rax, Immediate(id)); in TestMoveSmi() 138 __ Move(rcx, value); in TestMoveSmi() 139 __ Set(rdx, reinterpret_cast<intptr_t>(value)); in TestMoveSmi() 140 __ cmpq(rcx, rdx); in TestMoveSmi() 141 __ j(not_equal, exit); in TestMoveSmi() 173 __ xorq(rax, rax); // Success. in TEST() [all …]
|
/external/v8/src/x87/ |
D | builtins-x87.cc | 17 #define __ ACCESS_MASM(masm) macro 33 __ AssertFunction(edi); in Generate_Adaptor() 39 __ mov(esi, FieldOperand(edi, JSFunction::kContextOffset)); in Generate_Adaptor() 44 __ PopReturnAddressTo(ecx); in Generate_Adaptor() 47 __ Push(edi); in Generate_Adaptor() 51 __ Push(edx); in Generate_Adaptor() 53 __ PushReturnAddressFrom(ecx); in Generate_Adaptor() 58 __ add(eax, Immediate(num_extra_args + 1)); in Generate_Adaptor() 60 __ JumpToExternalReference(ExternalReference(id, masm->isolate())); in Generate_Adaptor() 73 __ push(edi); in CallRuntimePassFunction() [all …]
|
D | code-stubs-x87.cc | 100 #define __ ACCESS_MASM(masm) macro 117 __ push(descriptor.GetRegisterParameter(i)); in GenerateLightweightMiss() 119 __ CallExternalReference(miss, param_count); in GenerateLightweightMiss() 122 __ ret(0); in GenerateLightweightMiss() 130 __ pushad(); in Generate() 133 __ sub(esp, Immediate(108)); in Generate() 134 __ fnsave(Operand(esp, 0)); in Generate() 139 __ PrepareCallCFunction(argument_count, ecx); in Generate() 140 __ mov(Operand(esp, 0 * kPointerSize), in Generate() 142 __ CallCFunction( in Generate() [all …]
|
/external/v8/src/ia32/ |
D | builtins-ia32.cc | 17 #define __ ACCESS_MASM(masm) macro 33 __ AssertFunction(edi); in Generate_Adaptor() 39 __ mov(esi, FieldOperand(edi, JSFunction::kContextOffset)); in Generate_Adaptor() 44 __ PopReturnAddressTo(ecx); in Generate_Adaptor() 47 __ Push(edi); in Generate_Adaptor() 51 __ Push(edx); in Generate_Adaptor() 53 __ PushReturnAddressFrom(ecx); in Generate_Adaptor() 58 __ add(eax, Immediate(num_extra_args + 1)); in Generate_Adaptor() 60 __ JumpToExternalReference(ExternalReference(id, masm->isolate())); in Generate_Adaptor() 73 __ push(edi); in CallRuntimePassFunction() [all …]
|
D | code-stubs-ia32.cc | 100 #define __ ACCESS_MASM(masm) macro 117 __ push(descriptor.GetRegisterParameter(i)); in GenerateLightweightMiss() 119 __ CallExternalReference(miss, param_count); in GenerateLightweightMiss() 122 __ ret(0); in GenerateLightweightMiss() 130 __ pushad(); in Generate() 132 __ sub(esp, Immediate(kDoubleSize * XMMRegister::kMaxNumRegisters)); in Generate() 135 __ movsd(Operand(esp, i * kDoubleSize), reg); in Generate() 141 __ PrepareCallCFunction(argument_count, ecx); in Generate() 142 __ mov(Operand(esp, 0 * kPointerSize), in Generate() 144 __ CallCFunction( in Generate() [all …]
|
D | codegen-ia32.cc | 34 #define __ masm. macro 51 __ movsd(input, Operand(esp, 1 * kPointerSize)); in CreateExpFunction() 52 __ push(eax); in CreateExpFunction() 53 __ push(ebx); in CreateExpFunction() 57 __ pop(ebx); in CreateExpFunction() 58 __ pop(eax); in CreateExpFunction() 59 __ movsd(Operand(esp, 1 * kPointerSize), result); in CreateExpFunction() 60 __ fld_d(Operand(esp, 1 * kPointerSize)); in CreateExpFunction() 61 __ Ret(); in CreateExpFunction() 86 __ movsd(xmm0, Operand(esp, 1 * kPointerSize)); in CreateSqrtFunction() [all …]
|
/external/v8/src/x64/ |
D | builtins-x64.cc | 16 #define __ ACCESS_MASM(masm) macro 32 __ AssertFunction(rdi); in Generate_Adaptor() 38 __ movp(rsi, FieldOperand(rdi, JSFunction::kContextOffset)); in Generate_Adaptor() 43 __ PopReturnAddressTo(kScratchRegister); in Generate_Adaptor() 46 __ Push(rdi); in Generate_Adaptor() 50 __ Push(rdx); in Generate_Adaptor() 52 __ PushReturnAddressFrom(kScratchRegister); in Generate_Adaptor() 57 __ addp(rax, Immediate(num_extra_args + 1)); in Generate_Adaptor() 59 __ JumpToExternalReference(ExternalReference(id, masm->isolate())); in Generate_Adaptor() 72 __ Push(rdi); in CallRuntimePassFunction() [all …]
|
D | code-stubs-x64.cc | 91 #define __ ACCESS_MASM(masm) macro 108 __ Push(descriptor.GetRegisterParameter(i)); in GenerateLightweightMiss() 110 __ CallExternalReference(miss, param_count); in GenerateLightweightMiss() 113 __ Ret(); in GenerateLightweightMiss() 118 __ PushCallerSaved(save_doubles() ? kSaveFPRegs : kDontSaveFPRegs); in Generate() 120 __ PrepareCallCFunction(argument_count); in Generate() 121 __ LoadAddress(arg_reg_1, in Generate() 125 __ CallCFunction( in Generate() 128 __ PopCallerSaved(save_doubles() ? kSaveFPRegs : kDontSaveFPRegs); in Generate() 129 __ ret(0); in Generate() [all …]
|
/external/v8/src/ppc/ |
D | builtins-ppc.cc | 17 #define __ ACCESS_MASM(masm) macro 31 __ AssertFunction(r4); in Generate_Adaptor() 37 __ LoadP(cp, FieldMemOperand(r4, JSFunction::kContextOffset)); in Generate_Adaptor() 43 __ Push(r4); in Generate_Adaptor() 47 __ Push(r6); in Generate_Adaptor() 51 __ Push(r4, r6); in Generate_Adaptor() 60 __ addi(r3, r3, Operand(num_extra_args + 1)); in Generate_Adaptor() 62 __ JumpToExternalReference(ExternalReference(id, masm->isolate())); in Generate_Adaptor() 70 __ LoadNativeContextSlot(Context::INTERNAL_ARRAY_FUNCTION_INDEX, result); in GenerateLoadInternalArrayFunction() 77 __ LoadNativeContextSlot(Context::ARRAY_FUNCTION_INDEX, result); in GenerateLoadArrayFunction() [all …]
|
D | code-stubs-ppc.cc | 92 #define __ ACCESS_MASM(masm) macro 118 __ push(descriptor.GetRegisterParameter(i)); in GenerateLightweightMiss() 120 __ CallExternalReference(miss, param_count); in GenerateLightweightMiss() 123 __ Ret(); in GenerateLightweightMiss() 143 __ push(scratch); in Generate() 149 __ lfd(double_scratch, MemOperand(input_reg, double_offset)); in Generate() 152 __ ConvertDoubleToInt64(double_scratch, in Generate() 160 __ TestIfInt32(result_reg, r0); in Generate() 162 __ TestIfInt32(scratch, result_reg, r0); in Generate() 164 __ beq(&fastpath_done); in Generate() [all …]
|
/external/v8/src/mips/ |
D | builtins-mips.cc | 18 #define __ ACCESS_MASM(masm) macro 33 __ AssertFunction(a1); in Generate_Adaptor() 39 __ lw(cp, FieldMemOperand(a1, JSFunction::kContextOffset)); in Generate_Adaptor() 45 __ Push(a1); in Generate_Adaptor() 49 __ Push(a3); in Generate_Adaptor() 53 __ Push(a1, a3); in Generate_Adaptor() 62 __ Addu(a0, a0, num_extra_args + 1); in Generate_Adaptor() 64 __ JumpToExternalReference(ExternalReference(id, masm->isolate())); in Generate_Adaptor() 72 __ LoadNativeContextSlot(Context::INTERNAL_ARRAY_FUNCTION_INDEX, result); in GenerateLoadInternalArrayFunction() 79 __ LoadNativeContextSlot(Context::ARRAY_FUNCTION_INDEX, result); in GenerateLoadArrayFunction() [all …]
|
D | code-stubs-mips.cc | 92 #define __ ACCESS_MASM(masm) macro 121 __ Subu(sp, sp, Operand(param_count * kPointerSize)); in GenerateLightweightMiss() 124 __ sw(descriptor.GetRegisterParameter(i), in GenerateLightweightMiss() 127 __ CallExternalReference(miss, param_count); in GenerateLightweightMiss() 130 __ Ret(); in GenerateLightweightMiss() 151 __ Push(scratch, scratch2, scratch3); in Generate() 155 __ ldc1(double_scratch, MemOperand(input_reg, double_offset)); in Generate() 158 __ cfc1(scratch2, FCSR); in Generate() 159 __ ctc1(zero_reg, FCSR); in Generate() 162 __ Trunc_w_d(double_scratch, double_scratch); in Generate() [all …]
|
/external/v8/src/mips64/ |
D | builtins-mips64.cc | 17 #define __ ACCESS_MASM(masm) macro 32 __ AssertFunction(a1); in Generate_Adaptor() 38 __ ld(cp, FieldMemOperand(a1, JSFunction::kContextOffset)); in Generate_Adaptor() 44 __ Push(a1); in Generate_Adaptor() 48 __ Push(a3); in Generate_Adaptor() 52 __ Push(a1, a3); in Generate_Adaptor() 61 __ Daddu(a0, a0, num_extra_args + 1); in Generate_Adaptor() 63 __ JumpToExternalReference(ExternalReference(id, masm->isolate())); in Generate_Adaptor() 71 __ LoadNativeContextSlot(Context::INTERNAL_ARRAY_FUNCTION_INDEX, result); in GenerateLoadInternalArrayFunction() 78 __ LoadNativeContextSlot(Context::ARRAY_FUNCTION_INDEX, result); in GenerateLoadArrayFunction() [all …]
|
D | code-stubs-mips64.cc | 91 #define __ ACCESS_MASM(masm) macro 120 __ Dsubu(sp, sp, Operand(param_count * kPointerSize)); in GenerateLightweightMiss() 123 __ sd(descriptor.GetRegisterParameter(i), in GenerateLightweightMiss() 126 __ CallExternalReference(miss, param_count); in GenerateLightweightMiss() 129 __ Ret(); in GenerateLightweightMiss() 150 __ Push(scratch, scratch2, scratch3); in Generate() 153 __ ldc1(double_scratch, MemOperand(input_reg, double_offset)); in Generate() 156 __ cfc1(scratch2, FCSR); in Generate() 157 __ ctc1(zero_reg, FCSR); in Generate() 160 __ Trunc_w_d(double_scratch, double_scratch); in Generate() [all …]
|
/external/v8/src/arm/ |
D | builtins-arm.cc | 17 #define __ ACCESS_MASM(masm) macro 32 __ AssertFunction(r1); in Generate_Adaptor() 38 __ ldr(cp, FieldMemOperand(r1, JSFunction::kContextOffset)); in Generate_Adaptor() 44 __ Push(r1); in Generate_Adaptor() 48 __ Push(r3); in Generate_Adaptor() 52 __ Push(r1, r3); in Generate_Adaptor() 61 __ add(r0, r0, Operand(num_extra_args + 1)); in Generate_Adaptor() 63 __ JumpToExternalReference(ExternalReference(id, masm->isolate())); in Generate_Adaptor() 71 __ LoadNativeContextSlot(Context::INTERNAL_ARRAY_FUNCTION_INDEX, result); in GenerateLoadInternalArrayFunction() 78 __ LoadNativeContextSlot(Context::ARRAY_FUNCTION_INDEX, result); in GenerateLoadArrayFunction() [all …]
|
/external/v8/src/arm64/ |
D | builtins-arm64.cc | 18 #define __ ACCESS_MASM(masm) macro 24 __ LoadNativeContextSlot(Context::ARRAY_FUNCTION_INDEX, result); in GenerateLoadArrayFunction() 32 __ LoadNativeContextSlot(Context::INTERNAL_ARRAY_FUNCTION_INDEX, result); in GenerateLoadInternalArrayFunction() 48 __ AssertFunction(x1); in Generate_Adaptor() 54 __ Ldr(cp, FieldMemOperand(x1, JSFunction::kContextOffset)); in Generate_Adaptor() 60 __ Push(x1); in Generate_Adaptor() 64 __ Push(x3); in Generate_Adaptor() 68 __ Push(x1, x3); in Generate_Adaptor() 77 __ Add(x0, x0, num_extra_args + 1); in Generate_Adaptor() 79 __ JumpToExternalReference(ExternalReference(id, masm->isolate())); in Generate_Adaptor() [all …]
|
D | code-stubs-arm64.cc | 97 #define __ ACCESS_MASM(masm) macro 120 __ CallExternalReference(miss, param_count); in GenerateLightweightMiss() 123 __ Ret(); in GenerateLightweightMiss() 143 __ Push(scratch1, scratch2); in Generate() 148 __ Push(double_scratch); in Generate() 150 __ Ldr(double_scratch, MemOperand(input, double_offset)); in Generate() 153 __ TryConvertDoubleToInt64(result, double_scratch, &done); in Generate() 154 __ Fmov(result, double_scratch); in Generate() 156 __ Ldr(result, MemOperand(input, double_offset)); in Generate() 163 __ Ubfx(exponent, result, HeapNumber::kMantissaBits, in Generate() [all …]
|
/external/v8/src/regexp/x87/ |
D | regexp-macro-assembler-x87.cc | 78 #define __ ACCESS_MASM(masm_) macro 95 __ jmp(&entry_label_); // We'll write the entry code later. in RegExpMacroAssemblerX87() 96 __ bind(&start_label_); // And then continue from here. in RegExpMacroAssemblerX87() 120 __ add(edi, Immediate(by * char_size())); in AdvanceCurrentPosition() 129 __ add(register_location(reg), Immediate(by)); in AdvanceRegister() 138 __ add(ebx, Immediate(masm_->CodeObject())); in Backtrack() 139 __ jmp(ebx); in Backtrack() 144 __ bind(label); in Bind() 149 __ cmp(current_character(), c); in CheckCharacter() 155 __ cmp(current_character(), limit); in CheckCharacterGT() [all …]
|
/external/v8/src/regexp/ia32/ |
D | regexp-macro-assembler-ia32.cc | 78 #define __ ACCESS_MASM(masm_) macro 95 __ jmp(&entry_label_); // We'll write the entry code later. in RegExpMacroAssemblerIA32() 96 __ bind(&start_label_); // And then continue from here. in RegExpMacroAssemblerIA32() 120 __ add(edi, Immediate(by * char_size())); in AdvanceCurrentPosition() 129 __ add(register_location(reg), Immediate(by)); in AdvanceRegister() 138 __ add(ebx, Immediate(masm_->CodeObject())); in Backtrack() 139 __ jmp(ebx); in Backtrack() 144 __ bind(label); in Bind() 149 __ cmp(current_character(), c); in CheckCharacter() 155 __ cmp(current_character(), limit); in CheckCharacterGT() [all …]
|
/external/vixl/test/ |
D | test-assembler-a64.cc | 92 #define __ masm. macro 126 __ PushCalleeSavedRegisters(); \ 128 __ Trace(LOG_STATE, TRACE_ENABLE); \ 131 __ Trace(LOG_WRITE, TRACE_ENABLE); \ 134 __ Trace(LOG_DISASM, TRACE_ENABLE); \ 137 __ EnableInstrumentation(); \ 142 __ DisableInstrumentation(); \ 144 __ Trace(LOG_ALL, TRACE_DISABLE); \ 146 __ PopCalleeSavedRegisters(); \ 147 __ Ret(); \ [all …]
|