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

Side by Side Diff: src/objects.h

Issue 1578253005: [regexp] implement character classes for unicode regexps. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: more tests Created 4 years, 11 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 | « no previous file | src/ostreams.h » ('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 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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 #ifndef V8_OBJECTS_H_ 5 #ifndef V8_OBJECTS_H_
6 #define V8_OBJECTS_H_ 6 #define V8_OBJECTS_H_
7 7
8 #include <iosfwd> 8 #include <iosfwd>
9 9
10 #include "src/allocation.h" 10 #include "src/allocation.h"
(...skipping 8862 matching lines...) Expand 10 before | Expand all | Expand 10 after
8873 // Maximum number of characters to consider when trying to convert a string 8873 // Maximum number of characters to consider when trying to convert a string
8874 // value into an array index. 8874 // value into an array index.
8875 static const int kMaxArrayIndexSize = 10; 8875 static const int kMaxArrayIndexSize = 10;
8876 STATIC_ASSERT(kMaxArrayIndexSize < (1 << kArrayIndexLengthBits)); 8876 STATIC_ASSERT(kMaxArrayIndexSize < (1 << kArrayIndexLengthBits));
8877 8877
8878 // Max char codes. 8878 // Max char codes.
8879 static const int32_t kMaxOneByteCharCode = unibrow::Latin1::kMaxChar; 8879 static const int32_t kMaxOneByteCharCode = unibrow::Latin1::kMaxChar;
8880 static const uint32_t kMaxOneByteCharCodeU = unibrow::Latin1::kMaxChar; 8880 static const uint32_t kMaxOneByteCharCodeU = unibrow::Latin1::kMaxChar;
8881 static const int kMaxUtf16CodeUnit = 0xffff; 8881 static const int kMaxUtf16CodeUnit = 0xffff;
8882 static const uint32_t kMaxUtf16CodeUnitU = kMaxUtf16CodeUnit; 8882 static const uint32_t kMaxUtf16CodeUnitU = kMaxUtf16CodeUnit;
8883 static const uc32 kMaxCodePoint = 0x10ffff;
8883 8884
8884 // Value of hash field containing computed hash equal to zero. 8885 // Value of hash field containing computed hash equal to zero.
8885 static const int kEmptyStringHash = kIsNotArrayIndexMask; 8886 static const int kEmptyStringHash = kIsNotArrayIndexMask;
8886 8887
8887 // Maximal string length. 8888 // Maximal string length.
8888 static const int kMaxLength = (1 << 28) - 16; 8889 static const int kMaxLength = (1 << 28) - 16;
8889 8890
8890 // Max length for computing hash. For strings longer than this limit the 8891 // Max length for computing hash. For strings longer than this limit the
8891 // string length is used as the hash value. 8892 // string length is used as the hash value.
8892 static const int kMaxHashCalcLength = 16383; 8893 static const int kMaxHashCalcLength = 16383;
(...skipping 1892 matching lines...) Expand 10 before | Expand all | Expand 10 after
10785 } 10786 }
10786 return value; 10787 return value;
10787 } 10788 }
10788 }; 10789 };
10789 10790
10790 10791
10791 } // NOLINT, false-positive due to second-order macros. 10792 } // NOLINT, false-positive due to second-order macros.
10792 } // NOLINT, false-positive due to second-order macros. 10793 } // NOLINT, false-positive due to second-order macros.
10793 10794
10794 #endif // V8_OBJECTS_H_ 10795 #endif // V8_OBJECTS_H_
OLDNEW
« no previous file with comments | « no previous file | src/ostreams.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698