OLD | NEW |
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 Loading... |
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 Loading... |
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__ |
OLD | NEW |