Skip to content

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

Conversation

robertsipka
Copy link
Contributor

…e unused types.

JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com

* RegExp bytecode array
*/
ECMA_INTERNAL_PROPERTY_REGEXP_BYTECODE,
ECMA_INTERNAL_PROPERTY_REGEXP_BYTECODE, /**< RegExp bytecode array */
Copy link
Member

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

Copy link
Contributor Author

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.

@robertsipka robertsipka force-pushed the remove_unused_internal_properties branch from e81513d to dda2e28 Compare May 5, 2016 08:33
@@ -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 */
Copy link
Member

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

@LaszloLango LaszloLango added style Related to coding style minor labels May 5, 2016
@robertsipka robertsipka force-pushed the remove_unused_internal_properties branch from dda2e28 to 40017fd Compare May 5, 2016 09:59
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,
Copy link
Member

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?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets move it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

@robertsipka robertsipka force-pushed the remove_unused_internal_properties branch from 40017fd to 8de4b28 Compare May 5, 2016 11:26
@zherczeg
Copy link
Member

zherczeg commented May 5, 2016

LGTM

@robertsipka robertsipka force-pushed the remove_unused_internal_properties branch from 8de4b28 to 0e8a42c Compare May 5, 2016 11:59
@@ -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 */
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wrong indentation

@LaszloLango
Copy link
Contributor

LGTM after my comment is fixed. :)

…e unused types.

JerryScript-DCO-1.0-Signed-off-by: Robert Sipka rsipka.uszeged@partner.samsung.com
@robertsipka robertsipka force-pushed the remove_unused_internal_properties branch from 0e8a42c to 3de4170 Compare May 5, 2016 13:06
@robertsipka
Copy link
Contributor Author

Thanks, I've updated this patch.

@LaszloLango LaszloLango merged commit 3de4170 into jerryscript-project:master May 5, 2016
@robertsipka robertsipka deleted the remove_unused_internal_properties branch November 24, 2016 08:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
minor style Related to coding style
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants