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 3981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3992 // Returning true tells the caller that it need not | 3992 // Returning true tells the caller that it need not |
3993 // continue to call IdleNotification. | 3993 // continue to call IdleNotification. |
3994 if (!i::Isolate::Current()->IsInitialized()) return true; | 3994 if (!i::Isolate::Current()->IsInitialized()) return true; |
3995 return i::V8::IdleNotification(); | 3995 return i::V8::IdleNotification(); |
3996 } | 3996 } |
3997 | 3997 |
3998 | 3998 |
3999 void v8::V8::LowMemoryNotification() { | 3999 void v8::V8::LowMemoryNotification() { |
4000 i::Isolate* isolate = i::Isolate::Current(); | 4000 i::Isolate* isolate = i::Isolate::Current(); |
4001 if (!isolate->IsInitialized()) return; | 4001 if (!isolate->IsInitialized()) return; |
4002 isolate->heap()->CollectAllGarbage(true); | 4002 isolate->heap()->CollectAllAvailableGarbage(); |
4003 } | 4003 } |
4004 | 4004 |
4005 | 4005 |
4006 int v8::V8::ContextDisposedNotification() { | 4006 int v8::V8::ContextDisposedNotification() { |
4007 i::Isolate* isolate = i::Isolate::Current(); | 4007 i::Isolate* isolate = i::Isolate::Current(); |
4008 if (!isolate->IsInitialized()) return 0; | 4008 if (!isolate->IsInitialized()) return 0; |
4009 return isolate->heap()->NotifyContextDisposed(); | 4009 return isolate->heap()->NotifyContextDisposed(); |
4010 } | 4010 } |
4011 | 4011 |
4012 | 4012 |
(...skipping 2053 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6066 | 6066 |
6067 | 6067 |
6068 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 6068 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
6069 HandleScopeImplementer* scope_implementer = | 6069 HandleScopeImplementer* scope_implementer = |
6070 reinterpret_cast<HandleScopeImplementer*>(storage); | 6070 reinterpret_cast<HandleScopeImplementer*>(storage); |
6071 scope_implementer->IterateThis(v); | 6071 scope_implementer->IterateThis(v); |
6072 return storage + ArchiveSpacePerThread(); | 6072 return storage + ArchiveSpacePerThread(); |
6073 } | 6073 } |
6074 | 6074 |
6075 } } // namespace v8::internal | 6075 } } // namespace v8::internal |
OLD | NEW |