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 4660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4671 PrintF("\n"); | 4671 PrintF("\n"); |
4672 } | 4672 } |
4673 | 4673 |
4674 contexts_disposed_ = 0; | 4674 contexts_disposed_ = 0; |
4675 return result; | 4675 return result; |
4676 } | 4676 } |
4677 | 4677 |
4678 | 4678 |
4679 bool Heap::RecentIdleNotificationHappened() { | 4679 bool Heap::RecentIdleNotificationHappened() { |
4680 return (last_idle_notification_time_ + | 4680 return (last_idle_notification_time_ + |
4681 GCIdleTimeHandler::kMaxFrameRenderingIdleTime) > | 4681 GCIdleTimeHandler::kMaxScheduledIdleTime) > |
4682 MonotonicallyIncreasingTimeInMs(); | 4682 MonotonicallyIncreasingTimeInMs(); |
4683 } | 4683 } |
4684 | 4684 |
4685 | 4685 |
4686 #ifdef DEBUG | 4686 #ifdef DEBUG |
4687 | 4687 |
4688 void Heap::Print() { | 4688 void Heap::Print() { |
4689 if (!HasBeenSetUp()) return; | 4689 if (!HasBeenSetUp()) return; |
4690 isolate()->PrintStack(stdout); | 4690 isolate()->PrintStack(stdout); |
4691 AllSpaces spaces(this); | 4691 AllSpaces spaces(this); |
(...skipping 1618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6310 static_cast<int>(object_sizes_last_time_[index])); | 6310 static_cast<int>(object_sizes_last_time_[index])); |
6311 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) | 6311 CODE_AGE_LIST_COMPLETE(ADJUST_LAST_TIME_OBJECT_COUNT) |
6312 #undef ADJUST_LAST_TIME_OBJECT_COUNT | 6312 #undef ADJUST_LAST_TIME_OBJECT_COUNT |
6313 | 6313 |
6314 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); | 6314 MemCopy(object_counts_last_time_, object_counts_, sizeof(object_counts_)); |
6315 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); | 6315 MemCopy(object_sizes_last_time_, object_sizes_, sizeof(object_sizes_)); |
6316 ClearObjectStats(); | 6316 ClearObjectStats(); |
6317 } | 6317 } |
6318 } | 6318 } |
6319 } // namespace v8::internal | 6319 } // namespace v8::internal |
OLD | NEW |