Home
last modified time | relevance | path

Searched refs:masm (Results 1 – 25 of 275) sorted by relevance

1234567891011

/external/vixl/test/
Dtest-code-generation-scopes.cc47 #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 …]
Dtest-pool-manager.cc94 void EmitPoolObject(MacroAssemblerInterface *masm) VIXL_OVERRIDE { in EmitPoolObject() argument
95 USE(masm); in EmitPoolObject()
153 void EmitPoolObject(MacroAssemblerInterface *masm) VIXL_OVERRIDE { in EmitPoolObject() argument
154 USE(masm); in EmitPoolObject()
304 TestMacroAssembler masm; in TEST() local
337 pool_manager.Emit(&masm, 20); in TEST()
364 TestMacroAssembler masm; in TEST() local
383 pc = pool_manager.Emit(&masm, pc, pc_increment); in TEST()
400 pc = pool_manager.Emit(&masm, pc, size, ref, object); in TEST()
434 pool_manager.Emit(&masm, pc); in TEST()
[all …]
/external/vixl/test/aarch64/examples/
Dtest-examples.cc129 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), \
181 masm.EnableInstrumentation(); \
183 masm.Blr(test_function_reg); \
185 masm.DisableInstrumentation(); \
187 masm.Trace(LOG_ALL, TRACE_DISABLE); \
188 regs.Dump(&masm); \
[all …]
/external/vixl/examples/aarch64/
Dexamples.h40 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 …]
Dneon-matrix-multiply.cc29 #define __ masm->
43 static void GenerateMultiplyColumn(MacroAssembler* masm, in GenerateMultiplyColumn() argument
57 void GenerateNEONMatrixMultiply(MacroAssembler* masm) { in GenerateNEONMatrixMultiply() argument
83 GenerateMultiplyColumn(masm, 0, 16); in GenerateNEONMatrixMultiply()
84 GenerateMultiplyColumn(masm, 1, 17); in GenerateNEONMatrixMultiply()
85 GenerateMultiplyColumn(masm, 2, 18); in GenerateNEONMatrixMultiply()
86 GenerateMultiplyColumn(masm, 3, 19); in GenerateNEONMatrixMultiply()
99 MacroAssembler masm; in main() local
105 masm.Bind(&neon_matrix_multiply); in main()
106 GenerateNEONMatrixMultiply(&masm); in main()
[all …]
Dliteral.cc29 #define __ masm.
34 MacroAssembler masm; in LiteralExample() local
38 Literal<int64_t> automatically_placed_literal(111, masm.GetLiteralPool()); in LiteralExample()
43 masm.Bind(&start); in LiteralExample()
45 ExactAssemblyScope scope(&masm, in LiteralExample()
58 masm.FinalizeCode(); in LiteralExample()
62 size_t code_size = masm.GetSizeOfCodeGenerated(); in LiteralExample()
67 memcpy(code, masm.GetBuffer()->GetStartAddress<void*>(), code_size); in LiteralExample()
70 simulator.RunFrom(masm.GetLabelAddress<Instruction*>(&start)); in LiteralExample()
Dnon-const-visitor.cc30 #define __ masm->
33 void GenerateNonConstVisitorTestCode(MacroAssembler* masm) { in GenerateNonConstVisitorTestCode() argument
69 MacroAssembler masm; in main() local
73 masm.Bind(&code_start); in main()
74 GenerateNonConstVisitorTestCode(&masm); in main()
75 masm.Bind(&code_end); in main()
76 masm.FinalizeCode(); in main()
77 Instruction* instr_start = masm.GetLabelAddress<Instruction*>(&code_start); in main()
78 Instruction* instr_end = masm.GetLabelAddress<Instruction*>(&code_end); in main()
Dgetting-started.cc30 #define __ masm->
34 void GenerateDemoFunction(MacroAssembler *masm) { in GenerateDemoFunction() argument
45 MacroAssembler masm; in main() local
50 masm.Bind(&demo_function); in main()
51 GenerateDemoFunction(&masm); in main()
52 masm.FinalizeCode(); in main()
55 simulator.RunFrom(masm.GetLabelAddress<Instruction *>(&demo_function)); in main()
/external/vixl/src/
Dcode-generation-scopes-vixl.h153 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 …]
/external/v8/src/builtins/x64/
Dbuiltins-x64.cc22 #define __ ACCESS_MASM(masm)
24 void Builtins::Generate_Adaptor(MacroAssembler* masm, Address address, in Generate_Adaptor() argument
29 __ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithBuiltinExitFrame), in Generate_Adaptor()
33 __ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithExitFrame), in Generate_Adaptor()
38 static void GenerateTailCallToReturnedCode(MacroAssembler* masm, in GenerateTailCallToReturnedCode() argument
46 FrameScope scope(masm, StackFrame::INTERNAL); in GenerateTailCallToReturnedCode()
72 void Generate_JSBuiltinsConstructStubHelper(MacroAssembler* masm) { in Generate_JSBuiltinsConstructStubHelper() argument
82 FrameScope scope(masm, StackFrame::CONSTRUCT); in Generate_JSBuiltinsConstructStubHelper()
132 SmiIndex index = masm->SmiToIndex(rbx, rbx, kPointerSizeLog2); in Generate_JSBuiltinsConstructStubHelper()
141 void Builtins::Generate_JSConstructStubGeneric(MacroAssembler* masm) { in Generate_JSConstructStubGeneric() argument
[all …]
/external/v8/src/builtins/
Dbuiltins-interpreter-gen.cc12 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 …]
Dbuiltins-call-gen.cc19 MacroAssembler* masm) { in Generate_CallFunction_ReceiverIsNullOrUndefined() argument
20 Generate_CallFunction(masm, ConvertReceiverMode::kNullOrUndefined); in Generate_CallFunction_ReceiverIsNullOrUndefined()
24 MacroAssembler* masm) { in Generate_CallFunction_ReceiverIsNotNullOrUndefined() argument
25 Generate_CallFunction(masm, ConvertReceiverMode::kNotNullOrUndefined); in Generate_CallFunction_ReceiverIsNotNullOrUndefined()
28 void Builtins::Generate_CallFunction_ReceiverIsAny(MacroAssembler* masm) { in Generate_CallFunction_ReceiverIsAny() argument
29 Generate_CallFunction(masm, ConvertReceiverMode::kAny); in Generate_CallFunction_ReceiverIsAny()
32 void Builtins::Generate_CallBoundFunction(MacroAssembler* masm) { in Generate_CallBoundFunction() argument
33 Generate_CallBoundFunctionImpl(masm); in Generate_CallBoundFunction()
36 void Builtins::Generate_Call_ReceiverIsNullOrUndefined(MacroAssembler* masm) { in Generate_Call_ReceiverIsNullOrUndefined() argument
37 Generate_Call(masm, ConvertReceiverMode::kNullOrUndefined); in Generate_Call_ReceiverIsNullOrUndefined()
[all …]
/external/v8/src/builtins/arm/
Dbuiltins-arm.cc23 #define __ ACCESS_MASM(masm)
25 void Builtins::Generate_Adaptor(MacroAssembler* masm, Address address, in Generate_Adaptor() argument
35 __ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithBuiltinExitFrame), in Generate_Adaptor()
39 __ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithExitFrame), in Generate_Adaptor()
44 void Builtins::Generate_InternalArrayConstructor(MacroAssembler* masm) { in Generate_InternalArrayConstructor() argument
65 __ Jump(BUILTIN_CODE(masm->isolate(), InternalArrayConstructorImpl), in Generate_InternalArrayConstructor()
69 static void GenerateTailCallToReturnedCode(MacroAssembler* masm, in GenerateTailCallToReturnedCode() argument
77 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); in GenerateTailCallToReturnedCode()
103 void Generate_JSBuiltinsConstructStubHelper(MacroAssembler* masm) { in Generate_JSBuiltinsConstructStubHelper() argument
117 FrameAndConstantPoolScope scope(masm, StackFrame::CONSTRUCT); in Generate_JSBuiltinsConstructStubHelper()
[all …]
/external/v8/src/builtins/ppc/
Dbuiltins-ppc.cc21 #define __ ACCESS_MASM(masm)
23 void Builtins::Generate_Adaptor(MacroAssembler* masm, Address address, in Generate_Adaptor() argument
27 __ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithBuiltinExitFrame), in Generate_Adaptor()
31 __ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithExitFrame), in Generate_Adaptor()
36 void Builtins::Generate_InternalArrayConstructor(MacroAssembler* masm) { in Generate_InternalArrayConstructor() argument
58 __ Jump(BUILTIN_CODE(masm->isolate(), InternalArrayConstructorImpl), in Generate_InternalArrayConstructor()
62 static void GenerateTailCallToReturnedCode(MacroAssembler* masm, in GenerateTailCallToReturnedCode() argument
70 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); in GenerateTailCallToReturnedCode()
91 void Generate_JSBuiltinsConstructStubHelper(MacroAssembler* masm) { in Generate_JSBuiltinsConstructStubHelper() argument
104 FrameAndConstantPoolScope scope(masm, StackFrame::CONSTRUCT); in Generate_JSBuiltinsConstructStubHelper()
[all …]
/external/v8/src/builtins/ia32/
Dbuiltins-ia32.cc21 #define __ ACCESS_MASM(masm)
23 void Builtins::Generate_Adaptor(MacroAssembler* masm, Address address, in Generate_Adaptor() argument
28 __ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithBuiltinExitFrame), in Generate_Adaptor()
32 __ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithExitFrame), in Generate_Adaptor()
37 static void GenerateTailCallToReturnedCode(MacroAssembler* masm, in GenerateTailCallToReturnedCode() argument
45 FrameScope scope(masm, StackFrame::INTERNAL); in GenerateTailCallToReturnedCode()
72 void Generate_JSBuiltinsConstructStubHelper(MacroAssembler* masm) { in Generate_JSBuiltinsConstructStubHelper() argument
82 FrameScope scope(masm, StackFrame::CONSTRUCT); in Generate_JSBuiltinsConstructStubHelper()
141 void Builtins::Generate_JSConstructStubGeneric(MacroAssembler* masm) { in Generate_JSConstructStubGeneric() argument
152 FrameScope scope(masm, StackFrame::CONSTRUCT); in Generate_JSConstructStubGeneric()
[all …]
/external/v8/src/builtins/arm64/
Dbuiltins-arm64.cc23 #define __ ACCESS_MASM(masm)
25 void Builtins::Generate_Adaptor(MacroAssembler* masm, Address address, in Generate_Adaptor() argument
29 __ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithBuiltinExitFrame), in Generate_Adaptor()
33 __ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithExitFrame), in Generate_Adaptor()
38 void Builtins::Generate_InternalArrayConstructor(MacroAssembler* masm) { in Generate_InternalArrayConstructor() argument
59 __ Jump(BUILTIN_CODE(masm->isolate(), InternalArrayConstructorImpl), in Generate_InternalArrayConstructor()
63 static void GenerateTailCallToReturnedCode(MacroAssembler* masm, in GenerateTailCallToReturnedCode() argument
71 FrameScope scope(masm, StackFrame::INTERNAL); in GenerateTailCallToReturnedCode()
93 void Generate_JSBuiltinsConstructStubHelper(MacroAssembler* masm) { in Generate_JSBuiltinsConstructStubHelper() argument
109 FrameScope scope(masm, StackFrame::CONSTRUCT); in Generate_JSBuiltinsConstructStubHelper()
[all …]
/external/vixl/test/aarch32/
Dtest-assembler-aarch32.cc93 #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 …]
/external/v8/src/builtins/s390/
Dbuiltins-s390.cc21 #define __ ACCESS_MASM(masm)
23 void Builtins::Generate_Adaptor(MacroAssembler* masm, Address address, in Generate_Adaptor() argument
27 __ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithBuiltinExitFrame), in Generate_Adaptor()
31 __ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithExitFrame), in Generate_Adaptor()
36 void Builtins::Generate_InternalArrayConstructor(MacroAssembler* masm) { in Generate_InternalArrayConstructor() argument
58 __ Jump(BUILTIN_CODE(masm->isolate(), InternalArrayConstructorImpl), in Generate_InternalArrayConstructor()
62 static void GenerateTailCallToReturnedCode(MacroAssembler* masm, in GenerateTailCallToReturnedCode() argument
70 FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL); in GenerateTailCallToReturnedCode()
91 void Generate_JSBuiltinsConstructStubHelper(MacroAssembler* masm) { in Generate_JSBuiltinsConstructStubHelper() argument
104 FrameAndConstantPoolScope scope(masm, StackFrame::CONSTRUCT); in Generate_JSBuiltinsConstructStubHelper()
[all …]
/external/v8/src/builtins/mips64/
Dbuiltins-mips64.cc23 #define __ ACCESS_MASM(masm)
25 void Builtins::Generate_Adaptor(MacroAssembler* masm, Address address, in Generate_Adaptor() argument
29 __ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithBuiltinExitFrame), in Generate_Adaptor()
33 __ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithExitFrame), in Generate_Adaptor()
38 void Builtins::Generate_InternalArrayConstructor(MacroAssembler* masm) { in Generate_InternalArrayConstructor() argument
60 __ Jump(BUILTIN_CODE(masm->isolate(), InternalArrayConstructorImpl), in Generate_InternalArrayConstructor()
64 static void GenerateTailCallToReturnedCode(MacroAssembler* masm, in GenerateTailCallToReturnedCode() argument
72 FrameScope scope(masm, StackFrame::INTERNAL); in GenerateTailCallToReturnedCode()
91 void Generate_JSBuiltinsConstructStubHelper(MacroAssembler* masm) { in Generate_JSBuiltinsConstructStubHelper() argument
103 FrameScope scope(masm, StackFrame::CONSTRUCT); in Generate_JSBuiltinsConstructStubHelper()
[all …]
/external/v8/src/builtins/mips/
Dbuiltins-mips.cc23 #define __ ACCESS_MASM(masm)
25 void Builtins::Generate_Adaptor(MacroAssembler* masm, Address address, in Generate_Adaptor() argument
29 __ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithBuiltinExitFrame), in Generate_Adaptor()
33 __ Jump(BUILTIN_CODE(masm->isolate(), AdaptorWithExitFrame), in Generate_Adaptor()
38 void Builtins::Generate_InternalArrayConstructor(MacroAssembler* masm) { in Generate_InternalArrayConstructor() argument
60 __ Jump(BUILTIN_CODE(masm->isolate(), InternalArrayConstructorImpl), in Generate_InternalArrayConstructor()
64 static void GenerateTailCallToReturnedCode(MacroAssembler* masm, in GenerateTailCallToReturnedCode() argument
72 FrameScope scope(masm, StackFrame::INTERNAL); in GenerateTailCallToReturnedCode()
92 void Generate_JSBuiltinsConstructStubHelper(MacroAssembler* masm) { in Generate_JSBuiltinsConstructStubHelper() argument
104 FrameScope scope(masm, StackFrame::CONSTRUCT); in Generate_JSBuiltinsConstructStubHelper()
[all …]
/external/v8/src/
Dmacro-assembler.h102 FrameAndConstantPoolScope(MacroAssembler* masm, StackFrame::Type type) in FrameAndConstantPoolScope() argument
103 : masm_(masm), in FrameAndConstantPoolScope()
105 old_has_frame_(masm->has_frame()), in FrameAndConstantPoolScope()
107 masm->is_constant_pool_available()) { in FrameAndConstantPoolScope()
108 masm->set_has_frame(true); in FrameAndConstantPoolScope()
110 masm->set_constant_pool_available(true); in FrameAndConstantPoolScope()
113 masm->EnterFrame(type, !old_constant_pool_available_); in FrameAndConstantPoolScope()
171 explicit AllowExternalCallThatCantCauseGC(MacroAssembler* masm) in AllowExternalCallThatCantCauseGC() argument
172 : FrameScope(masm, StackFrame::NONE) { } in AllowExternalCallThatCantCauseGC()
178 explicit NoCurrentFrameScope(MacroAssembler* masm) in NoCurrentFrameScope() argument
[all …]
/external/v8/src/arm64/
Ddeoptimizer-arm64.cc17 #define __ masm()->
21 void CopyRegListToFrame(MacroAssembler* masm, const Register& dst, in CopyRegListToFrame() argument
26 UseScratchRegisterScope temps(masm); in CopyRegListToFrame()
36 masm->Add(src, sp, src_offset); in CopyRegListToFrame()
37 masm->Add(dst, dst, dst_offset); in CopyRegListToFrame()
41 masm->Ldp(temp0, temp1, MemOperand(src, i * reg_size)); in CopyRegListToFrame()
50 masm->Stp(temp0, temp1, MemOperand(dst, offset0)); in CopyRegListToFrame()
52 masm->Str(temp0, MemOperand(dst, offset0)); in CopyRegListToFrame()
53 masm->Str(temp1, MemOperand(dst, offset1)); in CopyRegListToFrame()
56 masm->Sub(dst, dst, dst_offset); in CopyRegListToFrame()
[all …]
Dcode-stubs-arm64.cc30 #define __ ACCESS_MASM(masm)
42 void JSEntryStub::Generate(MacroAssembler* masm) { in Generate() argument
48 NoRootArrayScope no_root_array(masm); in Generate()
56 ProfileEntryHookStub::MaybeCallEntryHook(masm); in Generate()
116 Assembler::BlockPoolsScope block_pools(masm); in Generate()
147 UseScratchRegisterScope temps(masm); in Generate()
235 void ProfileEntryHookStub::MaybeCallEntryHook(MacroAssembler* masm) { in MaybeCallEntryHook() argument
236 if (masm->isolate()->function_entry_hook() != nullptr) { in MaybeCallEntryHook()
237 ProfileEntryHookStub stub(masm->isolate()); in MaybeCallEntryHook()
238 Assembler::BlockConstPoolScope no_const_pools(masm); in MaybeCallEntryHook()
[all …]
/external/vixl/examples/aarch32/
Dgetting-started.cc29 #define __ masm->
31 void GenerateDemo(MacroAssembler* masm) { in GenerateDemo() argument
43 MacroAssembler masm; in main() local
48 masm.Bind(&demo); in main()
49 GenerateDemo(&masm); in main()
52 masm.FinalizeCode(); in main()
56 byte* code = masm.GetBuffer()->GetStartAddress<byte*>(); in main()
57 uint32_t code_size = masm.GetSizeOfCodeGenerated(); in main()
61 uint32_t)>(demo, masm.GetInstructionSetInUse()); in main()
Dabs.cc29 #define __ masm->
31 void GenerateAbs(MacroAssembler* masm) { in GenerateAbs() argument
45 MacroAssembler masm(A32); in main() local
48 masm.Bind(&abs); in main()
49 GenerateAbs(&masm); in main()
50 masm.FinalizeCode(); in main()
55 byte* code = masm.GetBuffer()->GetStartAddress<byte*>(); in main()
56 uint32_t code_size = masm.GetSizeOfCodeGenerated(); in main()
61 masm.GetInstructionSetInUse()); in main()

1234567891011