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

Side by Side Diff: src/api.cc

Issue 7689002: Remove obsolete kForceCompactionMask flag for GC. (Closed) Base URL: https://v8.googlecode.com/svn/branches/experimental/gc
Patch Set: Created 9 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 | « no previous file | src/extensions/gc-extension.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 2011 the V8 project authors. All rights reserved. 1 // Copyright 2011 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 3951 matching lines...) Expand 10 before | Expand all | Expand 10 after
3962 // Returning true tells the caller that it need not 3962 // Returning true tells the caller that it need not
3963 // continue to call IdleNotification. 3963 // continue to call IdleNotification.
3964 if (!i::Isolate::Current()->IsInitialized()) return true; 3964 if (!i::Isolate::Current()->IsInitialized()) return true;
3965 return i::V8::IdleNotification(); 3965 return i::V8::IdleNotification();
3966 } 3966 }
3967 3967
3968 3968
3969 void v8::V8::LowMemoryNotification() { 3969 void v8::V8::LowMemoryNotification() {
3970 i::Isolate* isolate = i::Isolate::Current(); 3970 i::Isolate* isolate = i::Isolate::Current();
3971 if (!isolate->IsInitialized()) return; 3971 if (!isolate->IsInitialized()) return;
3972 isolate->heap()->CollectAllGarbage(i::Heap::kForceCompactionMask); 3972 isolate->heap()->CollectAllGarbage(i::Heap::kNoGCFlags);
Vyacheslav Egorov (Chromium) 2011/08/19 12:45:51 Please file an issue to do meaningful work on LowM
3973 } 3973 }
3974 3974
3975 3975
3976 int v8::V8::ContextDisposedNotification() { 3976 int v8::V8::ContextDisposedNotification() {
3977 i::Isolate* isolate = i::Isolate::Current(); 3977 i::Isolate* isolate = i::Isolate::Current();
3978 if (!isolate->IsInitialized()) return 0; 3978 if (!isolate->IsInitialized()) return 0;
3979 return isolate->heap()->NotifyContextDisposed(); 3979 return isolate->heap()->NotifyContextDisposed();
3980 } 3980 }
3981 3981
3982 3982
(...skipping 2053 matching lines...) Expand 10 before | Expand all | Expand 10 after
6036 6036
6037 6037
6038 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { 6038 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) {
6039 HandleScopeImplementer* scope_implementer = 6039 HandleScopeImplementer* scope_implementer =
6040 reinterpret_cast<HandleScopeImplementer*>(storage); 6040 reinterpret_cast<HandleScopeImplementer*>(storage);
6041 scope_implementer->IterateThis(v); 6041 scope_implementer->IterateThis(v);
6042 return storage + ArchiveSpacePerThread(); 6042 return storage + ArchiveSpacePerThread();
6043 } 6043 }
6044 6044
6045 } } // namespace v8::internal 6045 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « no previous file | src/extensions/gc-extension.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698