| 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 1628 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1639 * Returns whether or not the associated function is compiled via a call to | 1639 * Returns whether or not the associated function is compiled via a call to |
| 1640 * eval(). | 1640 * eval(). |
| 1641 */ | 1641 */ |
| 1642 bool IsEval() const; | 1642 bool IsEval() const; |
| 1643 | 1643 |
| 1644 /** | 1644 /** |
| 1645 * Returns whether or not the associated function is called as a | 1645 * Returns whether or not the associated function is called as a |
| 1646 * constructor via "new". | 1646 * constructor via "new". |
| 1647 */ | 1647 */ |
| 1648 bool IsConstructor() const; | 1648 bool IsConstructor() const; |
| 1649 |
| 1650 /** |
| 1651 * Returns whether or not the associated functions is defined in wasm. |
| 1652 */ |
| 1653 bool IsWasm() const; |
| 1649 }; | 1654 }; |
| 1650 | 1655 |
| 1651 | 1656 |
| 1652 // A StateTag represents a possible state of the VM. | 1657 // A StateTag represents a possible state of the VM. |
| 1653 enum StateTag { JS, GC, COMPILER, OTHER, EXTERNAL, IDLE }; | 1658 enum StateTag { JS, GC, COMPILER, OTHER, EXTERNAL, IDLE }; |
| 1654 | 1659 |
| 1655 // A RegisterState represents the current state of registers used | 1660 // A RegisterState represents the current state of registers used |
| 1656 // by the sampling profiler API. | 1661 // by the sampling profiler API. |
| 1657 struct RegisterState { | 1662 struct RegisterState { |
| 1658 RegisterState() : pc(nullptr), sp(nullptr), fp(nullptr) {} | 1663 RegisterState() : pc(nullptr), sp(nullptr), fp(nullptr) {} |
| (...skipping 8336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9995 */ | 10000 */ |
| 9996 | 10001 |
| 9997 | 10002 |
| 9998 } // namespace v8 | 10003 } // namespace v8 |
| 9999 | 10004 |
| 10000 | 10005 |
| 10001 #undef TYPE_CHECK | 10006 #undef TYPE_CHECK |
| 10002 | 10007 |
| 10003 | 10008 |
| 10004 #endif // INCLUDE_V8_H_ | 10009 #endif // INCLUDE_V8_H_ |
| OLD | NEW |