Fix comments on AccessorPair.

R=ishell@chromium.org

Bug: 
Change-Id: I7175176900c95fb676f633b405fffd5a55ffa4b5
Reviewed-on: https://chromium-review.googlesource.com/635323
Reviewed-by: Igor Sheludko <ishell@chromium.org>
Commit-Queue: Georg Neis <neis@chromium.org>
Cr-Commit-Position: refs/heads/master@{#47604}
This commit is contained in:
Georg Neis 2017-08-25 12:40:07 +02:00 committed by Commit Bot
parent 8a7ce927a6
commit fdecfd7f5c

View File

@ -6742,13 +6742,12 @@ class AccessorInfo: public Struct {
DISALLOW_IMPLICIT_CONSTRUCTORS(AccessorInfo);
};
// Support for JavaScript accessors: A pair of a getter and a setter. Each
// 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
// * the hole: an accessor which has not been set
// * a pointer to a map: a transition used to ensure map sharing
// * null: an accessor which has not been set
class AccessorPair: public Struct {
public:
DECL_ACCESSORS(getter, Object)
@ -6761,7 +6760,7 @@ class AccessorPair: public Struct {
inline Object* get(AccessorComponent component);
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,
AccessorComponent component);