Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(487)

Side by Side Diff: include/v8.h

Issue 753373003: Add GetIdentityHash to v8::Name object API (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Addressed comments Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 1804 matching lines...) Expand 10 before | Expand all | Expand 10 after
1815 bool Value() const; 1815 bool Value() const;
1816 V8_INLINE static Handle<Boolean> New(Isolate* isolate, bool value); 1816 V8_INLINE static Handle<Boolean> New(Isolate* isolate, bool value);
1817 }; 1817 };
1818 1818
1819 1819
1820 /** 1820 /**
1821 * A superclass for symbols and strings. 1821 * A superclass for symbols and strings.
1822 */ 1822 */
1823 class V8_EXPORT Name : public Primitive { 1823 class V8_EXPORT Name : public Primitive {
1824 public: 1824 public:
1825 /**
1826 * Returns the identity hash for this object. The current implementation
1827 * uses an inline property on the object to store the identity hash.
1828 *
1829 * The return value will never be 0. Also, it is not guaranteed to be
1830 * unique.
1831 */
1832 int GetIdentityHash();
1833
1825 V8_INLINE static Name* Cast(v8::Value* obj); 1834 V8_INLINE static Name* Cast(v8::Value* obj);
1826 private: 1835 private:
1827 static void CheckCast(v8::Value* obj); 1836 static void CheckCast(v8::Value* obj);
1828 }; 1837 };
1829 1838
1830 1839
1831 /** 1840 /**
1832 * A JavaScript string value (ECMA-262, 4.3.17). 1841 * A JavaScript string value (ECMA-262, 4.3.17).
1833 */ 1842 */
1834 class V8_EXPORT String : public Name { 1843 class V8_EXPORT String : public Name {
(...skipping 5624 matching lines...) Expand 10 before | Expand all | Expand 10 after
7459 */ 7468 */
7460 7469
7461 7470
7462 } // namespace v8 7471 } // namespace v8
7463 7472
7464 7473
7465 #undef TYPE_CHECK 7474 #undef TYPE_CHECK
7466 7475
7467 7476
7468 #endif // V8_H_ 7477 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698