-
Notifications
You must be signed in to change notification settings - Fork 675
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
Add custom dispatcher to Arraybuffer & Arraybuffer_prototype #4651
base: master
Are you sure you want to change the base?
Conversation
jerry-core/ecma/builtin-objects/ecma-builtin-arraybuffer-prototype.c
Outdated
Show resolved
Hide resolved
Please can you change the commit title to |
LGTM (informal) |
const ecma_value_t arguments_list_p[], /**< list of arguments | ||
* passed to routine */ | ||
uint32_t arguments_number) /**< length of arguments' list */ | ||
{ |
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.
The checks from 108-119 lines (numbering based on the new line counts) seems to be similar in both methods. AFAIK we could extract those changes to this place, just before the switch.
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 second, move the isArrayBuffer validation from the methods to the dispatcher.
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 seems still mising.
Please rebase. |
c002d5e
to
0ada526
Compare
jerry-core/ecma/builtin-objects/ecma-builtin-arraybuffer-prototype.c
Outdated
Show resolved
Hide resolved
enum | ||
{ | ||
ECMA_BUILTIN_ARRAYBUFFER_PROTOTYPE_ROUTINE_START = 0, | ||
ECMA_BUILTIN_ARRAYBUFFER_PROTOTYPE_BYTELENGTH_GETTER, |
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.
Missing comments.
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.
Which comments are missing?
{ | ||
ECMA_BUILTIN_ARRAYBUFFER_ROUTINE_START = 0, | ||
ECMA_BUILTIN_ARRAYBUFFER_OBJECT_IS_VIEW, | ||
ECMA_BUILTIN_ARRAYBUFFER_SPECIES_GET, |
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.
Missing comments
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.
Which comments are missing?
JerryScript-DCO-1.0-Signed-off-by: Orkenyi Virag orkvi@inf.u-szeged.hu
JerryScript-DCO-1.0-Signed-off-by: Virag Orkenyi orkvi@inf.u-szeged.hu