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

Side by Side Diff: src/api.cc

Issue 174302: Update the Idle collector to do a full GC (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « include/v8.h ('k') | src/heap.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 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 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 2586 matching lines...) Expand 10 before | Expand all | Expand 10 after
2597 } 2597 }
2598 } 2598 }
2599 2599
2600 2600
2601 bool v8::V8::Dispose() { 2601 bool v8::V8::Dispose() {
2602 i::V8::TearDown(); 2602 i::V8::TearDown();
2603 return true; 2603 return true;
2604 } 2604 }
2605 2605
2606 2606
2607 void v8::V8::IdleNotification(bool is_high_priority) { 2607 bool v8::V8::IdleNotification(bool is_high_priority) {
2608 i::V8::IdleNotification(is_high_priority); 2608 return i::V8::IdleNotification(is_high_priority);
2609 } 2609 }
2610 2610
2611 2611
2612 void v8::V8::LowMemoryNotification() { 2612 void v8::V8::LowMemoryNotification() {
2613 #if defined(ANDROID) 2613 #if defined(ANDROID)
2614 i::Heap::CollectAllGarbage(true); 2614 i::Heap::CollectAllGarbage(true);
2615 #endif 2615 #endif
2616 } 2616 }
2617 2617
2618 2618
(...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after
3758 reinterpret_cast<HandleScopeImplementer*>(storage); 3758 reinterpret_cast<HandleScopeImplementer*>(storage);
3759 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); 3759 List<void**>* blocks_of_archived_thread = thread_local->Blocks();
3760 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = 3760 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread =
3761 &thread_local->handle_scope_data_; 3761 &thread_local->handle_scope_data_;
3762 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); 3762 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread);
3763 3763
3764 return storage + ArchiveSpacePerThread(); 3764 return storage + ArchiveSpacePerThread();
3765 } 3765 }
3766 3766
3767 } } // namespace v8::internal 3767 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « include/v8.h ('k') | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698