Commit fdecfd7f authored by Georg Neis's avatar Georg Neis Committed by Commit Bot

Fix comments on AccessorPair.

R=ishell@chromium.org

Bug: 
Change-Id: I7175176900c95fb676f633b405fffd5a55ffa4b5
Reviewed-on: https://chromium-review.googlesource.com/635323Reviewed-by: 's avatarIgor Sheludko <ishell@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#47604}
parent 8a7ce927
...@@ -6742,13 +6742,12 @@ class AccessorInfo: public Struct { ...@@ -6742,13 +6742,12 @@ class AccessorInfo: public Struct {
DISALLOW_IMPLICIT_CONSTRUCTORS(AccessorInfo); DISALLOW_IMPLICIT_CONSTRUCTORS(AccessorInfo);
}; };
// Support for JavaScript accessors: A pair of a getter and a setter. Each // Support for JavaScript accessors: A pair of a getter and a setter. Each
// accessor can either be // accessor can either be
// * a pointer to a JavaScript function or proxy: a real accessor // * a JavaScript function or proxy: a real accessor
// * a FunctionTemplateInfo: a real (lazy) accessor
// * undefined: considered an accessor by the spec, too, strangely enough // * undefined: considered an accessor by the spec, too, strangely enough
// * the hole: an accessor which has not been set // * null: an accessor which has not been set
// * a pointer to a map: a transition used to ensure map sharing
class AccessorPair: public Struct { class AccessorPair: public Struct {
public: public:
DECL_ACCESSORS(getter, Object) DECL_ACCESSORS(getter, Object)
...@@ -6761,7 +6760,7 @@ class AccessorPair: public Struct { ...@@ -6761,7 +6760,7 @@ class AccessorPair: public Struct {
inline Object* get(AccessorComponent component); inline Object* get(AccessorComponent component);
inline void set(AccessorComponent component, Object* value); inline void set(AccessorComponent component, Object* value);
// Note: Returns undefined instead in case of a hole. // Note: Returns undefined if the component is not set.
static Handle<Object> GetComponent(Handle<AccessorPair> accessor_pair, static Handle<Object> GetComponent(Handle<AccessorPair> accessor_pair,
AccessorComponent component); AccessorComponent component);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment