/third_party/vixl/test/ |
D | test-code-generation-scopes.cc | 47 #define __ masm. 55 aarch32::MacroAssembler masm; in TEST() local 58 CodeBufferCheckScope scope(&masm, aarch32::kA32InstructionSizeInBytes); in TEST() 62 masm.FinalizeCode(); in TEST() 69 aarch64::MacroAssembler masm; in TEST() local 72 CodeBufferCheckScope scope(&masm, aarch64::kInstructionSize); in TEST() 76 masm.FinalizeCode(); in TEST() 83 aarch32::MacroAssembler masm; in TEST() local 86 CodeBufferCheckScope scope(&masm, 2 * aarch32::kA32InstructionSizeInBytes); in TEST() 91 masm.FinalizeCode(); in TEST() [all …]
|
D | test-donkey.cc | 35 #define __ masm-> 138 MacroAssembler masm; in main() local 139 masm.GetCPUFeatures()->Combine(CPUFeatures::kSVE); in main() 171 masm.Bind(&test); in main() 172 masm.PushCalleeSavedRegisters(); in main() 173 SetInitialMachineState(&masm, input_set); in main() 174 ComputeMachineStateHash(&masm, &state_hash); in main() 175 masm.PopCalleeSavedRegisters(); in main() 176 masm.Ret(); in main() 177 masm.FinalizeCode(); in main() [all …]
|
/third_party/vixl/test/aarch64/examples/ |
D | test-examples.cc | 129 masm.GetLabelAddress<uint64_t>(&Func)); \ 130 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&test)); \ 159 MacroAssembler masm; \ 168 masm.Bind(&test); \ 176 masm.Trace(static_cast<TraceParameters>(trace_parameters), \ 180 masm.Blr(test_function_reg); \ 181 masm.Trace(LOG_ALL, TRACE_DISABLE); \ 182 regs.Dump(&masm); \ 183 masm.Mov(lr, reinterpret_cast<uint64_t>(Simulator::kEndOfSimAddress)); \ 184 masm.Ret(); \ [all …]
|
/third_party/vixl/test/aarch64/ |
D | test-assembler-aarch64.h | 80 #define __ masm. 87 MacroAssembler masm; \ 92 MacroAssembler masm; \ 95 masm.SetCPUFeatures(CPUFeatures(__VA_ARGS__)); \ 99 MacroAssembler masm(size + CodeBuffer::kDefaultCapacity, pic); \ 104 MacroAssembler masm; \ 116 masm.SetCPUFeatures(CPUFeatures::None()); \ 117 masm.SetGenerateSimulatorCode(true); \ 129 masm.Reset(); \ 132 SimulationCPUFeaturesScope cpu(&masm, kInfrastructureCPUFeatures); \ [all …]
|
D | test-disasm-aarch64.h | 30 MacroAssembler masm; \ 31 masm.GetCPUFeatures()->Combine(CPUFeatures::All()); \ 40 masm.SetGenerateSimulatorCode(true) 45 masm.SetGenerateSimulatorCode(false) 58 masm.GetBuffer()->GetStartAddress<Instruction*>(); \ 59 Instruction* dis_end = masm.GetBuffer()->GetEndAddress<Instruction*>(); \ 65 masm.Reset(); \ 67 ExactAssemblyScope guard(&masm, \ 70 masm.ASM; \ 72 masm.FinalizeCode(); \ [all …]
|
/third_party/vixl/src/ |
D | code-generation-scopes-vixl.h | 153 EmissionCheckScope(MacroAssemblerInterface* masm, 156 Open(masm, size, size_policy); 177 void Open(MacroAssemblerInterface* masm, 180 Open(masm, size, size_policy, kBlockPools); 202 void Open(MacroAssemblerInterface* masm, in Open() argument 206 if (masm == NULL) { in Open() 212 masm_ = masm; in Open() 218 masm->EnsureEmitPoolsFor(size); in Open() 219 masm->BlockPools(); in Open() 222 CodeBufferCheckScope::Open(masm->AsAssemblerBase(), in Open() [all …]
|
/third_party/vixl/examples/aarch64/ |
D | examples.h | 37 void GenerateFactorial(vixl::aarch64::MacroAssembler* masm); 43 void GenerateFactorialRec(vixl::aarch64::MacroAssembler* masm); 49 void GenerateNEONMatrixMultiply(vixl::aarch64::MacroAssembler* masm); 55 void GenerateAdd2Vectors(vixl::aarch64::MacroAssembler* masm); 62 void GenerateAdd3Double(vixl::aarch64::MacroAssembler* masm); 69 void GenerateAdd4Double(vixl::aarch64::MacroAssembler* masm); 76 void GenerateSumArray(vixl::aarch64::MacroAssembler* masm); 82 void GenerateAbs(vixl::aarch64::MacroAssembler* masm); 91 void GenerateCheckBounds(vixl::aarch64::MacroAssembler* masm); 98 void GenerateCrc32(vixl::aarch64::MacroAssembler* masm); [all …]
|
/third_party/node/deps/v8/src/builtins/arm/ |
D | builtins-arm.cc | 35 #define __ ACCESS_MASM(masm) 37 void Builtins::Generate_Adaptor(MacroAssembler* masm, Address address) { in Generate_Adaptor() argument 45 __ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithBuiltinExitFrame), in Generate_Adaptor() 49 static void GenerateTailCallToReturnedCode(MacroAssembler* masm, in GenerateTailCallToReturnedCode() argument 57 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); in GenerateTailCallToReturnedCode() 84 void Generate_PushArguments(MacroAssembler* masm, Register array, Register argc, in Generate_PushArguments() argument 88 UseScratchRegisterScope temps(masm); in Generate_PushArguments() 105 void Generate_JSBuiltinsConstructStubHelper(MacroAssembler* masm) { in Generate_JSBuiltinsConstructStubHelper() argument 123 FrameAndConstantPoolScope scope(masm, StackFrame::CONSTRUCT); in Generate_JSBuiltinsConstructStubHelper() 142 Generate_PushArguments(masm, r4, r0, r5, ArgumentsElementType::kRaw); in Generate_JSBuiltinsConstructStubHelper() [all …]
|
/third_party/node/deps/v8/src/builtins/arm64/ |
D | builtins-arm64.cc | 40 #define __ ACCESS_MASM(masm) 42 void Builtins::Generate_Adaptor(MacroAssembler* masm, Address address) { in Generate_Adaptor() argument 46 __ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithBuiltinExitFrame), in Generate_Adaptor() 50 static void GenerateTailCallToReturnedCode(MacroAssembler* masm, in GenerateTailCallToReturnedCode() argument 52 ASM_CODE_COMMENT(masm); in GenerateTailCallToReturnedCode() 59 FrameScope scope(masm, StackFrame::INTERNAL); in GenerateTailCallToReturnedCode() 83 void Generate_JSBuiltinsConstructStubHelper(MacroAssembler* masm) { in Generate_JSBuiltinsConstructStubHelper() argument 100 FrameScope scope(masm, StackFrame::CONSTRUCT); in Generate_JSBuiltinsConstructStubHelper() 198 FrameScope scope(masm, StackFrame::INTERNAL); in Generate_JSBuiltinsConstructStubHelper() 207 void Builtins::Generate_JSConstructStubGeneric(MacroAssembler* masm) { in Generate_JSConstructStubGeneric() argument [all …]
|
/third_party/node/deps/v8/src/builtins/riscv64/ |
D | builtins-riscv64.cc | 33 #define __ ACCESS_MASM(masm) 35 void Builtins::Generate_Adaptor(MacroAssembler* masm, Address address) { in Generate_Adaptor() argument 36 ASM_CODE_COMMENT(masm); in Generate_Adaptor() 38 __ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithBuiltinExitFrame), in Generate_Adaptor() 42 static void GenerateTailCallToReturnedCode(MacroAssembler* masm, in GenerateTailCallToReturnedCode() argument 50 FrameScope scope(masm, StackFrame::INTERNAL); in GenerateTailCallToReturnedCode() 78 void Generate_PushArguments(MacroAssembler* masm, Register array, Register argc, in Generate_PushArguments() argument 97 void Generate_JSBuiltinsConstructStubHelper(MacroAssembler* masm) { in Generate_JSBuiltinsConstructStubHelper() argument 109 FrameScope scope(masm, StackFrame::CONSTRUCT); in Generate_JSBuiltinsConstructStubHelper() 123 UseScratchRegisterScope temps(masm); in Generate_JSBuiltinsConstructStubHelper() [all …]
|
/third_party/node/deps/v8/src/builtins/ppc/ |
D | builtins-ppc.cc | 34 #define __ ACCESS_MASM(masm) 37 static void AssertCodeIsBaseline(MacroAssembler* masm, Register code, in AssertCodeIsBaseline() argument 47 static void GetSharedFunctionInfoBytecodeOrBaseline(MacroAssembler* masm, in GetSharedFunctionInfoBytecodeOrBaseline() argument 52 ASM_CODE_COMMENT(masm); in GetSharedFunctionInfoBytecodeOrBaseline() 58 AssertCodeIsBaseline(masm, sfi_data, scratch1); in GetSharedFunctionInfoBytecodeOrBaseline() 73 void Generate_OSREntry(MacroAssembler* masm, Register entry_address, in Generate_OSREntry() argument 82 void ResetBytecodeAgeAndOsrState(MacroAssembler* masm, Register bytecode_array, in ResetBytecodeAgeAndOsrState() argument 98 void Generate_BaselineOrInterpreterEntry(MacroAssembler* masm, in Generate_BaselineOrInterpreterEntry() argument 129 __ Jump(masm->isolate()->builtins()->code_handle(builtin_id), in Generate_BaselineOrInterpreterEntry() 140 AssertCodeIsBaseline(masm, code_obj, r6); in Generate_BaselineOrInterpreterEntry() [all …]
|
/third_party/node/deps/v8/src/builtins/ia32/ |
D | builtins-ia32.cc | 37 #define __ ACCESS_MASM(masm) 39 void Builtins::Generate_Adaptor(MacroAssembler* masm, Address address) { in Generate_Adaptor() argument 42 __ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithBuiltinExitFrame), in Generate_Adaptor() 46 static void GenerateTailCallToReturnedCode(MacroAssembler* masm, in GenerateTailCallToReturnedCode() argument 53 ASM_CODE_COMMENT(masm); in GenerateTailCallToReturnedCode() 55 FrameScope scope(masm, StackFrame::INTERNAL); in GenerateTailCallToReturnedCode() 86 void Generate_PushArguments(MacroAssembler* masm, Register array, Register argc, in Generate_PushArguments() argument 107 void Generate_JSBuiltinsConstructStubHelper(MacroAssembler* masm) { in Generate_JSBuiltinsConstructStubHelper() argument 121 FrameScope scope(masm, StackFrame::CONSTRUCT); in Generate_JSBuiltinsConstructStubHelper() 140 Generate_PushArguments(masm, esi, eax, ecx, no_reg, in Generate_JSBuiltinsConstructStubHelper() [all …]
|
/third_party/node/deps/v8/src/builtins/loong64/ |
D | builtins-loong64.cc | 36 #define __ ACCESS_MASM(masm) 38 void Builtins::Generate_Adaptor(MacroAssembler* masm, Address address) { in Generate_Adaptor() argument 40 __ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithBuiltinExitFrame), in Generate_Adaptor() 44 static void GenerateTailCallToReturnedCode(MacroAssembler* masm, in GenerateTailCallToReturnedCode() argument 52 FrameScope scope(masm, StackFrame::INTERNAL); in GenerateTailCallToReturnedCode() 79 void Generate_PushArguments(MacroAssembler* masm, Register array, Register argc, in Generate_PushArguments() argument 98 void Generate_JSBuiltinsConstructStubHelper(MacroAssembler* masm) { in Generate_JSBuiltinsConstructStubHelper() argument 110 FrameScope scope(masm, StackFrame::CONSTRUCT); in Generate_JSBuiltinsConstructStubHelper() 124 Generate_PushArguments(masm, t2, a0, t3, t0, ArgumentsElementType::kRaw); in Generate_JSBuiltinsConstructStubHelper() 150 void Builtins::Generate_JSConstructStubGeneric(MacroAssembler* masm) { in Generate_JSConstructStubGeneric() argument [all …]
|
/third_party/node/deps/v8/src/builtins/s390/ |
D | builtins-s390.cc | 34 #define __ ACCESS_MASM(masm) 38 static void AssertCodeIsBaseline(MacroAssembler* masm, Register code, in AssertCodeIsBaseline() argument 48 static void GetSharedFunctionInfoBytecodeOrBaseline(MacroAssembler* masm, in GetSharedFunctionInfoBytecodeOrBaseline() argument 53 ASM_CODE_COMMENT(masm); in GetSharedFunctionInfoBytecodeOrBaseline() 59 AssertCodeIsBaseline(masm, sfi_data, scratch1); in GetSharedFunctionInfoBytecodeOrBaseline() 74 void Generate_OSREntry(MacroAssembler* masm, Register entry_address, in Generate_OSREntry() argument 86 void ResetBytecodeAgeAndOsrState(MacroAssembler* masm, Register bytecode_array, in ResetBytecodeAgeAndOsrState() argument 102 void Generate_BaselineOrInterpreterEntry(MacroAssembler* masm, in Generate_BaselineOrInterpreterEntry() argument 132 __ Jump(masm->isolate()->builtins()->code_handle(builtin_id), in Generate_BaselineOrInterpreterEntry() 143 AssertCodeIsBaseline(masm, code_obj, r5); in Generate_BaselineOrInterpreterEntry() [all …]
|
/third_party/node/deps/v8/src/builtins/x64/ |
D | builtins-x64.cc | 42 #define __ ACCESS_MASM(masm) 44 void Builtins::Generate_Adaptor(MacroAssembler* masm, Address address) { in Generate_Adaptor() argument 47 __ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithBuiltinExitFrame), in Generate_Adaptor() 52 MacroAssembler* masm, Runtime::FunctionId function_id, in GenerateTailCallToReturnedCode() argument 59 ASM_CODE_COMMENT(masm); in GenerateTailCallToReturnedCode() 61 FrameScope scope(masm, StackFrame::INTERNAL); in GenerateTailCallToReturnedCode() 91 void Generate_PushArguments(MacroAssembler* masm, Register array, Register argc, in Generate_PushArguments() argument 111 void Generate_JSBuiltinsConstructStubHelper(MacroAssembler* masm) { in Generate_JSBuiltinsConstructStubHelper() argument 124 FrameScope scope(masm, StackFrame::CONSTRUCT); in Generate_JSBuiltinsConstructStubHelper() 142 Generate_PushArguments(masm, rbx, rax, rcx, ArgumentsElementType::kRaw); in Generate_JSBuiltinsConstructStubHelper() [all …]
|
/third_party/node/deps/v8/src/baseline/arm64/ |
D | baseline-compiler-arm64-inl.h | 19 __ masm()->EnterFrame(StackFrame::BASELINE); in Prologue() 27 __ masm()->AssertSpAligned(); in Prologue() 29 __ masm()->AssertSpAligned(); in Prologue() 38 __ masm()->CompareRoot(kInterpreterAccumulatorRegister, in PrologueFillFrame() 40 __ masm()->Assert(eq, AbortReason::kUnexpectedValue); in PrologueFillFrame() 53 __ masm()->Poke(kJavaScriptCallNewTargetRegister, Operand(0)); in PrologueFillFrame() 58 __ masm()->Push(kInterpreterAccumulatorRegister, in PrologueFillFrame() 62 __ masm()->Push(kJavaScriptCallNewTargetRegister, in PrologueFillFrame() 66 __ masm()->Push(kInterpreterAccumulatorRegister, in PrologueFillFrame() 77 __ masm()->Push(kInterpreterAccumulatorRegister, in PrologueFillFrame() [all …]
|
/third_party/node/deps/v8/src/builtins/ |
D | builtins-interpreter-gen.cc | 12 void Builtins::Generate_InterpreterPushArgsThenCall(MacroAssembler* masm) { in Generate_InterpreterPushArgsThenCall() argument 14 masm, ConvertReceiverMode::kAny, InterpreterPushArgsMode::kOther); in Generate_InterpreterPushArgsThenCall() 18 MacroAssembler* masm) { in Generate_InterpreterPushUndefinedAndArgsThenCall() argument 20 masm, ConvertReceiverMode::kNullOrUndefined, in Generate_InterpreterPushUndefinedAndArgsThenCall() 25 MacroAssembler* masm) { in Generate_InterpreterPushArgsThenCallWithFinalSpread() argument 27 masm, ConvertReceiverMode::kAny, in Generate_InterpreterPushArgsThenCallWithFinalSpread() 31 void Builtins::Generate_InterpreterPushArgsThenConstruct(MacroAssembler* masm) { in Generate_InterpreterPushArgsThenConstruct() argument 33 masm, InterpreterPushArgsMode::kOther); in Generate_InterpreterPushArgsThenConstruct() 37 MacroAssembler* masm) { in Generate_InterpreterPushArgsThenConstructWithFinalSpread() argument 39 masm, InterpreterPushArgsMode::kWithFinalSpread); in Generate_InterpreterPushArgsThenConstructWithFinalSpread() [all …]
|
/third_party/node/deps/v8/src/builtins/mips64/ |
D | builtins-mips64.cc | 36 #define __ ACCESS_MASM(masm) 38 void Builtins::Generate_Adaptor(MacroAssembler* masm, Address address) { in Generate_Adaptor() argument 40 __ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithBuiltinExitFrame), in Generate_Adaptor() 44 static void GenerateTailCallToReturnedCode(MacroAssembler* masm, in GenerateTailCallToReturnedCode() argument 52 FrameScope scope(masm, StackFrame::INTERNAL); in GenerateTailCallToReturnedCode() 79 void Generate_PushArguments(MacroAssembler* masm, Register array, Register argc, in Generate_PushArguments() argument 98 void Generate_JSBuiltinsConstructStubHelper(MacroAssembler* masm) { in Generate_JSBuiltinsConstructStubHelper() argument 110 FrameScope scope(masm, StackFrame::CONSTRUCT); in Generate_JSBuiltinsConstructStubHelper() 124 Generate_PushArguments(masm, t2, a0, t3, t0, ArgumentsElementType::kRaw); in Generate_JSBuiltinsConstructStubHelper() 150 void Builtins::Generate_JSConstructStubGeneric(MacroAssembler* masm) { in Generate_JSConstructStubGeneric() argument [all …]
|
/third_party/vixl/test/aarch32/ |
D | test-assembler-aarch32.cc | 93 #define __ masm. 106 MacroAssembler masm(BUF_SIZE, isa); \ 107 TestMacroAssembler test(&masm); 109 #define START() masm.GetBuffer()->Reset(); 121 MacroAssembler masm(BUF_SIZE, isa); \ 122 TestMacroAssembler test(&masm); \ 126 harness_scratch.Open(&masm); \ 128 masm.GetBuffer()->Reset(); \ 146 core.Dump(&masm); \ 167 int pcs_offset = masm.IsUsingT32() ? 1 : 0; \ [all …]
|
/third_party/node/deps/v8/src/baseline/x64/ |
D | baseline-assembler-x64-inl.h | 126 if (masm()->options().short_builtin_calls) { in CallBuiltin() 137 if (masm()->options().short_builtin_calls) { in TailCallBuiltin() 251 inline void PushSingle(MacroAssembler* masm, RootIndex source) { in PushSingle() argument 252 masm->PushRoot(source); in PushSingle() 254 inline void PushSingle(MacroAssembler* masm, Register reg) { masm->Push(reg); } in PushSingle() argument 255 inline void PushSingle(MacroAssembler* masm, TaggedIndex value) { in PushSingle() argument 256 masm->Push(value); in PushSingle() 258 inline void PushSingle(MacroAssembler* masm, Smi value) { masm->Push(value); } in PushSingle() argument 259 inline void PushSingle(MacroAssembler* masm, Handle<HeapObject> object) { in PushSingle() argument 260 masm->Push(object); in PushSingle() [all …]
|
/third_party/node/deps/v8/src/builtins/mips/ |
D | builtins-mips.cc | 36 #define __ ACCESS_MASM(masm) 38 void Builtins::Generate_Adaptor(MacroAssembler* masm, Address address) { in Generate_Adaptor() argument 40 __ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithBuiltinExitFrame), in Generate_Adaptor() 44 static void GenerateTailCallToReturnedCode(MacroAssembler* masm, in GenerateTailCallToReturnedCode() argument 52 FrameScope scope(masm, StackFrame::INTERNAL); in GenerateTailCallToReturnedCode() 80 void Generate_PushArguments(MacroAssembler* masm, Register array, Register argc, in Generate_PushArguments() argument 99 void Generate_JSBuiltinsConstructStubHelper(MacroAssembler* masm) { in Generate_JSBuiltinsConstructStubHelper() argument 111 FrameScope scope(masm, StackFrame::CONSTRUCT); in Generate_JSBuiltinsConstructStubHelper() 124 Generate_PushArguments(masm, t2, a0, t3, t0, ArgumentsElementType::kRaw); in Generate_JSBuiltinsConstructStubHelper() 150 void Builtins::Generate_JSConstructStubGeneric(MacroAssembler* masm) { in Generate_JSConstructStubGeneric() argument [all …]
|
/third_party/vixl/benchmarks/aarch64/ |
D | bench-branch-link-masm.cc | 46 MacroAssembler masm(buffer_size); in main() local 52 masm.Reset(); in main() 56 masm.B(&target_1); in main() 58 masm.Bind(&target_1); in main() 60 masm.B(eq, &target_2); in main() 62 masm.Bind(&target_2); in main() 64 masm.Cbz(x2, &target_3); in main() 66 masm.Bind(&target_3); in main() 68 masm.Tbz(x3, 2, &target_4); in main() 70 masm.Bind(&target_4); in main() [all …]
|
/third_party/node/deps/v8/src/baseline/ia32/ |
D | baseline-assembler-ia32-inl.h | 247 inline void PushSingle(MacroAssembler* masm, RootIndex source) { in PushSingle() argument 248 masm->PushRoot(source); in PushSingle() 250 inline void PushSingle(MacroAssembler* masm, Register reg) { masm->Push(reg); } in PushSingle() argument 251 inline void PushSingle(MacroAssembler* masm, TaggedIndex value) { in PushSingle() argument 252 masm->Push(Immediate(value.ptr())); in PushSingle() 254 inline void PushSingle(MacroAssembler* masm, Smi value) { masm->Push(value); } in PushSingle() argument 255 inline void PushSingle(MacroAssembler* masm, Handle<HeapObject> object) { in PushSingle() argument 256 masm->Push(object); in PushSingle() 258 inline void PushSingle(MacroAssembler* masm, int32_t immediate) { in PushSingle() argument 259 masm->Push(Immediate(immediate)); in PushSingle() [all …]
|
/third_party/vixl/examples/aarch32/ |
D | getting-started.cc | 32 #define __ masm-> 34 void GenerateDemo(MacroAssembler* masm) { in GenerateDemo() argument 46 MacroAssembler masm; in main() local 51 masm.Bind(&demo); in main() 52 GenerateDemo(&masm); in main() 55 masm.FinalizeCode(); in main() 59 byte* code = masm.GetBuffer()->GetStartAddress<byte*>(); in main() 60 uint32_t code_size = masm.GetSizeOfCodeGenerated(); in main() 66 masm.GetInstructionSetInUse()); in main()
|
D | abs.cc | 32 #define __ masm-> 34 void GenerateAbs(MacroAssembler* masm) { in GenerateAbs() argument 48 MacroAssembler masm(A32); in main() local 51 masm.Bind(&abs); in main() 52 GenerateAbs(&masm); in main() 53 masm.FinalizeCode(); in main() 58 byte* code = masm.GetBuffer()->GetStartAddress<byte*>(); in main() 59 uint32_t code_size = masm.GetSizeOfCodeGenerated(); in main() 64 masm.GetInstructionSetInUse()); in main()
|