/external/v8/src/ |
D | builtins.h | 376 static void Generate_Adaptor(MacroAssembler* masm, 379 static void Generate_ConstructedNonConstructable(MacroAssembler* masm); 380 static void Generate_CompileLazy(MacroAssembler* masm); 381 static void Generate_InOptimizationQueue(MacroAssembler* masm); 382 static void Generate_CompileOptimized(MacroAssembler* masm); 383 static void Generate_CompileOptimizedConcurrent(MacroAssembler* masm); 384 static void Generate_JSConstructStubGeneric(MacroAssembler* masm); 385 static void Generate_JSBuiltinsConstructStub(MacroAssembler* masm); 386 static void Generate_JSConstructStubApi(MacroAssembler* masm); 387 static void Generate_JSEntryTrampoline(MacroAssembler* masm); [all …]
|
D | macro-assembler.h | 84 explicit FrameScope(MacroAssembler* masm, StackFrame::Type type) in FrameScope() argument 85 : masm_(masm), type_(type), old_has_frame_(masm->has_frame()) { in FrameScope() 86 masm->set_has_frame(true); in FrameScope() 88 masm->EnterFrame(type); in FrameScope() 117 FrameAndConstantPoolScope(MacroAssembler* masm, StackFrame::Type type) in FrameAndConstantPoolScope() argument 118 : masm_(masm), in FrameAndConstantPoolScope() 120 old_has_frame_(masm->has_frame()), in FrameAndConstantPoolScope() 122 masm->is_constant_pool_available()) { in FrameAndConstantPoolScope() 123 masm->set_has_frame(true); in FrameAndConstantPoolScope() 125 masm->set_constant_pool_available(true); in FrameAndConstantPoolScope() [all …]
|
/external/v8/test/cctest/ |
D | test-macro-assembler-x64.cc | 95 #define __ masm-> 98 static void EntryCode(MacroAssembler* masm) { in EntryCode() argument 105 static void ExitCode(MacroAssembler* masm) { in ExitCode() argument 136 static void TestMoveSmi(MacroAssembler* masm, Label* exit, int id, Smi* value) { in TestMoveSmi() argument 156 MacroAssembler* masm = &assembler; // Create a pointer for the __ macro. in TEST() local 157 EntryCode(masm); in TEST() 160 TestMoveSmi(masm, &exit, 1, Smi::FromInt(0)); in TEST() 161 TestMoveSmi(masm, &exit, 2, Smi::FromInt(127)); in TEST() 162 TestMoveSmi(masm, &exit, 3, Smi::FromInt(128)); in TEST() 163 TestMoveSmi(masm, &exit, 4, Smi::FromInt(255)); in TEST() [all …]
|
/external/vixl/examples/ |
D | examples.h | 40 void GenerateFactorial(MacroAssembler* masm); 46 void GenerateFactorialRec(MacroAssembler* masm); 52 void GenerateNEONMatrixMultiply(MacroAssembler* masm); 58 void GenerateAdd2Vectors(MacroAssembler* masm); 65 void GenerateAdd3Double(MacroAssembler* masm); 72 void GenerateAdd4Double(MacroAssembler* masm); 79 void GenerateSumArray(MacroAssembler* masm); 85 void GenerateAbs(MacroAssembler* masm); 94 void GenerateCheckBounds(MacroAssembler* masm); 101 void GenerateCrc32(MacroAssembler* masm); [all …]
|
/external/v8/src/arm/ |
D | code-stubs-arm.h | 14 void ArrayNativeCode(MacroAssembler* masm, Label* call_generic_code); 23 static void GenerateCopyCharacters(MacroAssembler* masm, 32 MacroAssembler* masm, Register left, Register right, Register scratch1, 36 static void GenerateFlatOneByteStringEquals(MacroAssembler* masm, 44 MacroAssembler* masm, Register left, Register right, Register length, 81 static void PatchBranchIntoNop(MacroAssembler* masm, int pos) { in PatchBranchIntoNop() argument 82 masm->instr_at_put(pos, (masm->instr_at(pos) & ~B27) | (B24 | B20)); in PatchBranchIntoNop() 83 DCHECK(Assembler::IsTstImmediate(masm->instr_at(pos))); in PatchBranchIntoNop() 86 static void PatchNopIntoBranch(MacroAssembler* masm, int pos) { in PatchNopIntoBranch() argument 87 masm->instr_at_put(pos, (masm->instr_at(pos) & ~(B24 | B20)) | B27); in PatchNopIntoBranch() [all …]
|
D | builtins-arm.cc | 17 #define __ ACCESS_MASM(masm) 20 void Builtins::Generate_Adaptor(MacroAssembler* masm, in Generate_Adaptor() argument 63 __ JumpToExternalReference(ExternalReference(id, masm->isolate())); in Generate_Adaptor() 68 static void GenerateLoadInternalArrayFunction(MacroAssembler* masm, in GenerateLoadInternalArrayFunction() argument 76 static void GenerateLoadArrayFunction(MacroAssembler* masm, Register result) { in GenerateLoadArrayFunction() argument 82 void Builtins::Generate_InternalArrayCode(MacroAssembler* masm) { in Generate_InternalArrayCode() argument 91 GenerateLoadInternalArrayFunction(masm, r1); in Generate_InternalArrayCode() 105 InternalArrayConstructorStub stub(masm->isolate()); in Generate_InternalArrayCode() 110 void Builtins::Generate_ArrayCode(MacroAssembler* masm) { in Generate_ArrayCode() argument 119 GenerateLoadArrayFunction(masm, r1); in Generate_ArrayCode() [all …]
|
/external/v8/src/ppc/ |
D | code-stubs-ppc.h | 14 void ArrayNativeCode(MacroAssembler* masm, Label* call_generic_code); 23 static void GenerateCopyCharacters(MacroAssembler* masm, Register dest, 29 static void GenerateCompareFlatOneByteStrings(MacroAssembler* masm, 36 static void GenerateFlatOneByteStringEquals(MacroAssembler* masm, 42 static void GenerateOneByteCharsCompareLoop(MacroAssembler* masm, 101 static void PatchBranchIntoNop(MacroAssembler* masm, int pos) { in PatchBranchIntoNop() argument 103 masm->instr_at_put(pos, (masm->instr_at(pos) & ~kBOfieldMask) | BT); in PatchBranchIntoNop() 106 static void PatchNopIntoBranch(MacroAssembler* masm, int pos) { in PatchNopIntoBranch() argument 108 masm->instr_at_put(pos, (masm->instr_at(pos) & ~kBOfieldMask) | BF); in PatchNopIntoBranch() 130 MacroAssembler masm(stub->GetIsolate(), stub->instruction_start(), in Patch() [all …]
|
D | builtins-ppc.cc | 17 #define __ ACCESS_MASM(masm) 20 void Builtins::Generate_Adaptor(MacroAssembler* masm, CFunctionId id, in Generate_Adaptor() argument 62 __ JumpToExternalReference(ExternalReference(id, masm->isolate())); in Generate_Adaptor() 67 static void GenerateLoadInternalArrayFunction(MacroAssembler* masm, in GenerateLoadInternalArrayFunction() argument 75 static void GenerateLoadArrayFunction(MacroAssembler* masm, Register result) { in GenerateLoadArrayFunction() argument 81 void Builtins::Generate_InternalArrayCode(MacroAssembler* masm) { in Generate_InternalArrayCode() argument 90 GenerateLoadInternalArrayFunction(masm, r4); in Generate_InternalArrayCode() 104 InternalArrayConstructorStub stub(masm->isolate()); in Generate_InternalArrayCode() 109 void Builtins::Generate_ArrayCode(MacroAssembler* masm) { in Generate_ArrayCode() argument 118 GenerateLoadArrayFunction(masm, r4); in Generate_ArrayCode() [all …]
|
/external/vixl/test/examples/ |
D | test-examples.cc | 52 #define __ masm-> 108 void GenerateTestWrapper(MacroAssembler* masm, RegisterDump *regs) { in GenerateTestWrapper() argument 111 regs->Dump(masm); in GenerateTestWrapper() 144 simulator.set_xreg(15, masm.GetLabelAddress<uint64_t>(&Func)); \ 145 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&test)); \ 173 MacroAssembler masm(BUF_SIZE); \ 191 masm.Bind(&test); \ 192 GenerateTestWrapper(&masm, ®s); \ 193 masm.FinalizeCode() 209 masm.Bind(&factorial); in TEST() [all …]
|
/external/v8/src/mips/ |
D | code-stubs-mips.h | 14 void ArrayNativeCode(MacroAssembler* masm, Label* call_generic_code); 23 static void GenerateCopyCharacters(MacroAssembler* masm, 32 MacroAssembler* masm, Register left, Register right, Register scratch1, 36 static void GenerateFlatOneByteStringEquals(MacroAssembler* masm, 44 MacroAssembler* masm, Register left, Register right, Register length, 108 static void PatchBranchIntoNop(MacroAssembler* masm, int pos) { in PatchBranchIntoNop() argument 109 const unsigned offset = masm->instr_at(pos) & kImm16Mask; in PatchBranchIntoNop() 110 masm->instr_at_put(pos, BNE | (zero_reg.code() << kRsShift) | in PatchBranchIntoNop() 112 DCHECK(Assembler::IsBne(masm->instr_at(pos))); in PatchBranchIntoNop() 115 static void PatchNopIntoBranch(MacroAssembler* masm, int pos) { in PatchNopIntoBranch() argument [all …]
|
D | builtins-mips.cc | 18 #define __ ACCESS_MASM(masm) 21 void Builtins::Generate_Adaptor(MacroAssembler* masm, in Generate_Adaptor() argument 64 __ JumpToExternalReference(ExternalReference(id, masm->isolate())); in Generate_Adaptor() 69 static void GenerateLoadInternalArrayFunction(MacroAssembler* masm, in GenerateLoadInternalArrayFunction() argument 77 static void GenerateLoadArrayFunction(MacroAssembler* masm, Register result) { in GenerateLoadArrayFunction() argument 83 void Builtins::Generate_InternalArrayCode(MacroAssembler* masm) { in Generate_InternalArrayCode() argument 92 GenerateLoadInternalArrayFunction(masm, a1); in Generate_InternalArrayCode() 108 InternalArrayConstructorStub stub(masm->isolate()); in Generate_InternalArrayCode() 113 void Builtins::Generate_ArrayCode(MacroAssembler* masm) { in Generate_ArrayCode() argument 122 GenerateLoadArrayFunction(masm, a1); in Generate_ArrayCode() [all …]
|
/external/v8/src/mips64/ |
D | code-stubs-mips64.h | 14 void ArrayNativeCode(MacroAssembler* masm, Label* call_generic_code); 23 static void GenerateCopyCharacters(MacroAssembler* masm, 32 MacroAssembler* masm, Register left, Register right, Register scratch1, 36 static void GenerateFlatOneByteStringEquals(MacroAssembler* masm, 44 MacroAssembler* masm, Register left, Register right, Register length, 109 static void PatchBranchIntoNop(MacroAssembler* masm, int pos) { in PatchBranchIntoNop() argument 110 const unsigned offset = masm->instr_at(pos) & kImm16Mask; in PatchBranchIntoNop() 111 masm->instr_at_put(pos, BNE | (zero_reg.code() << kRsShift) | in PatchBranchIntoNop() 113 DCHECK(Assembler::IsBne(masm->instr_at(pos))); in PatchBranchIntoNop() 116 static void PatchNopIntoBranch(MacroAssembler* masm, int pos) { in PatchNopIntoBranch() argument [all …]
|
D | builtins-mips64.cc | 17 #define __ ACCESS_MASM(masm) 20 void Builtins::Generate_Adaptor(MacroAssembler* masm, in Generate_Adaptor() argument 63 __ JumpToExternalReference(ExternalReference(id, masm->isolate())); in Generate_Adaptor() 68 static void GenerateLoadInternalArrayFunction(MacroAssembler* masm, in GenerateLoadInternalArrayFunction() argument 76 static void GenerateLoadArrayFunction(MacroAssembler* masm, Register result) { in GenerateLoadArrayFunction() argument 82 void Builtins::Generate_InternalArrayCode(MacroAssembler* masm) { in Generate_InternalArrayCode() argument 91 GenerateLoadInternalArrayFunction(masm, a1); in Generate_InternalArrayCode() 107 InternalArrayConstructorStub stub(masm->isolate()); in Generate_InternalArrayCode() 112 void Builtins::Generate_ArrayCode(MacroAssembler* masm) { in Generate_ArrayCode() argument 121 GenerateLoadArrayFunction(masm, a1); in Generate_ArrayCode() [all …]
|
/external/v8/src/ia32/ |
D | builtins-ia32.cc | 17 #define __ ACCESS_MASM(masm) 20 void Builtins::Generate_Adaptor(MacroAssembler* masm, in Generate_Adaptor() argument 60 __ JumpToExternalReference(ExternalReference(id, masm->isolate())); in Generate_Adaptor() 65 MacroAssembler* masm, Runtime::FunctionId function_id) { in CallRuntimePassFunction() argument 71 FrameScope scope(masm, StackFrame::INTERNAL); in CallRuntimePassFunction() 85 static void GenerateTailCallToSharedCode(MacroAssembler* masm) { in GenerateTailCallToSharedCode() argument 93 static void GenerateTailCallToReturnedCode(MacroAssembler* masm) { in GenerateTailCallToReturnedCode() argument 99 void Builtins::Generate_InOptimizationQueue(MacroAssembler* masm) { in Generate_InOptimizationQueue() argument 107 ExternalReference::address_of_stack_limit(masm->isolate()); in Generate_InOptimizationQueue() 111 CallRuntimePassFunction(masm, Runtime::kTryInstallOptimizedCode); in Generate_InOptimizationQueue() [all …]
|
D | code-stubs-ia32.h | 12 void ArrayNativeCode(MacroAssembler* masm, 22 static void GenerateCopyCharacters(MacroAssembler* masm, 30 static void GenerateCompareFlatOneByteStrings(MacroAssembler* masm, 37 static void GenerateFlatOneByteStringEquals(MacroAssembler* masm, 44 MacroAssembler* masm, Register left, Register right, Register length, 64 static void GenerateNegativeLookup(MacroAssembler* masm, 71 static void GeneratePositiveLookup(MacroAssembler* masm, 225 void Save(MacroAssembler* masm) { in Save() argument 234 if (!scratch0_.is(scratch0_orig_)) masm->push(scratch0_); in Save() 238 masm->push(ecx); in Save() [all …]
|
/external/v8/src/x87/ |
D | builtins-x87.cc | 17 #define __ ACCESS_MASM(masm) 20 void Builtins::Generate_Adaptor(MacroAssembler* masm, in Generate_Adaptor() argument 60 __ JumpToExternalReference(ExternalReference(id, masm->isolate())); in Generate_Adaptor() 65 MacroAssembler* masm, Runtime::FunctionId function_id) { in CallRuntimePassFunction() argument 71 FrameScope scope(masm, StackFrame::INTERNAL); in CallRuntimePassFunction() 85 static void GenerateTailCallToSharedCode(MacroAssembler* masm) { in GenerateTailCallToSharedCode() argument 93 static void GenerateTailCallToReturnedCode(MacroAssembler* masm) { in GenerateTailCallToReturnedCode() argument 99 void Builtins::Generate_InOptimizationQueue(MacroAssembler* masm) { in Generate_InOptimizationQueue() argument 107 ExternalReference::address_of_stack_limit(masm->isolate()); in Generate_InOptimizationQueue() 111 CallRuntimePassFunction(masm, Runtime::kTryInstallOptimizedCode); in Generate_InOptimizationQueue() [all …]
|
D | code-stubs-x87.h | 12 void ArrayNativeCode(MacroAssembler* masm, 22 static void GenerateCopyCharacters(MacroAssembler* masm, 30 static void GenerateCompareFlatOneByteStrings(MacroAssembler* masm, 37 static void GenerateFlatOneByteStringEquals(MacroAssembler* masm, 44 MacroAssembler* masm, Register left, Register right, Register length, 64 static void GenerateNegativeLookup(MacroAssembler* masm, 71 static void GeneratePositiveLookup(MacroAssembler* masm, 222 void Save(MacroAssembler* masm) { in Save() argument 231 if (!scratch0_.is(scratch0_orig_)) masm->push(scratch0_); in Save() 235 masm->push(ecx); in Save() [all …]
|
/external/v8/src/x64/ |
D | builtins-x64.cc | 16 #define __ ACCESS_MASM(masm) 19 void Builtins::Generate_Adaptor(MacroAssembler* masm, in Generate_Adaptor() argument 59 __ JumpToExternalReference(ExternalReference(id, masm->isolate())); in Generate_Adaptor() 64 MacroAssembler* masm, Runtime::FunctionId function_id) { in CallRuntimePassFunction() argument 70 FrameScope scope(masm, StackFrame::INTERNAL); in CallRuntimePassFunction() 84 static void GenerateTailCallToSharedCode(MacroAssembler* masm) { in GenerateTailCallToSharedCode() argument 94 static void GenerateTailCallToReturnedCode(MacroAssembler* masm) { in GenerateTailCallToReturnedCode() argument 100 void Builtins::Generate_InOptimizationQueue(MacroAssembler* masm) { in Generate_InOptimizationQueue() argument 110 CallRuntimePassFunction(masm, Runtime::kTryInstallOptimizedCode); in Generate_InOptimizationQueue() 111 GenerateTailCallToReturnedCode(masm); in Generate_InOptimizationQueue() [all …]
|
D | code-stubs-x64.h | 12 void ArrayNativeCode(MacroAssembler* masm, Label* call_generic_code); 20 static void GenerateCopyCharacters(MacroAssembler* masm, 28 MacroAssembler* masm, Register left, Register right, Register scratch1, 32 static void GenerateFlatOneByteStringEquals(MacroAssembler* masm, 39 MacroAssembler* masm, Register left, Register right, Register length, 59 static void GenerateNegativeLookup(MacroAssembler* masm, 66 static void GeneratePositiveLookup(MacroAssembler* masm, 217 void Save(MacroAssembler* masm) { in Save() argument 226 if (!scratch0_.is(scratch0_orig_)) masm->Push(scratch0_); in Save() 230 masm->Push(rcx); in Save() [all …]
|
/external/v8/src/arm64/ |
D | builtins-arm64.cc | 18 #define __ ACCESS_MASM(masm) 22 static void GenerateLoadArrayFunction(MacroAssembler* masm, Register result) { in GenerateLoadArrayFunction() argument 29 static void GenerateLoadInternalArrayFunction(MacroAssembler* masm, in GenerateLoadInternalArrayFunction() argument 36 void Builtins::Generate_Adaptor(MacroAssembler* masm, in Generate_Adaptor() argument 79 __ JumpToExternalReference(ExternalReference(id, masm->isolate())); in Generate_Adaptor() 83 void Builtins::Generate_InternalArrayCode(MacroAssembler* masm) { in Generate_InternalArrayCode() argument 93 GenerateLoadInternalArrayFunction(masm, x1); in Generate_InternalArrayCode() 106 InternalArrayConstructorStub stub(masm->isolate()); in Generate_InternalArrayCode() 111 void Builtins::Generate_ArrayCode(MacroAssembler* masm) { in Generate_ArrayCode() argument 121 GenerateLoadArrayFunction(masm, x1); in Generate_ArrayCode() [all …]
|
/external/v8/src/debug/arm/ |
D | debug-arm.cc | 13 #define __ ACCESS_MASM(masm) 16 void EmitDebugBreakSlot(MacroAssembler* masm) { in EmitDebugBreakSlot() argument 23 masm->InstructionsGeneratedSince(&check_size)); in EmitDebugBreakSlot() 27 void DebugCodegen::GenerateSlot(MacroAssembler* masm, RelocInfo::Mode mode) { in GenerateSlot() argument 30 Assembler::BlockConstPoolScope block_const_pool(masm); in GenerateSlot() 31 masm->RecordDebugBreakSlot(mode); in GenerateSlot() 32 EmitDebugBreakSlot(masm); in GenerateSlot() 38 EmitDebugBreakSlot(patcher.masm()); in ClearDebugBreakSlot() 58 patcher.masm()->ldr(ip, MemOperand(v8::internal::pc, 0)); in PatchDebugBreakSlot() 59 patcher.masm()->b(&skip_constant); in PatchDebugBreakSlot() [all …]
|
/external/v8/src/debug/ppc/ |
D | debug-ppc.cc | 13 #define __ ACCESS_MASM(masm) 16 void EmitDebugBreakSlot(MacroAssembler* masm) { in EmitDebugBreakSlot() argument 23 masm->InstructionsGeneratedSince(&check_size)); in EmitDebugBreakSlot() 27 void DebugCodegen::GenerateSlot(MacroAssembler* masm, RelocInfo::Mode mode) { in GenerateSlot() argument 30 Assembler::BlockTrampolinePoolScope block_trampoline_pool(masm); in GenerateSlot() 31 masm->RecordDebugBreakSlot(mode); in GenerateSlot() 32 EmitDebugBreakSlot(masm); in GenerateSlot() 38 EmitDebugBreakSlot(patcher.masm()); in ClearDebugBreakSlot() 60 Assembler::BlockTrampolinePoolScope block_trampoline_pool(patcher.masm()); in PatchDebugBreakSlot() 61 patcher.masm()->mov(v8::internal::r0, in PatchDebugBreakSlot() [all …]
|
/external/v8/src/debug/x87/ |
D | debug-x87.cc | 14 #define __ ACCESS_MASM(masm) 17 void EmitDebugBreakSlot(MacroAssembler* masm) { in EmitDebugBreakSlot() argument 22 masm->SizeOfCodeGeneratedSince(&check_codesize)); in EmitDebugBreakSlot() 26 void DebugCodegen::GenerateSlot(MacroAssembler* masm, RelocInfo::Mode mode) { in GenerateSlot() argument 28 masm->RecordDebugBreakSlot(mode); in GenerateSlot() 29 EmitDebugBreakSlot(masm); in GenerateSlot() 35 EmitDebugBreakSlot(patcher.masm()); in ClearDebugBreakSlot() 47 patcher.masm()->bind(&check_codesize); in PatchDebugBreakSlot() 48 patcher.masm()->call(code->entry(), RelocInfo::NONE32); in PatchDebugBreakSlot() 50 DCHECK_EQ(kSize, patcher.masm()->SizeOfCodeGeneratedSince(&check_codesize)); in PatchDebugBreakSlot() [all …]
|
/external/v8/src/debug/x64/ |
D | debug-x64.cc | 15 #define __ ACCESS_MASM(masm) 18 void EmitDebugBreakSlot(MacroAssembler* masm) { in EmitDebugBreakSlot() argument 23 masm->SizeOfCodeGeneratedSince(&check_codesize)); in EmitDebugBreakSlot() 27 void DebugCodegen::GenerateSlot(MacroAssembler* masm, RelocInfo::Mode mode) { in GenerateSlot() argument 29 masm->RecordDebugBreakSlot(mode); in GenerateSlot() 30 EmitDebugBreakSlot(masm); in GenerateSlot() 36 EmitDebugBreakSlot(patcher.masm()); in ClearDebugBreakSlot() 46 patcher.masm()->bind(&check_codesize); in PatchDebugBreakSlot() 47 patcher.masm()->movp(kScratchRegister, reinterpret_cast<void*>(code->entry()), in PatchDebugBreakSlot() 49 patcher.masm()->call(kScratchRegister); in PatchDebugBreakSlot() [all …]
|
/external/v8/src/debug/ia32/ |
D | debug-ia32.cc | 14 #define __ ACCESS_MASM(masm) 17 void EmitDebugBreakSlot(MacroAssembler* masm) { in EmitDebugBreakSlot() argument 22 masm->SizeOfCodeGeneratedSince(&check_codesize)); in EmitDebugBreakSlot() 26 void DebugCodegen::GenerateSlot(MacroAssembler* masm, RelocInfo::Mode mode) { in GenerateSlot() argument 28 masm->RecordDebugBreakSlot(mode); in GenerateSlot() 29 EmitDebugBreakSlot(masm); in GenerateSlot() 35 EmitDebugBreakSlot(patcher.masm()); in ClearDebugBreakSlot() 47 patcher.masm()->bind(&check_codesize); in PatchDebugBreakSlot() 48 patcher.masm()->call(code->entry(), RelocInfo::NONE32); in PatchDebugBreakSlot() 50 DCHECK_EQ(kSize, patcher.masm()->SizeOfCodeGeneratedSince(&check_codesize)); in PatchDebugBreakSlot() [all …]
|