OLD | NEW |
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 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #include "src/accessors.h" | 7 #include "src/accessors.h" |
8 #include "src/api.h" | 8 #include "src/api.h" |
9 #include "src/base/bits.h" | 9 #include "src/base/bits.h" |
10 #include "src/base/once.h" | 10 #include "src/base/once.h" |
(...skipping 4593 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4604 PrintF("]"); | 4604 PrintF("]"); |
4605 } | 4605 } |
4606 PrintF("\n"); | 4606 PrintF("\n"); |
4607 } | 4607 } |
4608 | 4608 |
4609 contexts_disposed_ = 0; | 4609 contexts_disposed_ = 0; |
4610 return result; | 4610 return result; |
4611 } | 4611 } |
4612 | 4612 |
4613 | 4613 |
4614 bool Heap::RecentIdleNotifcationHappened() { | 4614 bool Heap::RecentIdleNotificationHappened() { |
4615 return (last_idle_notification_time_ + | 4615 return (last_idle_notification_time_ + |
4616 GCIdleTimeHandler::kMaxFrameRenderingIdleTime) > | 4616 GCIdleTimeHandler::kMaxFrameRenderingIdleTime) > |
4617 MonotonicallyIncreasingTimeInMs(); | 4617 MonotonicallyIncreasingTimeInMs(); |
4618 } | 4618 } |
4619 | 4619 |
4620 | 4620 |
4621 #ifdef DEBUG | 4621 #ifdef DEBUG |
4622 | 4622 |
4623 void Heap::Print() { | 4623 void Heap::Print() { |
4624 if (!HasBeenSetUp()) return; | 4624 if (!HasBeenSetUp()) return; |
(...skipping 1812 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6437 static_cast<int>(object_sizes_last_time_[index])); | 6437 static_cast<int>(object_sizes_last_time_[index])); |
6438 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 6438 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
6439 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 6439 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
6440 | 6440 |
6441 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 6441 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
6442 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 6442 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
6443 ClearObjectStats(); | 6443 ClearObjectStats(); |
6444 } | 6444 } |
6445 } | 6445 } |
6446 } // namespace v8::internal | 6446 } // namespace v8::internal |
OLD | NEW |