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

Side by Side Diff: src/allocation-tracker.cc

Issue 1327523003: [presubmit] Fix whitespace/empty_loop_body linter violations. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 3 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 | « no previous file | tools/presubmit.py » ('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 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
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
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
OLDNEW
« no previous file with comments | « no previous file | tools/presubmit.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698