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

Unified Diff: src/utils.h

Issue 1051393003: Removed src/{isolate,property-details,utils}-inl.h (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/runtime/runtime-debug.cc ('k') | src/utils-inl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils.h
diff --git a/src/utils.h b/src/utils.h
index 5790d878b9a4b87d24f74466c831d35241d1d935..070ae7cabebaec1aaa2b456d6773115361651716 100644
--- a/src/utils.h
+++ b/src/utils.h
@@ -640,7 +640,14 @@ class Collector {
}
// Resets the collector to be empty.
- virtual void Reset();
+ virtual void Reset() {
+ for (int i = chunks_.length() - 1; i >= 0; i--) {
+ chunks_.at(i).Dispose();
+ }
+ chunks_.Rewind(0);
+ index_ = 0;
+ size_ = 0;
+ }
// Total number of elements added to collector so far.
inline int size() { return size_; }
« no previous file with comments | « src/runtime/runtime-debug.cc ('k') | src/utils-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698