OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 4059 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4070 // continue to call IdleNotification. | 4070 // continue to call IdleNotification. |
4071 i::Isolate* isolate = i::Isolate::Current(); | 4071 i::Isolate* isolate = i::Isolate::Current(); |
4072 if (isolate == NULL || !isolate->IsInitialized()) return true; | 4072 if (isolate == NULL || !isolate->IsInitialized()) return true; |
4073 return i::V8::IdleNotification(hint); | 4073 return i::V8::IdleNotification(hint); |
4074 } | 4074 } |
4075 | 4075 |
4076 | 4076 |
4077 void v8::V8::LowMemoryNotification() { | 4077 void v8::V8::LowMemoryNotification() { |
4078 i::Isolate* isolate = i::Isolate::Current(); | 4078 i::Isolate* isolate = i::Isolate::Current(); |
4079 if (isolate == NULL || !isolate->IsInitialized()) return; | 4079 if (isolate == NULL || !isolate->IsInitialized()) return; |
4080 isolate->heap()->CollectAllAvailableGarbage(); | 4080 isolate->heap()->CollectAllAvailableGarbage("low memory notification"); |
4081 } | 4081 } |
4082 | 4082 |
4083 | 4083 |
4084 int v8::V8::ContextDisposedNotification() { | 4084 int v8::V8::ContextDisposedNotification() { |
4085 i::Isolate* isolate = i::Isolate::Current(); | 4085 i::Isolate* isolate = i::Isolate::Current(); |
4086 if (!isolate->IsInitialized()) return 0; | 4086 if (!isolate->IsInitialized()) return 0; |
4087 return isolate->heap()->NotifyContextDisposed(); | 4087 return isolate->heap()->NotifyContextDisposed(); |
4088 } | 4088 } |
4089 | 4089 |
4090 | 4090 |
(...skipping 2097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6188 | 6188 |
6189 | 6189 |
6190 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 6190 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
6191 HandleScopeImplementer* scope_implementer = | 6191 HandleScopeImplementer* scope_implementer = |
6192 reinterpret_cast<HandleScopeImplementer*>(storage); | 6192 reinterpret_cast<HandleScopeImplementer*>(storage); |
6193 scope_implementer->IterateThis(v); | 6193 scope_implementer->IterateThis(v); |
6194 return storage + ArchiveSpacePerThread(); | 6194 return storage + ArchiveSpacePerThread(); |
6195 } | 6195 } |
6196 | 6196 |
6197 } } // namespace v8::internal | 6197 } } // namespace v8::internal |
OLD | NEW |