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 1595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1606 * Returns whether or not the associated function is called as a | 1606 * Returns whether or not the associated function is called as a |
1607 * constructor via "new". | 1607 * constructor via "new". |
1608 */ | 1608 */ |
1609 bool IsConstructor() const; | 1609 bool IsConstructor() const; |
1610 }; | 1610 }; |
1611 | 1611 |
1612 | 1612 |
1613 // A StateTag represents a possible state of the VM. | 1613 // A StateTag represents a possible state of the VM. |
1614 enum StateTag { JS, GC, COMPILER, OTHER, EXTERNAL, IDLE }; | 1614 enum StateTag { JS, GC, COMPILER, OTHER, EXTERNAL, IDLE }; |
1615 | 1615 |
1616 | |
1617 // A RegisterState represents the current state of registers used | 1616 // A RegisterState represents the current state of registers used |
1618 // by the sampling profiler API. | 1617 // by the sampling profiler API. |
1619 struct RegisterState { | 1618 struct RegisterState { |
1620 RegisterState() : pc(NULL), sp(NULL), fp(NULL) {} | 1619 RegisterState() : pc(nullptr), sp(nullptr), fp(nullptr) {} |
1621 void* pc; // Instruction pointer. | 1620 void* pc; // Instruction pointer. |
1622 void* sp; // Stack pointer. | 1621 void* sp; // Stack pointer. |
1623 void* fp; // Frame pointer. | 1622 void* fp; // Frame pointer. |
1624 }; | 1623 }; |
1625 | 1624 |
1626 | |
1627 // The output structure filled up by GetStackSample API function. | 1625 // The output structure filled up by GetStackSample API function. |
1628 struct SampleInfo { | 1626 struct SampleInfo { |
1629 size_t frames_count; | 1627 size_t frames_count; // Number of frames collected. |
1630 StateTag vm_state; | 1628 StateTag vm_state; // Current VM state. |
| 1629 void* external_callback_entry; // External callback address if VM is |
| 1630 // executing an external callback. |
1631 }; | 1631 }; |
1632 | 1632 |
1633 /** | 1633 /** |
1634 * A JSON Parser and Stringifier. | 1634 * A JSON Parser and Stringifier. |
1635 */ | 1635 */ |
1636 class V8_EXPORT JSON { | 1636 class V8_EXPORT JSON { |
1637 public: | 1637 public: |
1638 /** | 1638 /** |
1639 * Tries to parse the string |json_string| and returns it as value if | 1639 * Tries to parse the string |json_string| and returns it as value if |
1640 * successful. | 1640 * successful. |
(...skipping 7172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8813 */ | 8813 */ |
8814 | 8814 |
8815 | 8815 |
8816 } // namespace v8 | 8816 } // namespace v8 |
8817 | 8817 |
8818 | 8818 |
8819 #undef TYPE_CHECK | 8819 #undef TYPE_CHECK |
8820 | 8820 |
8821 | 8821 |
8822 #endif // INCLUDE_V8_H_ | 8822 #endif // INCLUDE_V8_H_ |
OLD | NEW |