OLD | NEW |
---|---|
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 /** \mainpage V8 API Reference Guide | 5 /** \mainpage V8 API Reference Guide |
6 * | 6 * |
7 * V8 is Google's open source JavaScript engine. | 7 * V8 is Google's open source JavaScript engine. |
8 * | 8 * |
9 * This set of documents provides reference material generated from the | 9 * This set of documents provides reference material generated from the |
10 * V8 header file, include/v8.h. | 10 * V8 header file, include/v8.h. |
(...skipping 5782 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
5793 * be large enough to hold the number of frames. | 5793 * be large enough to hold the number of frames. |
5794 * \param sample_info The sample info is filled up by the function | 5794 * \param sample_info The sample info is filled up by the function |
5795 * provides number of actual captured stack frames and | 5795 * provides number of actual captured stack frames and |
5796 * the current VM state. | 5796 * the current VM state. |
5797 * \note GetStackSample should only be called when the JS thread is paused or | 5797 * \note GetStackSample should only be called when the JS thread is paused or |
5798 * interrupted. Otherwise the behavior is undefined. | 5798 * interrupted. Otherwise the behavior is undefined. |
5799 */ | 5799 */ |
5800 void GetStackSample(const RegisterState& state, void** frames, | 5800 void GetStackSample(const RegisterState& state, void** frames, |
5801 size_t frames_limit, SampleInfo* sample_info); | 5801 size_t frames_limit, SampleInfo* sample_info); |
5802 | 5802 |
5803 void GetStackSample(RegisterState* state, void** frames, | |
alph
2016/04/27 22:29:20
Why do you need the second one?
Can it once being
| |
5804 size_t frames_limit, SampleInfo* sample_info); | |
5805 | |
5803 /** | 5806 /** |
5804 * Adjusts the amount of registered external memory. Used to give V8 an | 5807 * Adjusts the amount of registered external memory. Used to give V8 an |
5805 * indication of the amount of externally allocated memory that is kept alive | 5808 * indication of the amount of externally allocated memory that is kept alive |
5806 * by JavaScript objects. V8 uses this to decide when to perform global | 5809 * by JavaScript objects. V8 uses this to decide when to perform global |
5807 * garbage collections. Registering externally allocated memory will trigger | 5810 * garbage collections. Registering externally allocated memory will trigger |
5808 * global garbage collections more often than it would otherwise in an attempt | 5811 * global garbage collections more often than it would otherwise in an attempt |
5809 * to garbage collect the JavaScript objects that keep the externally | 5812 * to garbage collect the JavaScript objects that keep the externally |
5810 * allocated memory alive. | 5813 * allocated memory alive. |
5811 * | 5814 * |
5812 * \param change_in_bytes the change in externally allocated memory that is | 5815 * \param change_in_bytes the change in externally allocated memory that is |
(...skipping 2961 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
8774 */ | 8777 */ |
8775 | 8778 |
8776 | 8779 |
8777 } // namespace v8 | 8780 } // namespace v8 |
8778 | 8781 |
8779 | 8782 |
8780 #undef TYPE_CHECK | 8783 #undef TYPE_CHECK |
8781 | 8784 |
8782 | 8785 |
8783 #endif // INCLUDE_V8_H_ | 8786 #endif // INCLUDE_V8_H_ |
OLD | NEW |