Home | History | Annotate | Download | only in cctest

Lines Matching refs:ToAddress

504 static inline i::Address ToAddress(int n) {
518 code_map.AddCode(ToAddress(0x1500), &entry1, 0x200);
519 code_map.AddCode(ToAddress(0x1700), &entry2, 0x100);
520 code_map.AddCode(ToAddress(0x1900), &entry3, 0x50);
521 code_map.AddCode(ToAddress(0x1950), &entry4, 0x10);
523 CHECK_EQ(NULL, code_map.FindEntry(ToAddress(0x1500 - 1)));
524 CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1500)));
525 CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1500 + 0x100)));
526 CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1500 + 0x200 - 1)));
527 CHECK_EQ(&entry2, code_map.FindEntry(ToAddress(0x1700)));
528 CHECK_EQ(&entry2, code_map.FindEntry(ToAddress(0x1700 + 0x50)));
529 CHECK_EQ(&entry2, code_map.FindEntry(ToAddress(0x1700 + 0x100 - 1)));
530 CHECK_EQ(NULL, code_map.FindEntry(ToAddress(0x1700 + 0x100)));
531 CHECK_EQ(NULL, code_map.FindEntry(ToAddress(0x1900 - 1)));
532 CHECK_EQ(&entry3, code_map.FindEntry(ToAddress(0x1900)));
533 CHECK_EQ(&entry3, code_map.FindEntry(ToAddress(0x1900 + 0x28)));
534 CHECK_EQ(&entry4, code_map.FindEntry(ToAddress(0x1950)));
535 CHECK_EQ(&entry4, code_map.FindEntry(ToAddress(0x1950 + 0x7)));
536 CHECK_EQ(&entry4, code_map.FindEntry(ToAddress(0x1950 + 0x10 - 1)));
537 CHECK_EQ(NULL, code_map.FindEntry(ToAddress(0x1950 + 0x10)));
538 CHECK_EQ(NULL, code_map.FindEntry(ToAddress(0xFFFFFFFF)));
548 code_map.AddCode(ToAddress(0x1500), &entry1, 0x200);
549 code_map.AddCode(ToAddress(0x1700), &entry2, 0x100);
550 CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1500)));
551 CHECK_EQ(&entry2, code_map.FindEntry(ToAddress(0x1700)));
552 code_map.MoveCode(ToAddress(0x1500), ToAddress(0x1700)); // Deprecate bbb.
553 CHECK_EQ(NULL, code_map.FindEntry(ToAddress(0x1500)));
554 CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1700)));
557 code_map.AddCode(ToAddress(0x1750), &entry3, 0x100);
558 CHECK_EQ(NULL, code_map.FindEntry(ToAddress(0x1700)));
559 CHECK_EQ(&entry3, code_map.FindEntry(ToAddress(0x1750)));
590 generator.code_map()->AddCode(ToAddress(0x1500), entry1, 0x200);
591 generator.code_map()->AddCode(ToAddress(0x1700), entry2, 0x100);
592 generator.code_map()->AddCode(ToAddress(0x1900), entry3, 0x50);
599 sample1.pc = ToAddress(0x1600);
600 sample1.tos = ToAddress(0x1500);
601 sample1.stack[0] = ToAddress(0x1510);
605 sample2.pc = ToAddress(0x1925);
606 sample2.tos = ToAddress(0x1900);
607 sample2.stack[0] = ToAddress(0x1780);
608 sample2.stack[1] = ToAddress(0x10000); // non-existent.
609 sample2.stack[2] = ToAddress(0x1620);
613 sample3.pc = ToAddress(0x1510);
614 sample3.tos = ToAddress(0x1500);
615 sample3.stack[0] = ToAddress(0x1910);
616 sample3.stack[1] = ToAddress(0x1610);