Skip to content

Conversation

@orkvi
Copy link
Contributor

@orkvi orkvi commented Apr 13, 2021

JerryScript-DCO-1.0-Signed-off-by: Virag Orkenyi [email protected]

@kisbg
Copy link

kisbg commented Apr 15, 2021

Please can you change the commit title to Add custom dispatcher to Arraybuffer & Arraybuffer_prototype

@orkvi orkvi changed the title Add costum dispatcher to Arraybuffer & Arraybuffer_prototype Add custom dispatcher to Arraybuffer & Arraybuffer_prototype Apr 15, 2021
@kisbg
Copy link

kisbg commented Apr 16, 2021

LGTM (informal)

const ecma_value_t arguments_list_p[], /**< list of arguments
* passed to routine */
uint32_t arguments_number) /**< length of arguments' list */
{
Copy link
Contributor

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.

Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

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

This seems still mising.

@rerobika
Copy link
Member

Please rebase.

@orkvi orkvi force-pushed the arraybuffer branch 3 times, most recently from c002d5e to 0ada526 Compare October 27, 2021 07:11
enum
{
ECMA_BUILTIN_ARRAYBUFFER_PROTOTYPE_ROUTINE_START = 0,
ECMA_BUILTIN_ARRAYBUFFER_PROTOTYPE_BYTELENGTH_GETTER,
Copy link
Member

Choose a reason for hiding this comment

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

Missing comments.

Copy link
Contributor Author

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,
Copy link
Member

Choose a reason for hiding this comment

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

Missing comments

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Which comments are missing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants