Lines Matching refs:opcodes
43 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()
79 opcodes.Offset(Reg(0x40), -offset); in TEST_F()
81 opcodes.Offset(Reg(0x40), offset); in TEST_F()
83 opcodes.ValOffset(reg, -offset); in TEST_F()
85 opcodes.ValOffset(reg, offset); in TEST_F()
87 opcodes.Register(reg, Reg(1)); in TEST_F()
89 opcodes.Expression(reg, expr, arraysize(expr)); in TEST_F()
91 opcodes.ValExpression(reg, expr, arraysize(expr)); in TEST_F()
93 opcodes.Restore(Reg(0x3F)); in TEST_F()
95 opcodes.Restore(Reg(0x40)); in TEST_F()
97 opcodes.Restore(reg); in TEST_F()
99 opcodes.RememberState(); in TEST_F()
101 opcodes.RestoreState(); in TEST_F()
103 opcodes.Nop(); in TEST_F()
107 opcodes.DefCFA(Reg(4), 100); // ESP in TEST_F()
109 opcodes.AdjustCFAOffset(8); in TEST_F()
111 opcodes.RelOffset(Reg(0), 0); // push R0 in TEST_F()
113 opcodes.RelOffset(Reg(1), 4); // push R1 in TEST_F()
115 opcodes.RelOffsetForMany(Reg(2), 8, 1 | (1 << 3), 4); // push R2 and R5 in TEST_F()
118 opcodes.RestoreMany(Reg(2), 1 | (1 << 3)); // pop R2 and R5 in TEST_F()
128 ArrayRef<const uint8_t>(*opcodes.data()), in TEST_F()
138 DebugFrameOpCodeWriter<> opcodes; in TEST_F() local
144 ArrayRef<const uint8_t>(*opcodes.data()), in TEST_F()
155 DebugFrameOpCodeWriter<> opcodes; in TEST_F() local
158 opcodes.RelOffset(Reg::X86_64Core(i), 0); in TEST_F()
186 ArrayRef<const uint8_t>(*opcodes.data()), in TEST_F()
195 DebugLineOpCodeWriter<> opcodes(is64bit, code_factor_bits); in TEST_F() local
223 opcodes.SetAddress(0x01000000); in TEST_F()
224 opcodes.SetIsStmt(true); in TEST_F()
225 opcodes.AddRow(); in TEST_F()
226 opcodes.AdvancePC(0x01000100); in TEST_F()
227 opcodes.SetFile(2); in TEST_F()
228 opcodes.AdvanceLine(3); in TEST_F()
229 opcodes.SetColumn(4); in TEST_F()
230 opcodes.SetIsStmt(false); in TEST_F()
231 opcodes.SetBasicBlock(); in TEST_F()
232 opcodes.SetPrologueEnd(); in TEST_F()
233 opcodes.SetEpilogueBegin(); in TEST_F()
234 opcodes.SetISA(5); in TEST_F()
235 opcodes.EndSequence(); in TEST_F()
236 opcodes.DefineFile("file.c", 0, 1000, 2000); in TEST_F()
242 WriteDebugLineTable(include_directories, files, opcodes, &debug_line_data_); in TEST_F()
253 DebugLineOpCodeWriter<> opcodes(is64bit, code_factor_bits); in TEST_F() local
254 opcodes.SetAddress(pc); in TEST_F()
265 opcodes.AddRow(pc, line); in TEST_F()
267 ASSERT_EQ(opcodes.CurrentAddress(), pc); in TEST_F()
268 ASSERT_EQ(opcodes.CurrentLine(), line); in TEST_F()
274 opcodes.EndSequence(); in TEST_F()
275 EXPECT_LT(opcodes.data()->size(), num_rows * 3); in TEST_F()
279 WriteDebugLineTable(directories, files, opcodes, &debug_line_data_); in TEST_F()