Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/unicode.cc

Issue 2720953003: [unibrow] remove mongolian vowel separator as white space. (Closed)
Patch Set: fix webkit test expectations Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/regexp/jsregexp.cc ('k') | test/mjsunit/whitespaces.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This file was generated at 2014-10-08 15:25:47.940335 5 // This file was generated at 2014-10-08 15:25:47.940335
6 6
7 #include "src/unicode.h" 7 #include "src/unicode.h"
8 #include "src/unicode-inl.h" 8 #include "src/unicode-inl.h"
9 #include <stdio.h> 9 #include <stdio.h>
10 #include <stdlib.h> 10 #include <stdlib.h>
(...skipping 1266 matching lines...) Expand 10 before | Expand all | Expand 10 after
1277 case 7: 1277 case 7:
1278 return LookupPredicate(kID_ContinueTable7, kID_ContinueTable7Size, c); 1278 return LookupPredicate(kID_ContinueTable7, kID_ContinueTable7Size, c);
1279 default: return false; 1279 default: return false;
1280 } 1280 }
1281 } 1281 }
1282 1282
1283 1283
1284 // WhiteSpace: (point.category == 'Zs') or ('JS_White_Space' in 1284 // WhiteSpace: (point.category == 'Zs') or ('JS_White_Space' in
1285 // point.properties) 1285 // point.properties)
1286 1286
1287 static const uint16_t kWhiteSpaceTable0Size = 7; 1287 static const uint16_t kWhiteSpaceTable0Size = 6;
1288 static const int32_t kWhiteSpaceTable0[7] = {9, 1073741835, 12, 32, 1288 static const int32_t kWhiteSpaceTable0[6] = {9, 1073741835, 12,
1289 160, 5760, 6158}; // NOLINT 1289 32, 160, 5760}; // NOLINT
1290 static const uint16_t kWhiteSpaceTable1Size = 5; 1290 static const uint16_t kWhiteSpaceTable1Size = 5;
1291 static const int32_t kWhiteSpaceTable1[5] = { 1291 static const int32_t kWhiteSpaceTable1[5] = {
1292 1073741824, 10, 47, 95, 4096 }; // NOLINT 1292 1073741824, 10, 47, 95, 4096 }; // NOLINT
1293 static const uint16_t kWhiteSpaceTable7Size = 1; 1293 static const uint16_t kWhiteSpaceTable7Size = 1;
1294 static const int32_t kWhiteSpaceTable7[1] = {7935}; // NOLINT 1294 static const int32_t kWhiteSpaceTable7[1] = {7935}; // NOLINT
1295 bool WhiteSpace::Is(uchar c) { 1295 bool WhiteSpace::Is(uchar c) {
1296 int chunk_index = c >> 13; 1296 int chunk_index = c >> 13;
1297 switch (chunk_index) { 1297 switch (chunk_index) {
1298 case 0: return LookupPredicate(kWhiteSpaceTable0, 1298 case 0: return LookupPredicate(kWhiteSpaceTable0,
1299 kWhiteSpaceTable0Size, 1299 kWhiteSpaceTable0Size,
(...skipping 2203 matching lines...) Expand 10 before | Expand all | Expand 10 after
3503 sizeof(MultiCharacterSpecialCase<1>) // NOLINT 3503 sizeof(MultiCharacterSpecialCase<1>) // NOLINT
3504 + 3504 +
3505 kCanonicalizationRangeMultiStrings1Size * 3505 kCanonicalizationRangeMultiStrings1Size *
3506 sizeof(MultiCharacterSpecialCase<1>) // NOLINT 3506 sizeof(MultiCharacterSpecialCase<1>) // NOLINT
3507 + 3507 +
3508 kCanonicalizationRangeMultiStrings7Size * 3508 kCanonicalizationRangeMultiStrings7Size *
3509 sizeof(MultiCharacterSpecialCase<1>); // NOLINT 3509 sizeof(MultiCharacterSpecialCase<1>); // NOLINT
3510 } 3510 }
3511 3511
3512 } // namespace unibrow 3512 } // namespace unibrow
OLDNEW
« no previous file with comments | « src/regexp/jsregexp.cc ('k') | test/mjsunit/whitespaces.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698