| OLD | NEW |
| 1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "src/allocation-tracker.h" | 5 #include "src/allocation-tracker.h" |
| 6 | 6 |
| 7 #include "src/frames-inl.h" | 7 #include "src/frames-inl.h" |
| 8 #include "src/heap-snapshot-generator-inl.h" | 8 #include "src/heap-snapshot-generator-inl.h" |
| 9 #include "src/objects-inl.h" | 9 #include "src/objects-inl.h" |
| 10 | 10 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 prev_range = it->second; | 169 prev_range = it->second; |
| 170 } | 170 } |
| 171 do { | 171 do { |
| 172 if (it->first > end) { | 172 if (it->first > end) { |
| 173 if (it->second.start < end) { | 173 if (it->second.start < end) { |
| 174 it->second.start = end; | 174 it->second.start = end; |
| 175 } | 175 } |
| 176 break; | 176 break; |
| 177 } | 177 } |
| 178 ++it; | 178 ++it; |
| 179 } | 179 } while (it != ranges_.end()); |
| 180 while (it != ranges_.end()); | |
| 181 | 180 |
| 182 ranges_.erase(to_remove_begin, it); | 181 ranges_.erase(to_remove_begin, it); |
| 183 | 182 |
| 184 if (prev_range.start != 0) { | 183 if (prev_range.start != 0) { |
| 185 ranges_.insert(RangeMap::value_type(start, prev_range)); | 184 ranges_.insert(RangeMap::value_type(start, prev_range)); |
| 186 } | 185 } |
| 187 } | 186 } |
| 188 | 187 |
| 189 | 188 |
| 190 void AllocationTracker::DeleteFunctionInfo(FunctionInfo** info) { | 189 void AllocationTracker::DeleteFunctionInfo(FunctionInfo** info) { |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 const v8::WeakCallbackData<v8::Value, void>& data) { | 331 const v8::WeakCallbackData<v8::Value, void>& data) { |
| 333 UnresolvedLocation* loc = | 332 UnresolvedLocation* loc = |
| 334 reinterpret_cast<UnresolvedLocation*>(data.GetParameter()); | 333 reinterpret_cast<UnresolvedLocation*>(data.GetParameter()); |
| 335 GlobalHandles::Destroy(reinterpret_cast<Object**>(loc->script_.location())); | 334 GlobalHandles::Destroy(reinterpret_cast<Object**>(loc->script_.location())); |
| 336 loc->script_ = Handle<Script>::null(); | 335 loc->script_ = Handle<Script>::null(); |
| 337 } | 336 } |
| 338 | 337 |
| 339 | 338 |
| 340 } // namespace internal | 339 } // namespace internal |
| 341 } // namespace v8 | 340 } // namespace v8 |
| OLD | NEW |