Lines Matching refs:opcodes
46 DebugFrameOpCodeWriter<> opcodes; in TEST_F() local
51 opcodes.AdvancePC(pc); in TEST_F()
60 opcodes.DefCFA(reg, offset); in TEST_F()
62 opcodes.DefCFA(reg, -offset); in TEST_F()
64 opcodes.DefCFARegister(reg); in TEST_F()
66 opcodes.DefCFAOffset(offset); in TEST_F()
68 opcodes.DefCFAOffset(-offset); in TEST_F()
71 opcodes.DefCFAExpression(expr, arraysize(expr)); in TEST_F()
73 opcodes.Undefined(reg); in TEST_F()
75 opcodes.SameValue(reg); in TEST_F()
77 opcodes.Offset(Reg(0x3F), -offset); in TEST_F()
81 opcodes.Offset(Reg(0x40), -offset); in TEST_F()
83 opcodes.Offset(Reg(0x40), offset); in TEST_F()
85 opcodes.ValOffset(reg, -offset); in TEST_F()
87 opcodes.ValOffset(reg, offset); in TEST_F()
89 opcodes.Register(reg, Reg(1)); in TEST_F()
91 opcodes.Expression(reg, expr, arraysize(expr)); in TEST_F()
93 opcodes.ValExpression(reg, expr, arraysize(expr)); in TEST_F()
95 opcodes.Restore(Reg(0x3F)); in TEST_F()
97 opcodes.Restore(Reg(0x40)); in TEST_F()
99 opcodes.Restore(reg); in TEST_F()
101 opcodes.RememberState(); in TEST_F()
103 opcodes.RestoreState(); in TEST_F()
105 opcodes.Nop(); in TEST_F()
109 opcodes.DefCFA(Reg(4), 100); // ESP in TEST_F()
111 opcodes.AdjustCFAOffset(8); in TEST_F()
113 opcodes.RelOffset(Reg(0), 0); // push R0 in TEST_F()
115 opcodes.RelOffset(Reg(1), 4); // push R1 in TEST_F()
117 opcodes.RelOffsetForMany(Reg(2), 8, 1 | (1 << 3), 4); // push R2 and R5 in TEST_F()
120 opcodes.RestoreMany(Reg(2), 1 | (1 << 3)); // pop R2 and R5 in TEST_F()
129 WriteFDE(is64bit, 0, 0, 0x01000000, 0x01000000, ArrayRef<const uint8_t>(*opcodes.data()), in TEST_F()
141 DebugFrameOpCodeWriter<> opcodes; in TEST_F() local
145 ArrayRef<const uint8_t>(*opcodes.data()), in TEST_F()
157 DebugFrameOpCodeWriter<> opcodes; in TEST_F() local
159 opcodes.RelOffset(Reg::X86_64Core(i), 0); in TEST_F()
183 ArrayRef<const uint8_t>(*opcodes.data()), in TEST_F()
192 DebugLineOpCodeWriter<> opcodes(is64bit, code_factor_bits); in TEST_F() local
208 opcodes.SetAddress(0x01000000); in TEST_F()
210 opcodes.AddRow(); in TEST_F()
212 opcodes.AdvancePC(0x01000100); in TEST_F()
214 opcodes.SetFile(2); in TEST_F()
216 opcodes.AdvanceLine(3); in TEST_F()
218 opcodes.SetColumn(4); in TEST_F()
220 opcodes.SetIsStmt(true); in TEST_F()
222 opcodes.SetIsStmt(false); in TEST_F()
224 opcodes.SetBasicBlock(); in TEST_F()
226 opcodes.SetPrologueEnd(); in TEST_F()
228 opcodes.SetEpilogueBegin(); in TEST_F()
230 opcodes.SetISA(5); in TEST_F()
232 opcodes.EndSequence(); in TEST_F()
234 opcodes.DefineFile("file.c", 0, 1000, 2000); in TEST_F()
241 WriteDebugLineTable(include_directories, files, opcodes, in TEST_F()
254 DebugLineOpCodeWriter<> opcodes(is64bit, code_factor_bits); in TEST_F() local
255 opcodes.SetAddress(pc); in TEST_F()
266 opcodes.AddRow(pc, line); in TEST_F()
268 ASSERT_EQ(opcodes.CurrentAddress(), pc); in TEST_F()
269 ASSERT_EQ(opcodes.CurrentLine(), line); in TEST_F()
275 EXPECT_LT(opcodes.data()->size(), num_rows * 3); in TEST_F()
280 WriteDebugLineTable(directories, files, opcodes, in TEST_F()