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 3507 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3518 i::Heap::SetGlobalGCPrologueCallback(callback); | 3518 i::Heap::SetGlobalGCPrologueCallback(callback); |
3519 } | 3519 } |
3520 | 3520 |
3521 | 3521 |
3522 void V8::SetGlobalGCEpilogueCallback(GCCallback callback) { | 3522 void V8::SetGlobalGCEpilogueCallback(GCCallback callback) { |
3523 if (IsDeadCheck("v8::V8::SetGlobalGCEpilogueCallback()")) return; | 3523 if (IsDeadCheck("v8::V8::SetGlobalGCEpilogueCallback()")) return; |
3524 i::Heap::SetGlobalGCEpilogueCallback(callback); | 3524 i::Heap::SetGlobalGCEpilogueCallback(callback); |
3525 } | 3525 } |
3526 | 3526 |
3527 | 3527 |
| 3528 void V8::AddGCPrologueCallback(GCPrologueCallback callback, GCType gc_type) { |
| 3529 if (IsDeadCheck("v8::V8::AddGCPrologueCallback()")) return; |
| 3530 i::Heap::AddGCPrologueCallback(callback, gc_type); |
| 3531 } |
| 3532 |
| 3533 |
| 3534 void V8::RemoveGCPrologueCallback(GCPrologueCallback callback) { |
| 3535 if (IsDeadCheck("v8::V8::RemoveGCPrologueCallback()")) return; |
| 3536 i::Heap::RemoveGCPrologueCallback(callback); |
| 3537 } |
| 3538 |
| 3539 |
| 3540 void V8::AddGCEpilogueCallback(GCEpilogueCallback callback, GCType gc_type) { |
| 3541 if (IsDeadCheck("v8::V8::AddGCEpilogueCallback()")) return; |
| 3542 i::Heap::AddGCEpilogueCallback(callback, gc_type); |
| 3543 } |
| 3544 |
| 3545 |
| 3546 void V8::RemoveGCEpilogueCallback(GCEpilogueCallback callback) { |
| 3547 if (IsDeadCheck("v8::V8::RemoveGCEpilogueCallback()")) return; |
| 3548 i::Heap::RemoveGCEpilogueCallback(callback); |
| 3549 } |
| 3550 |
| 3551 |
3528 void V8::PauseProfiler() { | 3552 void V8::PauseProfiler() { |
3529 #ifdef ENABLE_LOGGING_AND_PROFILING | 3553 #ifdef ENABLE_LOGGING_AND_PROFILING |
3530 PauseProfilerEx(PROFILER_MODULE_CPU); | 3554 PauseProfilerEx(PROFILER_MODULE_CPU); |
3531 #endif | 3555 #endif |
3532 } | 3556 } |
3533 | 3557 |
3534 | 3558 |
3535 void V8::ResumeProfiler() { | 3559 void V8::ResumeProfiler() { |
3536 #ifdef ENABLE_LOGGING_AND_PROFILING | 3560 #ifdef ENABLE_LOGGING_AND_PROFILING |
3537 ResumeProfilerEx(PROFILER_MODULE_CPU); | 3561 ResumeProfilerEx(PROFILER_MODULE_CPU); |
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4006 | 4030 |
4007 | 4031 |
4008 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { | 4032 char* HandleScopeImplementer::Iterate(ObjectVisitor* v, char* storage) { |
4009 HandleScopeImplementer* thread_local = | 4033 HandleScopeImplementer* thread_local = |
4010 reinterpret_cast<HandleScopeImplementer*>(storage); | 4034 reinterpret_cast<HandleScopeImplementer*>(storage); |
4011 thread_local->IterateThis(v); | 4035 thread_local->IterateThis(v); |
4012 return storage + ArchiveSpacePerThread(); | 4036 return storage + ArchiveSpacePerThread(); |
4013 } | 4037 } |
4014 | 4038 |
4015 } } // namespace v8::internal | 4039 } } // namespace v8::internal |
OLD | NEW |