OLD | NEW |
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 2854 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2865 return i::V8::IdleNotification(); | 2865 return i::V8::IdleNotification(); |
2866 } | 2866 } |
2867 | 2867 |
2868 | 2868 |
2869 void v8::V8::LowMemoryNotification() { | 2869 void v8::V8::LowMemoryNotification() { |
2870 if (!i::V8::IsRunning()) return; | 2870 if (!i::V8::IsRunning()) return; |
2871 i::Heap::CollectAllGarbage(true); | 2871 i::Heap::CollectAllGarbage(true); |
2872 } | 2872 } |
2873 | 2873 |
2874 | 2874 |
2875 void v8::V8::ContextDisposedNotification() { | 2875 int v8::V8::ContextDisposedNotification() { |
2876 if (!i::V8::IsRunning()) return; | 2876 if (!i::V8::IsRunning()) return 0; |
2877 i::Heap::NotifyContextDisposed(); | 2877 return i::Heap::NotifyContextDisposed(); |
2878 } | 2878 } |
2879 | 2879 |
2880 | 2880 |
2881 const char* v8::V8::GetVersion() { | 2881 const char* v8::V8::GetVersion() { |
2882 static v8::internal::EmbeddedVector<char, 128> buffer; | 2882 static v8::internal::EmbeddedVector<char, 128> buffer; |
2883 v8::internal::Version::GetString(buffer); | 2883 v8::internal::Version::GetString(buffer); |
2884 return buffer.start(); | 2884 return buffer.start(); |
2885 } | 2885 } |
2886 | 2886 |
2887 | 2887 |
(...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3997 | 3997 |
3998 | 3998 |
3999 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 3999 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
4000 HandleScopeImplementer* thread_local = | 4000 HandleScopeImplementer* thread_local = |
4001 reinterpret_cast<HandleScopeImplementer*>(storage); | 4001 reinterpret_cast<HandleScopeImplementer*>(storage); |
4002 thread_local->IterateThis(v); | 4002 thread_local->IterateThis(v); |
4003 return storage + ArchiveSpacePerThread(); | 4003 return storage + ArchiveSpacePerThread(); |
4004 } | 4004 } |
4005 | 4005 |
4006 } } // namespace v8::internal | 4006 } } // namespace v8::internal |
OLD | NEW |