Lines Matching refs:code_map
282 CodeMap code_map;
287 code_map.AddCode(ToAddress(0x1500), &entry1, 0x200);
288 code_map.AddCode(ToAddress(0x1700), &entry2, 0x100);
289 code_map.AddCode(ToAddress(0x1900), &entry3, 0x50);
290 code_map.AddCode(ToAddress(0x1950), &entry4, 0x10);
291 CHECK(!code_map.FindEntry(0));
292 CHECK(!code_map.FindEntry(ToAddress(0x1500 - 1)));
293 CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1500)));
294 CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1500 + 0x100)));
295 CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1500 + 0x200 - 1)));
296 CHECK_EQ(&entry2, code_map.FindEntry(ToAddress(0x1700)));
297 CHECK_EQ(&entry2, code_map.FindEntry(ToAddress(0x1700 + 0x50)));
298 CHECK_EQ(&entry2, code_map.FindEntry(ToAddress(0x1700 + 0x100 - 1)));
299 CHECK(!code_map.FindEntry(ToAddress(0x1700 + 0x100)));
300 CHECK(!code_map.FindEntry(ToAddress(0x1900 - 1)));
301 CHECK_EQ(&entry3, code_map.FindEntry(ToAddress(0x1900)));
302 CHECK_EQ(&entry3, code_map.FindEntry(ToAddress(0x1900 + 0x28)));
303 CHECK_EQ(&entry4, code_map.FindEntry(ToAddress(0x1950)));
304 CHECK_EQ(&entry4, code_map.FindEntry(ToAddress(0x1950 + 0x7)));
305 CHECK_EQ(&entry4, code_map.FindEntry(ToAddress(0x1950 + 0x10 - 1)));
306 CHECK(!code_map.FindEntry(ToAddress(0x1950 + 0x10)));
307 CHECK(!code_map.FindEntry(ToAddress(0xFFFFFFFF)));
312 CodeMap code_map;
315 code_map.AddCode(ToAddress(0x1500), &entry1, 0x200);
316 code_map.AddCode(ToAddress(0x1700), &entry2, 0x100);
317 CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1500)));
318 CHECK_EQ(&entry2, code_map.FindEntry(ToAddress(0x1700)));
319 code_map.MoveCode(ToAddress(0x1500), ToAddress(0x1700)); // Deprecate bbb.
320 CHECK(!code_map.FindEntry(ToAddress(0x1500)));
321 CHECK_EQ(&entry1, code_map.FindEntry(ToAddress(0x1700)));
323 code_map.AddCode(ToAddress(0x1750), &entry3, 0x100);
324 CHECK(!code_map.FindEntry(ToAddress(0x1700)));
325 CHECK_EQ(&entry3, code_map.FindEntry(ToAddress(0x1750)));
356 generator.code_map()->AddCode(ToAddress(0x1500), entry1, 0x200);
357 generator.code_map()->AddCode(ToAddress(0x1700), entry2, 0x100);
358 generator.code_map()->AddCode(ToAddress(0x1900), entry3, 0x50);
422 generator.code_map()->AddCode(ToAddress(0x1500), entry1, 0x200);
423 generator.code_map()->AddCode(ToAddress(0x1700), entry2, 0x100);
424 generator.code_map()->AddCode(ToAddress(0x1900), entry3, 0x50);
468 generator.code_map()->AddCode(ToAddress(0x1500), entry1, 0x200);
641 CodeMap* code_map = profiler->generator()->code_map();
649 CodeEntry* func_entry = code_map->FindEntry(func->code()->address());