Home
last modified time | relevance | path

Searched refs:opcode (Results 1 – 25 of 95) sorted by relevance

1234

/frameworks/libs/binary_translation/backend/x86_64/
Drename_vregs_test.cc109 EXPECT_EQ((*it)->opcode(), kMachineOpMovqRegImm); in TEST()
111 EXPECT_EQ((*it)->opcode(), kMachineOpMovqRegImm); in TEST()
123 EXPECT_EQ((*it)->opcode(), kMachineOpPseudoCopy); in TEST()
128 EXPECT_EQ((*it)->opcode(), kMachineOpPseudoCopy); in TEST()
136 EXPECT_EQ((*it)->opcode(), kMachineOpPseudoCopy); in TEST()
141 EXPECT_EQ((*it)->opcode(), kMachineOpMovqRegReg); in TEST()
150 EXPECT_EQ((*it)->opcode(), kMachineOpPseudoCopy); in TEST()
154 EXPECT_EQ((*it)->opcode(), kMachineOpMovqRegReg); in TEST()
172 EXPECT_EQ((*it)->opcode(), kMachineOpMovqRegImm); in TEST()
175 EXPECT_EQ((*it)->opcode(), kMachineOpPseudoCopy); in TEST()
[all …]
Dinsn_folding.cc65 if (insn->opcode() == kMachineOpMovqRegImm) { in IsRegImm()
68 } else if (insn->opcode() == kMachineOpMovlRegImm) { in IsRegImm()
78 switch (insn->opcode()) { in NewImmInsnFromRegInsn()
142 CHECK(write_flags_insn && write_flags_insn->opcode() == kMachineOpPseudoWriteFlags); in IsWritingSameFlagsValue()
151 int opcode = def_insn->opcode(); in IsWritingSameFlagsValue() local
152 if (opcode == kMachineOpPseudoCopy) { in IsWritingSameFlagsValue()
156 } else if (opcode == kMachineOpPseudoReadFlags) { in IsWritingSameFlagsValue()
179 if (insn->opcode() == kMachineOpMovqRegReg) { in TryFoldImmediateInput()
201 CHECK_EQ(insn->opcode(), kMachineOpMovlRegReg); in TryFoldRedundantMovl()
210 switch (def_insn->opcode()) { in TryFoldRedundantMovl()
[all …]
Dlocal_guest_context_optimizer_test.cc52 ASSERT_EQ(store_insn->opcode(), kMachineOpMovqMemBaseDispReg); in TEST()
59 ASSERT_EQ(load_copy_insn->opcode(), kMachineOpPseudoCopy); in TEST()
83 ASSERT_EQ(load_insn->opcode(), kMachineOpMovqRegMemBaseDisp); in TEST()
89 ASSERT_EQ(copy_insn->opcode(), kMachineOpPseudoCopy); in TEST()
113 ASSERT_EQ(store_insn->opcode(), kMachineOpMovqMemBaseDispReg); in TEST()
139 ASSERT_EQ(store_insn_1->opcode(), kMachineOpMovqMemBaseDispReg); in TEST()
143 ASSERT_EQ(store_insn_2->opcode(), kMachineOpMovqMemBaseDispReg); in TEST()
/frameworks/base/services/core/java/com/android/server/hdmi/
DHdmiCecMessage.java52 protected HdmiCecMessage(int source, int destination, int opcode, byte[] params, in HdmiCecMessage() argument
56 mOpcode = opcode & 0xFF; in HdmiCecMessage()
61 private HdmiCecMessage(int source, int destination, int opcode, byte[] params) { in HdmiCecMessage() argument
62 this(source, destination, opcode, params, in HdmiCecMessage()
63 HdmiCecMessageValidator.validate(source, destination, opcode & 0xFF, params)); in HdmiCecMessage()
76 static HdmiCecMessage build(int source, int destination, int opcode, byte[] params) { in build() argument
77 switch (opcode & 0xFF) { in build()
83 return new HdmiCecMessage(source, destination, opcode & 0xFF, params); in build()
87 static HdmiCecMessage build(int source, int destination, int opcode) { in build() argument
88 return new HdmiCecMessage(source, destination, opcode, EMPTY_PARAM); in build()
[all …]
DHdmiCecMessageCache.java53 public HdmiCecMessage getMessage(int address, int opcode) { in getMessage() argument
59 return messages.get(opcode); in getMessage()
85 int opcode = message.getOpcode(); in cacheMessage() local
86 if (!isCacheable(opcode)) { in cacheMessage()
96 messages.put(opcode, message); in cacheMessage()
99 private boolean isCacheable(int opcode) { in isCacheable() argument
100 return CACHEABLE_OPCODES.contains(opcode); in isCacheable()
DNewDeviceAction.java133 int opcode = cmd.getOpcode(); in processCommand() local
142 if (opcode == Constants.MESSAGE_SET_OSD_NAME) { in processCommand()
150 } else if (opcode == Constants.MESSAGE_FEATURE_ABORT) { in processCommand()
158 if (opcode == Constants.MESSAGE_DEVICE_VENDOR_ID) { in processCommand()
163 } else if (opcode == Constants.MESSAGE_FEATURE_ABORT) { in processCommand()
175 private boolean mayProcessCommandIfCached(int destAddress, int opcode) { in mayProcessCommandIfCached() argument
176 HdmiCecMessage message = getCecMessageCache().getMessage(destAddress, opcode); in mayProcessCommandIfCached()
/frameworks/libs/binary_translation/decoder/include/berberis/decoder/riscv64/
Ddecoder.h646 AmoOpcode opcode; member
656 BranchOpcode opcode; member
663 CsrOpcode opcode; member
670 CsrImmOpcode opcode; member
701 FenceOpcode opcode; member
721 FmaOpcode opcode; member
745 OpcodeType opcode; member
752 OpSingleInputOpcode opcode; member
761 OpFpOpcode opcode; member
770 OpFpGpRegisterTargetNoRoundingOpcode opcode; member
[all …]
Dsemantics_player.h47 result = Amo<int32_t>(args.opcode, arg1, arg2, args.aq, args.rl); in Amo()
50 result = Amo<int64_t>(args.opcode, arg1, arg2, args.aq, args.rl); in Amo()
60 Register Amo(typename Decoder::AmoOpcode opcode, Register arg1, Register arg2, bool aq, bool rl) { in Amo() argument
63 return Amo<IntType, true, true>(opcode, arg1, arg2); in Amo()
65 return Amo<IntType, true, false>(opcode, arg1, arg2); in Amo()
69 return Amo<IntType, false, true>(opcode, arg1, arg2); in Amo()
71 return Amo<IntType, false, false>(opcode, arg1, arg2); in Amo()
77 Register Amo(typename Decoder::AmoOpcode opcode, Register arg1, Register arg2) { in Amo() argument
78 switch (opcode) { in Amo()
115 listener_->CompareAndBranch(args.opcode, arg1, arg2, args.offset); in CompareAndBranch()
[all …]
/frameworks/native/libs/vr/libpdx/private/pdx/
Dclient.h73 Status<void> SendImpulse(int opcode);
74 Status<void> SendImpulse(int opcode, const void* buffer, size_t length);
213 Status<T> Send(int opcode) { in Send() argument
214 return SendVector<T>(opcode, nullptr, 0, nullptr, 0); in Send()
218 Status<T> Send(int opcode, const void* send_buffer, size_t send_length, in Send() argument
224 return SendVector<T>(opcode, send ? &send_vector : nullptr, send ? 1 : 0, in Send()
229 Status<T> SendVector(int opcode, const iovec* send_vector, size_t send_count, in SendVector() argument
232 SendTransaction(opcode, &ret, send_vector, send_count, receive_vector, in SendVector()
238 Status<T> SendVector(int opcode, const iovec (&send_vector)[send_count], in SendVector() argument
240 return SendVector<T>(opcode, send_vector, send_count, receive_vector, in SendVector()
[all …]
Dmock_client_channel.h21 Status<void>(int opcode, const void* buffer, size_t length));
23 Status<int>(void* transaction_state, int opcode,
27 Status<LocalHandle>(void* transaction_state, int opcode,
32 Status<LocalChannelHandle>(void* transaction_state, int opcode,
Dclient_channel.h40 virtual Status<void> SendImpulse(int opcode, const void* buffer,
43 virtual Status<int> SendWithInt(void* transaction_state, int opcode,
48 void* transaction_state, int opcode, const iovec* send_vector,
51 void* transaction_state, int opcode, const iovec* send_vector,
/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
DHdmiCecMessageTest.java38 int opcode = 0x7f; in testEqualsHdmiCecMessage() local
44 HdmiCecMessage.build(source, destination, opcode, params1), in testEqualsHdmiCecMessage()
45 HdmiCecMessage.build(source, destination, opcode, params1)) in testEqualsHdmiCecMessage()
46 .addEqualityGroup(HdmiCecMessage.build(source, destination, opcode, params2)) in testEqualsHdmiCecMessage()
47 .addEqualityGroup(HdmiCecMessage.build(source + 1, destination, opcode, params1)) in testEqualsHdmiCecMessage()
48 .addEqualityGroup(HdmiCecMessage.build(source, destination + 1, opcode, params1)) in testEqualsHdmiCecMessage()
49 .addEqualityGroup(HdmiCecMessage.build(source, destination, opcode + 1, params1)) in testEqualsHdmiCecMessage()
/frameworks/libs/binary_translation/backend/testing/include/x86_64/
Dloop_guest_context_optimizer_test_checks.h30 EXPECT_EQ(get_insn->opcode(), kMachineOpPseudoCopy); in CheckCopyGetInsnAndObtainMappedReg()
37 EXPECT_EQ(put_insn->opcode(), kMachineOpPseudoCopy); in CheckCopyPutInsnAndObtainMappedReg()
53 inline void CheckGetInsn(MachineInsn* insn, MachineOpcode opcode, MachineReg reg, size_t disp) { in CheckGetInsn() argument
56 EXPECT_EQ(get_insn->opcode(), opcode); in CheckGetInsn()
61 inline void CheckPutInsn(MachineInsn* insn, MachineOpcode opcode, MachineReg reg, size_t disp) { in CheckPutInsn() argument
64 EXPECT_EQ(put_insn->opcode(), opcode); in CheckPutInsn()
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
DStaticInitMethodAdapter.java179 public void visitInsn(int opcode) { in visitInsn() argument
181 mRenamedMethodWriter.visitInsn(opcode); in visitInsn()
200 public void visitMethodInsn(int opcode, String owner, String name, String desc, boolean itf) { in visitMethodInsn() argument
202 mRenamedMethodWriter.visitMethodInsn(opcode, owner, name, desc, itf); in visitMethodInsn()
207 public void visitFieldInsn(int opcode, String owner, String name, String desc) { in visitFieldInsn() argument
209 mRenamedMethodWriter.visitFieldInsn(opcode, owner, name, desc); in visitFieldInsn()
228 public void visitIntInsn(int opcode, int operand) { in visitIntInsn() argument
230 mRenamedMethodWriter.visitIntInsn(opcode, operand); in visitIntInsn()
235 public void visitJumpInsn(int opcode, Label label) { in visitJumpInsn() argument
237 mRenamedMethodWriter.visitJumpInsn(opcode, label); in visitJumpInsn()
[all …]
DStubCallMethodAdapter.java257 public void visitInsn(int opcode) { in visitInsn() argument
259 switch (opcode) { in visitInsn()
272 mParentVisitor.visitInsn(opcode); in visitInsn()
292 public void visitMethodInsn(int opcode, String owner, String name, String desc, boolean itf) { in visitMethodInsn() argument
294 mParentVisitor.visitMethodInsn(opcode, owner, name, desc, itf); in visitMethodInsn()
299 public void visitFieldInsn(int opcode, String owner, String name, String desc) { in visitFieldInsn() argument
301 mParentVisitor.visitFieldInsn(opcode, owner, name, desc); in visitFieldInsn()
320 public void visitIntInsn(int opcode, int operand) { in visitIntInsn() argument
322 mParentVisitor.visitIntInsn(opcode, operand); in visitIntInsn()
327 public void visitJumpInsn(int opcode, Label label) { in visitJumpInsn() argument
[all …]
DDelegateMethodAdapter.java373 public void visitInsn(int opcode) { in visitInsn() argument
375 mOrgWriter.visitInsn(opcode); in visitInsn()
394 public void visitMethodInsn(int opcode, String owner, String name, String desc, boolean itf) { in visitMethodInsn() argument
396 mOrgWriter.visitMethodInsn(opcode, owner, name, desc, itf); in visitMethodInsn()
401 public void visitFieldInsn(int opcode, String owner, String name, String desc) { in visitFieldInsn() argument
403 mOrgWriter.visitFieldInsn(opcode, owner, name, desc); in visitFieldInsn()
422 public void visitIntInsn(int opcode, int operand) { in visitIntInsn() argument
424 mOrgWriter.visitIntInsn(opcode, operand); in visitIntInsn()
429 public void visitJumpInsn(int opcode, Label label) { in visitJumpInsn() argument
431 mOrgWriter.visitJumpInsn(opcode, label); in visitJumpInsn()
[all …]
DReplaceMethodCallsAdapter.java55 public void visitMethodInsn(int opcode, String owner, String name, String desc, in visitMethodInsn() argument
59 MethodInformation mi = new MethodInformation(opcode, owner, name, desc); in visitMethodInsn()
61 opcode = mi.opcode; in visitMethodInsn()
68 super.visitMethodInsn(opcode, owner, name, desc, itf); in visitMethodInsn()
DICreateInfo.java160 public int opcode; field in ICreateInfo.MethodInformation
165 public MethodInformation(int opcode, String owner, String name, String desc) { in MethodInformation() argument
166 this.opcode = opcode; in MethodInformation()
DAfterConstructorMethodAdapter.java78 public void visitInsn(int opcode) { in visitInsn() argument
79 if (opcode == Opcodes.RETURN) { in visitInsn()
83 super.visitInsn(opcode); in visitInsn()
/frameworks/base/tools/hoststubgen/hoststubgen/src/com/android/hoststubgen/visitors/
DBodyReplacingMethodVisitor.kt154 final override fun visitInsn(opcode: Int) { in visitInsn()
156 super.visitInsn(opcode) in visitInsn()
161 opcode: Int, in visitIntInsn()
165 super.visitIntInsn(opcode, operand) in visitIntInsn()
170 opcode: Int, in visitVarInsn()
174 super.visitVarInsn(opcode, varIndex) in visitVarInsn()
179 opcode: Int, in visitTypeInsn()
183 super.visitTypeInsn(opcode, type) in visitTypeInsn()
188 opcode: Int, in visitFieldInsn()
194 super.visitFieldInsn(opcode, owner, name, descriptor) in visitFieldInsn()
[all …]
/frameworks/libs/binary_translation/backend/include/berberis/backend/x86_64/
Dmachine_ir.h101 MachineOpcode opcode; member
148 if (opcode() != kMachineOpMovqRegMemBaseDisp && opcode() != kMachineOpMovdqaXRegMemBaseDisp && in IsCPUStateGet()
149 opcode() != kMachineOpMovwRegMemBaseDisp && opcode() != kMachineOpMovsdXRegMemBaseDisp) { in IsCPUStateGet()
171 if (opcode() != kMachineOpMovqMemBaseDispReg && opcode() != kMachineOpMovdqaMemBaseDispXReg && in IsCPUStatePut()
172 opcode() != kMachineOpMovwMemBaseDispReg && opcode() != kMachineOpMovsdMemBaseDispXReg) { in IsCPUStatePut()
195 : MachineInsn(info->opcode, info->num_reg_operands, info->reg_kinds, regs_, info->kind), in MachineInsnX86_64()
331 return insn->opcode() == kMachineOpPseudoBranch || in IsControlTransfer()
332 insn->opcode() == kMachineOpPseudoCondBranch || in IsControlTransfer()
333 insn->opcode() == kMachineOpPseudoIndirectJump || insn->opcode() == kMachineOpPseudoJump; in IsControlTransfer()
/frameworks/libs/binary_translation/lite_translator/riscv64_to_x86_64/
Dlite_translator.cc35 Register LiteTranslator::Op(Decoder::OpOpcode opcode, Register arg1, Register arg2) { in Op() argument
38 switch (opcode) { in Op()
64 if (opcode == OpOpcode::kSrl) { in Op()
66 } else if (opcode == OpOpcode::kSll) { in Op()
68 } else if (opcode == OpOpcode::kSra) { in Op()
134 Register LiteTranslator::Op32(Decoder::Op32Opcode opcode, Register arg1, Register arg2) { in Op32() argument
137 switch (opcode) { in Op32()
153 if (opcode == Op32Opcode::kSrlw) { in Op32()
155 } else if (opcode == Op32Opcode::kSllw) { in Op32()
157 } else if (opcode == Op32Opcode::kSraw) { in Op32()
[all …]
/frameworks/native/libs/vr/libpdx/
Dclient.cpp83 Status<void> Client::SendImpulse(int opcode) { in SendImpulse() argument
90 status = channel_->SendImpulse(opcode, nullptr, 0); in SendImpulse()
95 Status<void> Client::SendImpulse(int opcode, const void* buffer, in SendImpulse() argument
103 status = channel_->SendImpulse(opcode, buffer, length); in SendImpulse()
143 void Transaction::SendTransaction(int opcode, Status<void>* ret, in SendTransaction() argument
157 state_, opcode, send_vector, send_count, receive_vector, receive_count); in SendTransaction()
167 void Transaction::SendTransaction(int opcode, Status<int>* ret, in SendTransaction() argument
183 state_, opcode, send_vector, send_count, receive_vector, receive_count); in SendTransaction()
188 void Transaction::SendTransaction(int opcode, Status<LocalHandle>* ret, in SendTransaction() argument
204 state_, opcode, send_vector, send_count, receive_vector, receive_count); in SendTransaction()
[all …]
/frameworks/native/libs/vr/libpdx_uds/
Dclient_channel.cpp90 TransactionState* transaction_state, int opcode, in SendRequest() argument
94 InitRequest(&transaction_state->request, opcode, send_len, max_recv_len, in SendRequest()
162 Status<void> ClientChannel::SendImpulse(int opcode, const void* buffer, in SendImpulse() argument
173 InitRequest(&request, opcode, length, 0, true); in SendImpulse()
178 Status<int> ClientChannel::SendAndReceive(void* transaction_state, int opcode, in SendAndReceive() argument
195 opcode, send_vector, send_count, max_recv_len); in SendAndReceive()
210 Status<int> ClientChannel::SendWithInt(void* transaction_state, int opcode, in SendWithInt() argument
215 return SendAndReceive(transaction_state, opcode, send_vector, send_count, in SendWithInt()
220 void* transaction_state, int opcode, const iovec* send_vector, in SendWithFileHandle() argument
223 SendAndReceive(transaction_state, opcode, send_vector, send_count, in SendWithFileHandle()
[all …]
/frameworks/native/libs/vr/libpdx_uds/private/uds/
Dclient_channel.h50 Status<void> SendImpulse(int opcode, const void* buffer,
53 Status<int> SendWithInt(void* transaction_state, int opcode,
57 Status<LocalHandle> SendWithFileHandle(void* transaction_state, int opcode,
63 void* transaction_state, int opcode, const iovec* send_vector,
85 Status<int> SendAndReceive(void* transaction_state, int opcode,

1234