OLD | NEW |
1 // Copyright 2007-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2007-2008 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 2702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2713 i::Heap::SetGlobalGCPrologueCallback(callback); | 2713 i::Heap::SetGlobalGCPrologueCallback(callback); |
2714 } | 2714 } |
2715 | 2715 |
2716 | 2716 |
2717 void V8::SetGlobalGCEpilogueCallback(GCCallback callback) { | 2717 void V8::SetGlobalGCEpilogueCallback(GCCallback callback) { |
2718 if (IsDeadCheck("v8::V8::SetGlobalGCEpilogueCallback()")) return; | 2718 if (IsDeadCheck("v8::V8::SetGlobalGCEpilogueCallback()")) return; |
2719 i::Heap::SetGlobalGCEpilogueCallback(callback); | 2719 i::Heap::SetGlobalGCEpilogueCallback(callback); |
2720 } | 2720 } |
2721 | 2721 |
2722 | 2722 |
2723 void V8::SetExternalSymbolCallback(ExternalSymbolCallback callback) { | |
2724 if (IsDeadCheck("v8::V8::SetExternalSymbolCallback()")) return; | |
2725 i::Heap::SetExternalSymbolCallback(callback); | |
2726 } | |
2727 | |
2728 void V8::PauseProfiler() { | 2723 void V8::PauseProfiler() { |
2729 #ifdef ENABLE_LOGGING_AND_PROFILING | 2724 #ifdef ENABLE_LOGGING_AND_PROFILING |
2730 i::Logger::PauseProfiler(); | 2725 i::Logger::PauseProfiler(); |
2731 #endif | 2726 #endif |
2732 } | 2727 } |
2733 | 2728 |
2734 void V8::ResumeProfiler() { | 2729 void V8::ResumeProfiler() { |
2735 #ifdef ENABLE_LOGGING_AND_PROFILING | 2730 #ifdef ENABLE_LOGGING_AND_PROFILING |
2736 i::Logger::ResumeProfiler(); | 2731 i::Logger::ResumeProfiler(); |
2737 #endif | 2732 #endif |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3020 reinterpret_cast<HandleScopeImplementer*>(storage); | 3015 reinterpret_cast<HandleScopeImplementer*>(storage); |
3021 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); | 3016 List<void**>* blocks_of_archived_thread = thread_local->Blocks(); |
3022 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = | 3017 v8::ImplementationUtilities::HandleScopeData* handle_data_of_archived_thread = |
3023 &thread_local->handle_scope_data_; | 3018 &thread_local->handle_scope_data_; |
3024 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); | 3019 Iterate(v, blocks_of_archived_thread, handle_data_of_archived_thread); |
3025 | 3020 |
3026 return storage + ArchiveSpacePerThread(); | 3021 return storage + ArchiveSpacePerThread(); |
3027 } | 3022 } |
3028 | 3023 |
3029 } } // namespace v8::internal | 3024 } } // namespace v8::internal |
OLD | NEW |