@@ -1731,6 +1731,14 @@ class Function : public Object {
1731
1731
V8EXPORT void SetName (Handle <String> name);
1732
1732
V8EXPORT Handle <Value> GetName () const ;
1733
1733
1734
+ /* *
1735
+ * Name inferred from variable or property assignment of this function.
1736
+ * Used to facilitate debugging and profiling of JavaScript code written
1737
+ * in an OO style, where many functions are anonymous but are assigned
1738
+ * to object properties.
1739
+ */
1740
+ V8EXPORT Handle <Value> GetInferredName () const ;
1741
+
1734
1742
/* *
1735
1743
* Returns zero based line number of function body and
1736
1744
* kLineOffsetNotFound if no information available.
@@ -2717,7 +2725,7 @@ class RetainedObjectInfo;
2717
2725
* default isolate is implicitly created and entered. The embedder
2718
2726
* can create additional isolates and use them in parallel in multiple
2719
2727
* threads. An isolate can be entered by at most one thread at any
2720
- * given time. The Locker/Unlocker API can be used to synchronize.
2728
+ * given time. The Locker/Unlocker API must be used to synchronize.
2721
2729
*/
2722
2730
class V8EXPORT Isolate {
2723
2731
public:
@@ -3559,7 +3567,9 @@ class V8EXPORT Context {
3559
3567
* accessing handles or holding onto object pointers obtained
3560
3568
* from V8 handles while in the particular V8 isolate. It is up
3561
3569
* to the user of V8 to ensure (perhaps with locking) that this
3562
- * constraint is not violated.
3570
+ * constraint is not violated. In addition to any other synchronization
3571
+ * mechanism that may be used, the v8::Locker and v8::Unlocker classes
3572
+ * must be used to signal thead switches to V8.
3563
3573
*
3564
3574
* v8::Locker is a scoped lock object. While it's
3565
3575
* active (i.e. between its construction and destruction) the current thread is
0 commit comments