Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 Loading... | |
| 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 Loading... | |
| 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 |
| OLD | NEW |