Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(50)

Side by Side Diff: src/processor/range_map-inl.h

Issue 2060663002: Server-side workaround to handle overlapping modules. (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Fix whitespace. Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/processor/range_map.h ('k') | src/processor/stackwalker_unittest_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 Google Inc. 1 // Copyright (c) 2010 Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 namespace google_breakpad { 47 namespace google_breakpad {
48 48
49 template<typename AddressType, typename EntryType> 49 template<typename AddressType, typename EntryType>
50 void RangeMap<AddressType, EntryType>::SetEnableShrinkDown( 50 void RangeMap<AddressType, EntryType>::SetEnableShrinkDown(
51 bool enable_shrink_down) { 51 bool enable_shrink_down) {
52 enable_shrink_down_ = enable_shrink_down; 52 enable_shrink_down_ = enable_shrink_down;
53 } 53 }
54 54
55 template<typename AddressType, typename EntryType> 55 template<typename AddressType, typename EntryType>
56 bool RangeMap<AddressType, EntryType>::IsShrinkDownEnabled() const {
57 return enable_shrink_down_;
58 }
59
60 template<typename AddressType, typename EntryType>
56 bool RangeMap<AddressType, EntryType>::StoreRange(const AddressType &base, 61 bool RangeMap<AddressType, EntryType>::StoreRange(const AddressType &base,
57 const AddressType &size, 62 const AddressType &size,
58 const EntryType &entry) { 63 const EntryType &entry) {
59 return StoreRangeInternal(base, 0 /* delta */, size, entry); 64 return StoreRangeInternal(base, 0 /* delta */, size, entry);
60 } 65 }
61 66
62 template<typename AddressType, typename EntryType> 67 template<typename AddressType, typename EntryType>
63 bool RangeMap<AddressType, EntryType>::StoreRangeInternal( 68 bool RangeMap<AddressType, EntryType>::StoreRangeInternal(
64 const AddressType &base, const AddressType &delta, 69 const AddressType &base, const AddressType &delta,
65 const AddressType &size, const EntryType &entry) { 70 const AddressType &size, const EntryType &entry) {
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 template<typename AddressType, typename EntryType> 263 template<typename AddressType, typename EntryType>
259 void RangeMap<AddressType, EntryType>::Clear() { 264 void RangeMap<AddressType, EntryType>::Clear() {
260 map_.clear(); 265 map_.clear();
261 } 266 }
262 267
263 268
264 } // namespace google_breakpad 269 } // namespace google_breakpad
265 270
266 271
267 #endif // PROCESSOR_RANGE_MAP_INL_H__ 272 #endif // PROCESSOR_RANGE_MAP_INL_H__
OLDNEW
« no previous file with comments | « src/processor/range_map.h ('k') | src/processor/stackwalker_unittest_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698