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 2584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2595 } | 2595 } |
2596 } | 2596 } |
2597 | 2597 |
2598 | 2598 |
2599 bool v8::V8::Dispose() { | 2599 bool v8::V8::Dispose() { |
2600 i::V8::TearDown(); | 2600 i::V8::TearDown(); |
2601 return true; | 2601 return true; |
2602 } | 2602 } |
2603 | 2603 |
2604 | 2604 |
2605 bool v8::V8::IdleNotification(bool is_high_priority) { | 2605 bool v8::V8::IdleNotification() { |
2606 // Returning true tells the caller that it need not | 2606 // Returning true tells the caller that it need not |
2607 // continue to call IdleNotification. | 2607 // continue to call IdleNotification. |
2608 if (!i::V8::IsRunning()) return true; | 2608 if (!i::V8::IsRunning()) return true; |
2609 return i::V8::IdleNotification(is_high_priority); | 2609 return i::V8::IdleNotification(); |
2610 } | 2610 } |
2611 | 2611 |
2612 | 2612 |
2613 void v8::V8::LowMemoryNotification() { | 2613 void v8::V8::LowMemoryNotification() { |
2614 #if defined(ANDROID) | 2614 #if defined(ANDROID) |
2615 if (!i::V8::IsRunning()) return; | 2615 if (!i::V8::IsRunning()) return; |
2616 i::Heap::CollectAllGarbage(true); | 2616 i::Heap::CollectAllGarbage(true); |
2617 #endif | 2617 #endif |
2618 } | 2618 } |
2619 | 2619 |
(...skipping 1146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3766 | 3766 |
3767 | 3767 |
3768 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 3768 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
3769 HandleScopeImplementer* thread_local = | 3769 HandleScopeImplementer* thread_local = |
3770 reinterpret_cast<HandleScopeImplementer*>(storage); | 3770 reinterpret_cast<HandleScopeImplementer*>(storage); |
3771 thread_local->IterateThis(v); | 3771 thread_local->IterateThis(v); |
3772 return storage + ArchiveSpacePerThread(); | 3772 return storage + ArchiveSpacePerThread(); |
3773 } | 3773 } |
3774 | 3774 |
3775 } } // namespace v8::internal | 3775 } } // namespace v8::internal |
OLD | NEW |