• Home
  • Raw
  • Download

Lines Matching refs:code_map

279   CodeMap code_map;  in TEST()  local
284 code_map.AddCode(ToAddress(0x1500), &entry1, 0x200); in TEST()
285 code_map.AddCode(ToAddress(0x1700), &entry2, 0x100); in TEST()
286 code_map.AddCode(ToAddress(0x1900), &entry3, 0x50); in TEST()
287 code_map.AddCode(ToAddress(0x1950), &entry4, 0x10); in TEST()
288 CHECK(!code_map.FindEntry(0)); in TEST()
289 CHECK(!code_map.FindEntry(ToAddress(0x1500 - 1))); in TEST()
290 CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1500))); in TEST()
291 CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1500 + 0x100))); in TEST()
292 CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1500 + 0x200 - 1))); in TEST()
293 CHECK_EQ(&entry2, code_map.FindEntry(ToAddress(0x1700))); in TEST()
294 CHECK_EQ(&entry2, code_map.FindEntry(ToAddress(0x1700 + 0x50))); in TEST()
295 CHECK_EQ(&entry2, code_map.FindEntry(ToAddress(0x1700 + 0x100 - 1))); in TEST()
296 CHECK(!code_map.FindEntry(ToAddress(0x1700 + 0x100))); in TEST()
297 CHECK(!code_map.FindEntry(ToAddress(0x1900 - 1))); in TEST()
298 CHECK_EQ(&entry3, code_map.FindEntry(ToAddress(0x1900))); in TEST()
299 CHECK_EQ(&entry3, code_map.FindEntry(ToAddress(0x1900 + 0x28))); in TEST()
300 CHECK_EQ(&entry4, code_map.FindEntry(ToAddress(0x1950))); in TEST()
301 CHECK_EQ(&entry4, code_map.FindEntry(ToAddress(0x1950 + 0x7))); in TEST()
302 CHECK_EQ(&entry4, code_map.FindEntry(ToAddress(0x1950 + 0x10 - 1))); in TEST()
303 CHECK(!code_map.FindEntry(ToAddress(0x1950 + 0x10))); in TEST()
304 CHECK(!code_map.FindEntry(ToAddress(0xFFFFFFFF))); in TEST()
309 CodeMap code_map; in TEST() local
312 code_map.AddCode(ToAddress(0x1500), &entry1, 0x200); in TEST()
313 code_map.AddCode(ToAddress(0x1700), &entry2, 0x100); in TEST()
314 CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1500))); in TEST()
315 CHECK_EQ(&entry2, code_map.FindEntry(ToAddress(0x1700))); in TEST()
316 code_map.MoveCode(ToAddress(0x1500), ToAddress(0x1700)); // Deprecate bbb. in TEST()
317 CHECK(!code_map.FindEntry(ToAddress(0x1500))); in TEST()
318 CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1700))); in TEST()
320 code_map.AddCode(ToAddress(0x1750), &entry3, 0x100); in TEST()
321 CHECK(!code_map.FindEntry(ToAddress(0x1700))); in TEST()
322 CHECK_EQ(&entry3, code_map.FindEntry(ToAddress(0x1750))); in TEST()
354 generator.code_map()->AddCode(ToAddress(0x1500), entry1, 0x200); in TEST()
355 generator.code_map()->AddCode(ToAddress(0x1700), entry2, 0x100); in TEST()
356 generator.code_map()->AddCode(ToAddress(0x1900), entry3, 0x50); in TEST()
425 generator.code_map()->AddCode(ToAddress(0x1500), entry1, 0x200); in TEST()
426 generator.code_map()->AddCode(ToAddress(0x1700), entry2, 0x100); in TEST()
427 generator.code_map()->AddCode(ToAddress(0x1900), entry3, 0x50); in TEST()
479 generator.code_map()->AddCode(ToAddress(0x1500), entry1, 0x200); in TEST()
651 CodeMap* code_map = profiler->generator()->code_map(); in GetFunctionLineNumber() local
659 CodeEntry* func_entry = code_map->FindEntry(func->abstract_code()->address()); in GetFunctionLineNumber()