Lines Matching refs:mapped_range

454                              MappedRange* mapped_range) {  in ClipMappedRangeOriginal()  argument
455 assert(mapped_range != NULL); in ClipMappedRangeOriginal()
458 if (clip_range.end() <= mapped_range->rva_original || in ClipMappedRangeOriginal()
459 mapped_range->rva_original + mapped_range->length + in ClipMappedRangeOriginal()
460 mapped_range->removed <= clip_range.rva) { in ClipMappedRangeOriginal()
461 mapped_range->length = 0; in ClipMappedRangeOriginal()
462 mapped_range->injected = 0; in ClipMappedRangeOriginal()
463 mapped_range->removed = 0; in ClipMappedRangeOriginal()
468 if (mapped_range->rva_original < clip_range.rva) { in ClipMappedRangeOriginal()
469 DWORD clip_left = clip_range.rva - mapped_range->rva_original; in ClipMappedRangeOriginal()
470 mapped_range->rva_original += clip_left; in ClipMappedRangeOriginal()
471 mapped_range->rva_transformed += clip_left; in ClipMappedRangeOriginal()
473 if (clip_left > mapped_range->length) { in ClipMappedRangeOriginal()
476 DWORD trim = clip_left - mapped_range->length; in ClipMappedRangeOriginal()
477 mapped_range->length = 0; in ClipMappedRangeOriginal()
478 mapped_range->injected -= Min(trim, mapped_range->injected); in ClipMappedRangeOriginal()
480 mapped_range->removed -= trim; in ClipMappedRangeOriginal()
484 mapped_range->length -= clip_left; in ClipMappedRangeOriginal()
489 DWORD end_original = mapped_range->rva_original + mapped_range->length; in ClipMappedRangeOriginal()
494 mapped_range->length -= clip_right; in ClipMappedRangeOriginal()
495 mapped_range->injected = 0; in ClipMappedRangeOriginal()
496 mapped_range->removed = 0; in ClipMappedRangeOriginal()
501 DWORD end_removed = end_original + mapped_range->removed; in ClipMappedRangeOriginal()
503 mapped_range->removed = clip_range.end() - end_original; in ClipMappedRangeOriginal()
505 DWORD end_injected = end_original + mapped_range->injected; in ClipMappedRangeOriginal()
507 mapped_range->injected = clip_range.end() - end_original; in ClipMappedRangeOriginal()