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 7897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7908 GetMemorySizeUsedByProfiler(); | 7908 GetMemorySizeUsedByProfiler(); |
7909 } | 7909 } |
7910 | 7910 |
7911 | 7911 |
7912 void HeapProfiler::SetRetainedObjectInfo(UniqueId id, | 7912 void HeapProfiler::SetRetainedObjectInfo(UniqueId id, |
7913 RetainedObjectInfo* info) { | 7913 RetainedObjectInfo* info) { |
7914 reinterpret_cast<i::HeapProfiler*>(this)->SetRetainedObjectInfo(id, info); | 7914 reinterpret_cast<i::HeapProfiler*>(this)->SetRetainedObjectInfo(id, info); |
7915 } | 7915 } |
7916 | 7916 |
7917 | 7917 |
| 7918 void HeapProfiler::StartRecordingHeapAllocations() { |
| 7919 reinterpret_cast<i::HeapProfiler*>(this)->StartHeapAllocationsRecording(); |
| 7920 } |
| 7921 |
| 7922 |
| 7923 void HeapProfiler::StopRecordingHeapAllocations() { |
| 7924 reinterpret_cast<i::HeapProfiler*>(this)->StopHeapAllocationsRecording(); |
| 7925 } |
| 7926 |
| 7927 |
7918 v8::Testing::StressType internal::Testing::stress_type_ = | 7928 v8::Testing::StressType internal::Testing::stress_type_ = |
7919 v8::Testing::kStressTypeOpt; | 7929 v8::Testing::kStressTypeOpt; |
7920 | 7930 |
7921 | 7931 |
7922 void Testing::SetStressRunType(Testing::StressType type) { | 7932 void Testing::SetStressRunType(Testing::StressType type) { |
7923 internal::Testing::set_stress_type(type); | 7933 internal::Testing::set_stress_type(type); |
7924 } | 7934 } |
7925 | 7935 |
7926 | 7936 |
7927 int Testing::GetStressRuns() { | 7937 int Testing::GetStressRuns() { |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8173 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); | 8183 Isolate* isolate = reinterpret_cast<Isolate*>(info.GetIsolate()); |
8174 Address callback_address = | 8184 Address callback_address = |
8175 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); | 8185 reinterpret_cast<Address>(reinterpret_cast<intptr_t>(callback)); |
8176 VMState<EXTERNAL> state(isolate); | 8186 VMState<EXTERNAL> state(isolate); |
8177 ExternalCallbackScope call_scope(isolate, callback_address); | 8187 ExternalCallbackScope call_scope(isolate, callback_address); |
8178 return callback(info); | 8188 return callback(info); |
8179 } | 8189 } |
8180 | 8190 |
8181 | 8191 |
8182 } } // namespace v8::internal | 8192 } } // namespace v8::internal |
OLD | NEW |