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 7642 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7653 GetMemorySizeUsedByProfiler(); | 7653 GetMemorySizeUsedByProfiler(); |
7654 } | 7654 } |
7655 | 7655 |
7656 | 7656 |
7657 void HeapProfiler::SetRetainedObjectInfo(UniqueId id, | 7657 void HeapProfiler::SetRetainedObjectInfo(UniqueId id, |
7658 RetainedObjectInfo* info) { | 7658 RetainedObjectInfo* info) { |
7659 reinterpret_cast<i::HeapProfiler*>(this)->SetRetainedObjectInfo(id, info); | 7659 reinterpret_cast<i::HeapProfiler*>(this)->SetRetainedObjectInfo(id, info); |
7660 } | 7660 } |
7661 | 7661 |
7662 | 7662 |
| 7663 void HeapProfiler::StartRecordingHeapAllocations() { |
| 7664 reinterpret_cast<i::HeapProfiler*>(this)->StartHeapAllocationsRecording(); |
| 7665 } |
| 7666 |
| 7667 |
| 7668 void HeapProfiler::StopRecordingHeapAllocations() { |
| 7669 reinterpret_cast<i::HeapProfiler*>(this)->StopHeapAllocationsRecording(); |
| 7670 } |
| 7671 |
| 7672 |
7663 v8::Testing::StressType internal::Testing::stress_type_ = | 7673 v8::Testing::StressType internal::Testing::stress_type_ = |
7664 v8::Testing::kStressTypeOpt; | 7674 v8::Testing::kStressTypeOpt; |
7665 | 7675 |
7666 | 7676 |
7667 void Testing::SetStressRunType(Testing::StressType type) { | 7677 void Testing::SetStressRunType(Testing::StressType type) { |
7668 internal::Testing::set_stress_type(type); | 7678 internal::Testing::set_stress_type(type); |
7669 } | 7679 } |
7670 | 7680 |
7671 | 7681 |
7672 int Testing::GetStressRuns() { | 7682 int Testing::GetStressRuns() { |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7892 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); | 7902 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); |
7893 Address callback_address = | 7903 Address callback_address = |
7894 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 7904 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
7895 VMState<EXTERNAL> state(isolate); | 7905 VMState<EXTERNAL> state(isolate); |
7896 ExternalCallbackScope call_scope(isolate, callback_address); | 7906 ExternalCallbackScope call_scope(isolate, callback_address); |
7897 callback(info); | 7907 callback(info); |
7898 } | 7908 } |
7899 | 7909 |
7900 | 7910 |
7901 } } // namespace v8::internal | 7911 } } // namespace v8::internal |
OLD | NEW |