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

Side by Side Diff: include/v8.h

Issue 2889863002: Allow embedder to set promise internal field count (Closed)
Patch Set: More BUILD.gn fixes Created 3 years, 7 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 | « gypfiles/features.gypi ('k') | src/bootstrapper.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 3838 matching lines...) Expand 10 before | Expand all | Expand 10 after
3849 3849
3850 ScriptOrigin GetScriptOrigin() const; 3850 ScriptOrigin GetScriptOrigin() const;
3851 V8_INLINE static Function* Cast(Value* obj); 3851 V8_INLINE static Function* Cast(Value* obj);
3852 static const int kLineOffsetNotFound; 3852 static const int kLineOffsetNotFound;
3853 3853
3854 private: 3854 private:
3855 Function(); 3855 Function();
3856 static void CheckCast(Value* obj); 3856 static void CheckCast(Value* obj);
3857 }; 3857 };
3858 3858
3859 #ifndef V8_PROMISE_INTERNAL_FIELD_COUNT
3860 // The number of required internal fields can be defined by embedder.
3861 #define V8_PROMISE_INTERNAL_FIELD_COUNT 0
3862 #endif
3859 3863
3860 /** 3864 /**
3861 * An instance of the built-in Promise constructor (ES6 draft). 3865 * An instance of the built-in Promise constructor (ES6 draft).
3862 */ 3866 */
3863 class V8_EXPORT Promise : public Object { 3867 class V8_EXPORT Promise : public Object {
3864 public: 3868 public:
3865 /** 3869 /**
3866 * State of the promise. Each value corresponds to one of the possible values 3870 * State of the promise. Each value corresponds to one of the possible values
3867 * of the [[PromiseState]] field. 3871 * of the [[PromiseState]] field.
3868 */ 3872 */
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
3930 */ 3934 */
3931 Local<Value> Result(); 3935 Local<Value> Result();
3932 3936
3933 /** 3937 /**
3934 * Returns the value of the [[PromiseState]] field. 3938 * Returns the value of the [[PromiseState]] field.
3935 */ 3939 */
3936 PromiseState State(); 3940 PromiseState State();
3937 3941
3938 V8_INLINE static Promise* Cast(Value* obj); 3942 V8_INLINE static Promise* Cast(Value* obj);
3939 3943
3944 static const int kEmbedderFieldCount = V8_PROMISE_INTERNAL_FIELD_COUNT;
3945
3940 private: 3946 private:
3941 Promise(); 3947 Promise();
3942 static void CheckCast(Value* obj); 3948 static void CheckCast(Value* obj);
3943 }; 3949 };
3944 3950
3945 /** 3951 /**
3946 * An instance of a Property Descriptor, see Ecma-262 6.2.4. 3952 * An instance of a Property Descriptor, see Ecma-262 6.2.4.
3947 * 3953 *
3948 * Properties in a descriptor are present or absent. If you do not set 3954 * Properties in a descriptor are present or absent. If you do not set
3949 * `enumerable`, `configurable`, and `writable`, they are absent. If `value`, 3955 * `enumerable`, `configurable`, and `writable`, they are absent. If `value`,
(...skipping 6151 matching lines...) Expand 10 before | Expand all | Expand 10 after
10101 */ 10107 */
10102 10108
10103 10109
10104 } // namespace v8 10110 } // namespace v8
10105 10111
10106 10112
10107 #undef TYPE_CHECK 10113 #undef TYPE_CHECK
10108 10114
10109 10115
10110 #endif // INCLUDE_V8_H_ 10116 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « gypfiles/features.gypi ('k') | src/bootstrapper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698