Lines Matching refs:ToAddress
330 static inline i::Address ToAddress(int n) { in ToAddress() function
341 code_map.AddCode(ToAddress(0x1500), &entry1, 0x200); in TEST()
342 code_map.AddCode(ToAddress(0x1700), &entry2, 0x100); in TEST()
343 code_map.AddCode(ToAddress(0x1900), &entry3, 0x50); in TEST()
344 code_map.AddCode(ToAddress(0x1950), &entry4, 0x10); in TEST()
346 CHECK_EQ(NULL, code_map.FindEntry(ToAddress(0x1500 - 1))); in TEST()
347 CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1500))); in TEST()
348 CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1500 + 0x100))); in TEST()
349 CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1500 + 0x200 - 1))); in TEST()
350 CHECK_EQ(&entry2, code_map.FindEntry(ToAddress(0x1700))); in TEST()
351 CHECK_EQ(&entry2, code_map.FindEntry(ToAddress(0x1700 + 0x50))); in TEST()
352 CHECK_EQ(&entry2, code_map.FindEntry(ToAddress(0x1700 + 0x100 - 1))); in TEST()
353 CHECK_EQ(NULL, code_map.FindEntry(ToAddress(0x1700 + 0x100))); in TEST()
354 CHECK_EQ(NULL, code_map.FindEntry(ToAddress(0x1900 - 1))); in TEST()
355 CHECK_EQ(&entry3, code_map.FindEntry(ToAddress(0x1900))); in TEST()
356 CHECK_EQ(&entry3, code_map.FindEntry(ToAddress(0x1900 + 0x28))); in TEST()
357 CHECK_EQ(&entry4, code_map.FindEntry(ToAddress(0x1950))); in TEST()
358 CHECK_EQ(&entry4, code_map.FindEntry(ToAddress(0x1950 + 0x7))); in TEST()
359 CHECK_EQ(&entry4, code_map.FindEntry(ToAddress(0x1950 + 0x10 - 1))); in TEST()
360 CHECK_EQ(NULL, code_map.FindEntry(ToAddress(0x1950 + 0x10))); in TEST()
361 CHECK_EQ(NULL, code_map.FindEntry(ToAddress(0xFFFFFFFF))); in TEST()
369 code_map.AddCode(ToAddress(0x1500), &entry1, 0x200); in TEST()
370 code_map.AddCode(ToAddress(0x1700), &entry2, 0x100); in TEST()
371 CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1500))); in TEST()
372 CHECK_EQ(&entry2, code_map.FindEntry(ToAddress(0x1700))); in TEST()
373 code_map.MoveCode(ToAddress(0x1500), ToAddress(0x1700)); // Deprecate bbb. in TEST()
374 CHECK_EQ(NULL, code_map.FindEntry(ToAddress(0x1500))); in TEST()
375 CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1700))); in TEST()
377 code_map.AddCode(ToAddress(0x1750), &entry3, 0x100); in TEST()
378 CHECK_EQ(NULL, code_map.FindEntry(ToAddress(0x1700))); in TEST()
379 CHECK_EQ(&entry3, code_map.FindEntry(ToAddress(0x1750))); in TEST()
410 generator.code_map()->AddCode(ToAddress(0x1500), entry1, 0x200); in TEST()
411 generator.code_map()->AddCode(ToAddress(0x1700), entry2, 0x100); in TEST()
412 generator.code_map()->AddCode(ToAddress(0x1900), entry3, 0x50); in TEST()
419 sample1.pc = ToAddress(0x1600); in TEST()
420 sample1.tos = ToAddress(0x1500); in TEST()
421 sample1.stack[0] = ToAddress(0x1510); in TEST()
425 sample2.pc = ToAddress(0x1925); in TEST()
426 sample2.tos = ToAddress(0x1900); in TEST()
427 sample2.stack[0] = ToAddress(0x1780); in TEST()
428 sample2.stack[1] = ToAddress(0x10000); // non-existent. in TEST()
429 sample2.stack[2] = ToAddress(0x1620); in TEST()
433 sample3.pc = ToAddress(0x1510); in TEST()
434 sample3.tos = ToAddress(0x1500); in TEST()
435 sample3.stack[0] = ToAddress(0x1910); in TEST()
436 sample3.stack[1] = ToAddress(0x1610); in TEST()
476 generator.code_map()->AddCode(ToAddress(0x1500), entry1, 0x200); in TEST()
477 generator.code_map()->AddCode(ToAddress(0x1700), entry2, 0x100); in TEST()
478 generator.code_map()->AddCode(ToAddress(0x1900), entry3, 0x50); in TEST()
485 sample1.pc = ToAddress(0x1600); in TEST()
486 sample1.stack[0] = ToAddress(0x1510); in TEST()
490 sample2.pc = ToAddress(0x1925); in TEST()
491 sample2.stack[0] = ToAddress(0x1780); in TEST()
492 sample2.stack[1] = ToAddress(0x10000); // non-existent. in TEST()
493 sample2.stack[2] = ToAddress(0x1620); in TEST()
497 sample3.pc = ToAddress(0x1510); in TEST()
498 sample3.stack[0] = ToAddress(0x1910); in TEST()
499 sample3.stack[1] = ToAddress(0x1610); in TEST()
522 generator.code_map()->AddCode(ToAddress(0x1500), entry1, 0x200); in TEST()
527 sample1.pc = ToAddress(0x1600); in TEST()
528 sample1.stack[0] = ToAddress(0x1510); in TEST()