Shrinking debug info.

This commit is contained in:
Ben Vanik
2015-05-03 22:53:03 -07:00
parent 00c1b5fbbc
commit 0f14575592
4 changed files with 9 additions and 9 deletions

View File

@@ -49,7 +49,7 @@ SourceMapEntry* DebugInfo::LookupSourceOffset(uint32_t offset) {
return nullptr;
}
SourceMapEntry* DebugInfo::LookupHIROffset(uint64_t offset) {
SourceMapEntry* DebugInfo::LookupHIROffset(uint32_t offset) {
// TODO(benvanik): binary search? We know the list is sorted by code order.
for (size_t n = 0; n < source_map_count_; n++) {
auto entry = &source_map_[n];
@@ -60,7 +60,7 @@ SourceMapEntry* DebugInfo::LookupHIROffset(uint64_t offset) {
return nullptr;
}
SourceMapEntry* DebugInfo::LookupCodeOffset(uint64_t offset) {
SourceMapEntry* DebugInfo::LookupCodeOffset(uint32_t offset) {
// TODO(benvanik): binary search? We know the list is sorted by code order.
for (int64_t n = source_map_count_ - 1; n >= 0; n--) {
auto entry = &source_map_[n];