Closed Bug 1636424 Opened 6 years ago Closed 6 years ago

Use standard/MFBT functions in DataView

Categories

(Core :: JavaScript: Standard Library, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: anba, Assigned: anba)

Details

Attachments

(3 files)

  • DataToRepType can be replaced with mozilla::UnsignedStdintTypeForSize
  • MOZ_ALIGNOF can be replaced with alignof
  • needToSwapBytes can be replaced with mozilla::NativeEndian
Pushed by dluca@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/fcf44397b223 Part 1: Use UnsignedStdintTypeForSize to determine the unsigned integer representation. r=jandem https://hg.mozilla.org/integration/autoland/rev/be7550014c77 Part 2: Replace MOZ_ALIGNOF with alignof. r=jandem https://hg.mozilla.org/integration/autoland/rev/d50ab362c108 Part 3: Use mozilla::NativeEndian to swap bytes in DataViews. r=jandem
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: