-
Notifications
You must be signed in to change notification settings - Fork 683
Unified the commenting form of the internal properties and removed th… #1040
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unified the commenting form of the internal properties and removed th… #1040
Conversation
* RegExp bytecode array | ||
*/ | ||
ECMA_INTERNAL_PROPERTY_REGEXP_BYTECODE, | ||
ECMA_INTERNAL_PROPERTY_REGEXP_BYTECODE, /**< RegExp bytecode array */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Move this to ECMA_INTERNAL_PROPERTY_CODE_BYTECODE
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've changed the order.
e81513d
to
dda2e28
Compare
@@ -120,59 +120,39 @@ typedef uint32_t ecma_value_t; | |||
typedef enum | |||
{ | |||
ECMA_INTERNAL_PROPERTY_CLASS, /**< [[Class]] */ | |||
ECMA_INTERNAL_PROPERTY_PROTOTYPE, /**< [[Prototype]] */ | |||
ECMA_INTERNAL_PROPERTY_EXTENSIBLE, /**< [[Extensible]] */ | |||
ECMA_INTERNAL_PROPERTY_SCOPE, /**< [[Scope]] */ | |||
ECMA_INTERNAL_PROPERTY_PARAMETERS_MAP, /**< [[ParametersMap]] */ | |||
ECMA_INTERNAL_PROPERTY_CODE_BYTECODE, /**< first part of [[Code]] - compressed pointer to bytecode array */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update comment: pointer to compact bytecode array
dda2e28
to
40017fd
Compare
case ECMA_INTERNAL_PROPERTY_PROTOTYPE: /* the property's value is located in ecma_object_t | ||
* (see above in the routine) */ | ||
case ECMA_INTERNAL_PROPERTY_EXTENSIBLE: /* the property's value is located in ecma_object_t | ||
* (see above in the routine) */ | ||
case ECMA_INTERNAL_PROPERTY__COUNT: /* not a real internal property type, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This case has a very strange placement (to me, at least). Usually, such an "impossible" case comes last in a switch. Anyone else for or against moving this to the end?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lets move it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated.
40017fd
to
8de4b28
Compare
LGTM |
8de4b28
to
0e8a42c
Compare
@@ -322,6 +305,12 @@ ecma_gc_mark_property (ecma_property_t *property_p) /**< property */ | |||
|
|||
break; | |||
} | |||
case ECMA_INTERNAL_PROPERTY__COUNT: /* not a real internal property type, | |||
* but number of the real internal property types */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong indentation
LGTM after my comment is fixed. :) |
…e unused types. JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
0e8a42c
to
3de4170
Compare
Thanks, I've updated this patch. |
…e unused types.
JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com