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

Side by Side Diff: src/heap/heap.h

Issue 1699733003: [left-trimming] Avoid creating duplicate handles in builtins.cc (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: using CloseAndEscape Created 4 years, 10 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/builtins.cc ('k') | src/heap/heap.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 #ifndef V8_HEAP_HEAP_H_ 5 #ifndef V8_HEAP_HEAP_H_
6 #define V8_HEAP_HEAP_H_ 6 #define V8_HEAP_HEAP_H_
7 7
8 #include <cmath> 8 #include <cmath>
9 #include <map> 9 #include <map>
10 10
(...skipping 1344 matching lines...) Expand 10 before | Expand all | Expand 10 after
1355 void TracePathToObject(Object* target); 1355 void TracePathToObject(Object* target);
1356 void TracePathToGlobal(); 1356 void TracePathToGlobal();
1357 1357
1358 void Print(); 1358 void Print();
1359 void PrintHandles(); 1359 void PrintHandles();
1360 1360
1361 // Report heap statistics. 1361 // Report heap statistics.
1362 void ReportHeapStatistics(const char* title); 1362 void ReportHeapStatistics(const char* title);
1363 void ReportCodeStatistics(const char* title); 1363 void ReportCodeStatistics(const char* title);
1364 #endif 1364 #endif
1365 #ifdef ENABLE_SLOW_DCHECKS
1366 int CountHandlesForObject(Object* object);
1367 #endif
1365 1368
1366 private: 1369 private:
1367 class PretenuringScope; 1370 class PretenuringScope;
1368 class UnmapFreeMemoryTask; 1371 class UnmapFreeMemoryTask;
1369 1372
1370 // External strings table is a place where all external strings are 1373 // External strings table is a place where all external strings are
1371 // registered. We need to keep track of such strings to properly 1374 // registered. We need to keep track of such strings to properly
1372 // finalize them. 1375 // finalize them.
1373 class ExternalStringTable { 1376 class ExternalStringTable {
1374 public: 1377 public:
(...skipping 1247 matching lines...) Expand 10 before | Expand all | Expand 10 after
2622 friend class LargeObjectSpace; 2625 friend class LargeObjectSpace;
2623 friend class NewSpace; 2626 friend class NewSpace;
2624 friend class PagedSpace; 2627 friend class PagedSpace;
2625 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); 2628 DISALLOW_COPY_AND_ASSIGN(AllocationObserver);
2626 }; 2629 };
2627 2630
2628 } // namespace internal 2631 } // namespace internal
2629 } // namespace v8 2632 } // namespace v8
2630 2633
2631 #endif // V8_HEAP_HEAP_H_ 2634 #endif // V8_HEAP_HEAP_H_
OLDNEW
« no previous file with comments | « src/builtins.cc ('k') | src/heap/heap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698