[typedarray] Reduce generated code size of TA.map
We don't need to generate TypedArraySpeciesCreate code for each type case because TypedArraySpeciesCreate also handles each case, so it generates duplicated codes. Thus, create a result object once before switching to each type case. Also, replace ToNumber with ToNumber_Inline. This CL saves about 8000 bytes of generated code size. Change-Id: I014535b0ef4b3d2a50a37cdc2b6cb4e83f6c2f17 Reviewed-on: https://chromium-review.googlesource.com/910755Reviewed-by: Peter Marshall <petermarshall@chromium.org> Commit-Queue: Peter Marshall <petermarshall@chromium.org> Cr-Commit-Position: refs/heads/master@{#51213}
Showing
Please
register
or
sign in
to comment