-
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
Merged
LaszloLango
merged 1 commit into
jerryscript-project:master
from
robertsipka:remove_unused_internal_properties
May 5, 2016
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 */ | ||
ECMA_INTERNAL_PROPERTY_CODE_BYTECODE, /**< pointer to compact bytecode array */ | ||
ECMA_INTERNAL_PROPERTY_REGEXP_BYTECODE, /**< pointer to RegExp bytecode array */ | ||
|
||
ECMA_INTERNAL_PROPERTY_NATIVE_CODE, /**< native handler location descriptor */ | ||
ECMA_INTERNAL_PROPERTY_NATIVE_HANDLE, /**< native handle associated with an object */ | ||
ECMA_INTERNAL_PROPERTY_FREE_CALLBACK, /**< object's native free callback */ | ||
ECMA_INTERNAL_PROPERTY_PRIMITIVE_STRING_VALUE, /**< [[Primitive value]] for String objects */ | ||
ECMA_INTERNAL_PROPERTY_PRIMITIVE_NUMBER_VALUE, /**< [[Primitive value]] for Number objects */ | ||
ECMA_INTERNAL_PROPERTY_PRIMITIVE_BOOLEAN_VALUE, /**< [[Primitive value]] for Boolean objects */ | ||
|
||
/** Part of an array, that is indexed by numbers */ | ||
ECMA_INTERNAL_PROPERTY_NUMBER_INDEXED_ARRAY_VALUES, | ||
|
||
/** Part of an array, that is indexed by strings */ | ||
ECMA_INTERNAL_PROPERTY_STRING_INDEXED_ARRAY_VALUES, | ||
|
||
/** Implementation-defined identifier of built-in object */ | ||
ECMA_INTERNAL_PROPERTY_BUILT_IN_ID, | ||
|
||
/** Implementation-defined identifier of built-in routine | ||
that corresponds to a built-in function object | ||
([[Built-in routine's description]]) */ | ||
ECMA_INTERNAL_PROPERTY_BUILT_IN_ROUTINE_DESC, | ||
|
||
/** Identifier of implementation-defined extension object */ | ||
ECMA_INTERNAL_PROPERTY_EXTENSION_ID, | ||
|
||
/** Bound function internal properties **/ | ||
ECMA_INTERNAL_PROPERTY_BOUND_FUNCTION_TARGET_FUNCTION, | ||
ECMA_INTERNAL_PROPERTY_BOUND_FUNCTION_BOUND_THIS, | ||
ECMA_INTERNAL_PROPERTY_BOUND_FUNCTION_BOUND_ARGS, | ||
|
||
/** | ||
* Bit-mask of non-instantiated built-in's properties (bits 0-31) | ||
*/ | ||
ECMA_INTERNAL_PROPERTY_NON_INSTANTIATED_BUILT_IN_MASK_0_31, | ||
ECMA_INTERNAL_PROPERTY_BUILT_IN_ID, /**< Implementation-defined identifier of built-in object */ | ||
|
||
/** | ||
* Bit-mask of non-instantiated built-in's properties (bits 32-63) | ||
*/ | ||
ECMA_INTERNAL_PROPERTY_NON_INSTANTIATED_BUILT_IN_MASK_32_63, | ||
ECMA_INTERNAL_PROPERTY_BUILT_IN_ROUTINE_DESC, /**< Implementation-defined identifier of built-in routine | ||
* that corresponds to a built-in function object | ||
* ([[Built-in routine's description]]) | ||
*/ | ||
|
||
/** | ||
* RegExp bytecode array | ||
*/ | ||
ECMA_INTERNAL_PROPERTY_REGEXP_BYTECODE, | ||
ECMA_INTERNAL_PROPERTY_NON_INSTANTIATED_BUILT_IN_MASK_0_31, /**< Bit-mask of non-instantiated | ||
* built-in's properties (bits 0-31) | ||
*/ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we still need these two numbers? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes, the try_to_instantiate_property routines are using this properties. |
||
|
||
/** | ||
* Number of internal properties' types | ||
*/ | ||
ECMA_INTERNAL_PROPERTY__COUNT | ||
ECMA_INTERNAL_PROPERTY_NON_INSTANTIATED_BUILT_IN_MASK_32_63, /**< Bit-mask of non-instantiated | ||
* built-in's properties (bits 32-63) | ||
*/ | ||
|
||
ECMA_INTERNAL_PROPERTY__COUNT /**< Number of internal properties' types */ | ||
} ecma_internal_property_id_t; | ||
|
||
/** | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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 would put ECMA_INTERNAL_PROPERTY_BUILT_IN_ROUTINE_DESC before ECMA_INTERNAL_PROPERTY_NON_INSTANTIATED_BUILT_IN_MASK_0_31
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 updated the patch based on your suggestion.