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

Side by Side Diff: include/v8.h

Issue 2657933003: Exposes Symbol.toPrimitive in C++ APIs as Symbol::GetToPrimitive. (Closed)
Patch Set: Addressed a review comment. Created 3 years, 10 months 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 2692 matching lines...) Expand 10 before | Expand all | Expand 10 after
2703 // To minimize the potential for clashes, use qualified names as keys. 2703 // To minimize the potential for clashes, use qualified names as keys.
2704 static Local<Symbol> For(Isolate *isolate, Local<String> name); 2704 static Local<Symbol> For(Isolate *isolate, Local<String> name);
2705 2705
2706 // Retrieve a global symbol. Similar to |For|, but using a separate 2706 // Retrieve a global symbol. Similar to |For|, but using a separate
2707 // registry that is not accessible by (and cannot clash with) JavaScript code. 2707 // registry that is not accessible by (and cannot clash with) JavaScript code.
2708 static Local<Symbol> ForApi(Isolate *isolate, Local<String> name); 2708 static Local<Symbol> ForApi(Isolate *isolate, Local<String> name);
2709 2709
2710 // Well-known symbols 2710 // Well-known symbols
2711 static Local<Symbol> GetIterator(Isolate* isolate); 2711 static Local<Symbol> GetIterator(Isolate* isolate);
2712 static Local<Symbol> GetUnscopables(Isolate* isolate); 2712 static Local<Symbol> GetUnscopables(Isolate* isolate);
2713 static Local<Symbol> GetToPrimitive(Isolate* isolate);
2713 static Local<Symbol> GetToStringTag(Isolate* isolate); 2714 static Local<Symbol> GetToStringTag(Isolate* isolate);
2714 static Local<Symbol> GetIsConcatSpreadable(Isolate* isolate); 2715 static Local<Symbol> GetIsConcatSpreadable(Isolate* isolate);
2715 2716
2716 V8_INLINE static Symbol* Cast(Value* obj); 2717 V8_INLINE static Symbol* Cast(Value* obj);
2717 2718
2718 private: 2719 private:
2719 Symbol(); 2720 Symbol();
2720 static void CheckCast(Value* obj); 2721 static void CheckCast(Value* obj);
2721 }; 2722 };
2722 2723
(...skipping 7133 matching lines...) Expand 10 before | Expand all | Expand 10 after
9856 */ 9857 */
9857 9858
9858 9859
9859 } // namespace v8 9860 } // namespace v8
9860 9861
9861 9862
9862 #undef TYPE_CHECK 9863 #undef TYPE_CHECK
9863 9864
9864 9865
9865 #endif // INCLUDE_V8_H_ 9866 #endif // INCLUDE_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