Bug 1501155 - Part 2: Use WTF-8 as BinAST string encoding. r=Yoric
authorTooru Fujisawa <arai_a@mac.com>
Wed, 28 Nov 2018 14:16:29 +0900
changeset 504894 b1a6e2052ea19b8fbf7fde7e3aa25629ff5163be
parent 504893 4ba2f019ce6d420275d088749482cf77f35d4bf4
child 504895 4b9f8acdf5f780ed38490f40a74bb33cac3f264d
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersYoric
bugs1501155
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1501155 - Part 2: Use WTF-8 as BinAST string encoding. r=Yoric
js/src/frontend/BinTokenReaderMultipart.cpp
--- a/js/src/frontend/BinTokenReaderMultipart.cpp
+++ b/js/src/frontend/BinTokenReaderMultipart.cpp
@@ -169,17 +169,17 @@ BinTokenReaderMultipart::readHeader()
         if (current_ + byteLen > stop_ || current_ + byteLen < current_) {
             return raiseError("Invalid byte length in individual string");
         }
 
         // Check null string.
         if (byteLen == 2 && *current_ == 255 && *(current_ + 1) == 0) {
             atom = nullptr;
         } else {
-            BINJS_TRY_VAR(atom, AtomizeUTF8Chars(cx_, (const char*)current_, byteLen));
+            BINJS_TRY_VAR(atom, AtomizeWTF8Chars(cx_, (const char*)current_, byteLen));
         }
 
         metadata->getAtom(i) = atom;
 
         // Populate `slicesTable_`: i => slice
         new (&metadata->getSlice(i)) Chars((const char*)current_, byteLen);
 
         current_ += byteLen;