diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2014-03-31 14:38:28 +0200 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2014-04-02 00:05:24 +0400 |
commit | 67e078094b53861a5aa7e9354e33487d0bd4f73b (patch) | |
tree | 09a706adee1ddb59c1507ee3320de9cb6896135b /deps/v8/src/unicode.cc | |
parent | f984555d47298cfb01b3e55c2861066379306fc3 (diff) | |
download | node-67e078094b53861a5aa7e9354e33487d0bd4f73b.tar.gz |
deps: upgrade v8 to 3.25.30
Diffstat (limited to 'deps/v8/src/unicode.cc')
-rw-r--r-- | deps/v8/src/unicode.cc | 40 |
1 files changed, 8 insertions, 32 deletions
diff --git a/deps/v8/src/unicode.cc b/deps/v8/src/unicode.cc index bd3246778..2bef7ab20 100644 --- a/deps/v8/src/unicode.cc +++ b/deps/v8/src/unicode.cc @@ -25,7 +25,7 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // -// This file was generated at 2012-03-06 09:55:58.934483 +// This file was generated at 2014-02-07 15:31:16.733174 #include "unicode-inl.h" #include <stdlib.h> @@ -710,28 +710,6 @@ bool Letter::Is(uchar c) { } -// Space: point.category == 'Zs' - -static const uint16_t kSpaceTable0Size = 4; -static const int32_t kSpaceTable0[4] = { - 32, 160, 5760, 6158 }; // NOLINT -static const uint16_t kSpaceTable1Size = 5; -static const int32_t kSpaceTable1[5] = { - 1073741824, 10, 47, 95, 4096 }; // NOLINT -bool Space::Is(uchar c) { - int chunk_index = c >> 13; - switch (chunk_index) { - case 0: return LookupPredicate(kSpaceTable0, - kSpaceTable0Size, - c); - case 1: return LookupPredicate(kSpaceTable1, - kSpaceTable1Size, - c); - default: return false; - } -} - - // Number: point.category == 'Nd' static const uint16_t kNumberTable0Size = 56; @@ -767,14 +745,14 @@ bool Number::Is(uchar c) { } -// WhiteSpace: 'Ws' in point.properties +// WhiteSpace: point.category == 'Zs' -static const uint16_t kWhiteSpaceTable0Size = 7; -static const int32_t kWhiteSpaceTable0[7] = { - 1073741833, 13, 32, 133, 160, 5760, 6158 }; // NOLINT -static const uint16_t kWhiteSpaceTable1Size = 7; -static const int32_t kWhiteSpaceTable1[7] = { - 1073741824, 10, 1073741864, 41, 47, 95, 4096 }; // NOLINT +static const uint16_t kWhiteSpaceTable0Size = 4; +static const int32_t kWhiteSpaceTable0[4] = { + 32, 160, 5760, 6158 }; // NOLINT +static const uint16_t kWhiteSpaceTable1Size = 5; +static const int32_t kWhiteSpaceTable1[5] = { + 1073741824, 10, 47, 95, 4096 }; // NOLINT bool WhiteSpace::Is(uchar c) { int chunk_index = c >> 13; switch (chunk_index) { @@ -1833,8 +1811,6 @@ int UnicodeData::GetByteCount() { + kLetterTable5Size * sizeof(int32_t) // NOLINT + kLetterTable6Size * sizeof(int32_t) // NOLINT + kLetterTable7Size * sizeof(int32_t) // NOLINT - + kSpaceTable0Size * sizeof(int32_t) // NOLINT - + kSpaceTable1Size * sizeof(int32_t) // NOLINT + kNumberTable0Size * sizeof(int32_t) // NOLINT + kNumberTable5Size * sizeof(int32_t) // NOLINT + kNumberTable7Size * sizeof(int32_t) // NOLINT |