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

Side by Side Diff: src/mark-compact.cc

Issue 40003002: Add support for tracking NotExectuted/ExecutedOnceCodeAge's when --track_gc_object_stats flag is se… (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix nit Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « src/heap.cc ('k') | src/objects.h » ('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 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1632 matching lines...) Expand 10 before | Expand all | Expand 10 after
1643 1643
1644 template<> 1644 template<>
1645 class MarkCompactMarkingVisitor::ObjectStatsTracker< 1645 class MarkCompactMarkingVisitor::ObjectStatsTracker<
1646 MarkCompactMarkingVisitor::kVisitCode> { 1646 MarkCompactMarkingVisitor::kVisitCode> {
1647 public: 1647 public:
1648 static inline void Visit(Map* map, HeapObject* obj) { 1648 static inline void Visit(Map* map, HeapObject* obj) {
1649 Heap* heap = map->GetHeap(); 1649 Heap* heap = map->GetHeap();
1650 int object_size = obj->Size(); 1650 int object_size = obj->Size();
1651 ASSERT(map->instance_type() == CODE_TYPE); 1651 ASSERT(map->instance_type() == CODE_TYPE);
1652 Code* code_obj = Code::cast(obj); 1652 Code* code_obj = Code::cast(obj);
1653 heap->RecordCodeSubTypeStats(code_obj->kind(), code_obj->GetAge(), 1653 heap->RecordCodeSubTypeStats(code_obj->kind(), code_obj->GetRawAge(),
1654 object_size); 1654 object_size);
1655 ObjectStatsVisitBase(kVisitCode, map, obj); 1655 ObjectStatsVisitBase(kVisitCode, map, obj);
1656 } 1656 }
1657 }; 1657 };
1658 1658
1659 1659
1660 template<> 1660 template<>
1661 class MarkCompactMarkingVisitor::ObjectStatsTracker< 1661 class MarkCompactMarkingVisitor::ObjectStatsTracker<
1662 MarkCompactMarkingVisitor::kVisitSharedFunctionInfo> { 1662 MarkCompactMarkingVisitor::kVisitSharedFunctionInfo> {
1663 public: 1663 public:
(...skipping 2689 matching lines...) Expand 10 before | Expand all | Expand 10 after
4353 while (buffer != NULL) { 4353 while (buffer != NULL) {
4354 SlotsBuffer* next_buffer = buffer->next(); 4354 SlotsBuffer* next_buffer = buffer->next();
4355 DeallocateBuffer(buffer); 4355 DeallocateBuffer(buffer);
4356 buffer = next_buffer; 4356 buffer = next_buffer;
4357 } 4357 }
4358 *buffer_address = NULL; 4358 *buffer_address = NULL;
4359 } 4359 }
4360 4360
4361 4361
4362 } } // namespace v8::internal 4362 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/heap.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698