• Home
  • Raw
  • Download

Lines Matching refs:code_map

509   CodeMap code_map;  in TEST()  local
518 code_map.AddCode(ToAddress(0x1500), &entry1, 0x200); in TEST()
519 code_map.AddCode(ToAddress(0x1700), &entry2, 0x100); in TEST()
520 code_map.AddCode(ToAddress(0x1900), &entry3, 0x50); in TEST()
521 code_map.AddCode(ToAddress(0x1950), &entry4, 0x10); in TEST()
522 CHECK_EQ(NULL, code_map.FindEntry(0)); in TEST()
523 CHECK_EQ(NULL, code_map.FindEntry(ToAddress(0x1500 - 1))); in TEST()
524 CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1500))); in TEST()
525 CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1500 + 0x100))); in TEST()
526 CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1500 + 0x200 - 1))); in TEST()
527 CHECK_EQ(&entry2, code_map.FindEntry(ToAddress(0x1700))); in TEST()
528 CHECK_EQ(&entry2, code_map.FindEntry(ToAddress(0x1700 + 0x50))); in TEST()
529 CHECK_EQ(&entry2, code_map.FindEntry(ToAddress(0x1700 + 0x100 - 1))); in TEST()
530 CHECK_EQ(NULL, code_map.FindEntry(ToAddress(0x1700 + 0x100))); in TEST()
531 CHECK_EQ(NULL, code_map.FindEntry(ToAddress(0x1900 - 1))); in TEST()
532 CHECK_EQ(&entry3, code_map.FindEntry(ToAddress(0x1900))); in TEST()
533 CHECK_EQ(&entry3, code_map.FindEntry(ToAddress(0x1900 + 0x28))); in TEST()
534 CHECK_EQ(&entry4, code_map.FindEntry(ToAddress(0x1950))); in TEST()
535 CHECK_EQ(&entry4, code_map.FindEntry(ToAddress(0x1950 + 0x7))); in TEST()
536 CHECK_EQ(&entry4, code_map.FindEntry(ToAddress(0x1950 + 0x10 - 1))); in TEST()
537 CHECK_EQ(NULL, code_map.FindEntry(ToAddress(0x1950 + 0x10))); in TEST()
538 CHECK_EQ(NULL, code_map.FindEntry(ToAddress(0xFFFFFFFF))); in TEST()
543 CodeMap code_map; in TEST() local
548 code_map.AddCode(ToAddress(0x1500), &entry1, 0x200); in TEST()
549 code_map.AddCode(ToAddress(0x1700), &entry2, 0x100); in TEST()
550 CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1500))); in TEST()
551 CHECK_EQ(&entry2, code_map.FindEntry(ToAddress(0x1700))); in TEST()
552 code_map.MoveCode(ToAddress(0x1500), ToAddress(0x1700)); // Deprecate bbb. in TEST()
553 CHECK_EQ(NULL, code_map.FindEntry(ToAddress(0x1500))); in TEST()
554 CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1700))); in TEST()
557 code_map.AddCode(ToAddress(0x1750), &entry3, 0x100); in TEST()
558 CHECK_EQ(NULL, code_map.FindEntry(ToAddress(0x1700))); in TEST()
559 CHECK_EQ(&entry3, code_map.FindEntry(ToAddress(0x1750))); in TEST()
590 generator.code_map()->AddCode(ToAddress(0x1500), entry1, 0x200); in TEST()
591 generator.code_map()->AddCode(ToAddress(0x1700), entry2, 0x100); in TEST()
592 generator.code_map()->AddCode(ToAddress(0x1900), entry3, 0x50); in TEST()