author Sean Stangl <>
Tue, 14 May 2019 16:16:20 +0000
changeset 532647 bfa4ce8a0ef6b464e349f252b1f8e46cbf9bba11
parent 424978 5b228a65aa8b11ccd5bab4b208167f180a789b44
permissions -rwxr-xr-x
Bug 1551339 - Update VIXL to recent Utils and Globals files. r=nbp This is preliminary work to allowing encoding of JSCVTFP, the instruction that exists on new AArch64 devices that greatly speeds up websites that use floating-point math. Differential Revision:

# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at

if [ $# = 0 ] ; then
    echo "usage: ./ ots-git-directory"
    exit 1

echo "Updating LICENSE..."
cp $1/LICENSE .

echo "Updating src..."
cd src
ls | fgrep -v | xargs rm -rf
cp -r $1/src/* .
cd ..

echo "Updating include..."
rm -rf include/
cp -r $1/include .

echo "Updating tests..."
rm -rf tests/*
mkdir -p tests
cp -r $1/tests/*.cc tests

echo "Updating README.mozilla..."
REVISION=`cd $1; git log | head -1 | sed "s/commit //"`
VERSION=`cd $1; git describe | cut -d '-' -f 1 | sed 's/v//'`
sed -e "s/\(Current revision: \).*/\1$REVISION \($VERSION\)/" README.mozilla > README.tmp
mv README.tmp README.mozilla

echo "Applying ots-visibility.patch..."
patch -p3 < ots-visibility.patch

echo "Applying ots-lz4.patch..."
patch -p3 < ots-lz4.patch