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

Side by Side Diff: src/unicode.cc

Issue 4070003: [Isolates] Convert more static data either to read-only or to per-isolate. (Closed)
Patch Set: Created 10 years, 2 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
« src/frames.h ('K') | « src/unicode.h ('k') | src/version.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 2007-2008 the V8 project authors. All rights reserved. 1 // Copyright 2007-2008 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 1552 matching lines...) Expand 10 before | Expand all | Expand 10 after
1563 kCanonicalizationRangeMultiStrings7, 1563 kCanonicalizationRangeMultiStrings7,
1564 c, 1564 c,
1565 n, 1565 n,
1566 result, 1566 result,
1567 allow_caching_ptr); 1567 allow_caching_ptr);
1568 default: return 0; 1568 default: return 0;
1569 } 1569 }
1570 } 1570 }
1571 1571
1572 1572
1573 uchar UnicodeData::kMaxCodePoint = 65533; 1573 const uchar UnicodeData::kMaxCodePoint = 65533;
1574 1574
1575 int UnicodeData::GetByteCount() { 1575 int UnicodeData::GetByteCount() {
1576 return kUppercaseTable0Size * sizeof(int32_t) // NOLINT 1576 return kUppercaseTable0Size * sizeof(int32_t) // NOLINT
1577 + kUppercaseTable1Size * sizeof(int32_t) // NOLINT 1577 + kUppercaseTable1Size * sizeof(int32_t) // NOLINT
1578 + kUppercaseTable7Size * sizeof(int32_t) // NOLINT 1578 + kUppercaseTable7Size * sizeof(int32_t) // NOLINT
1579 + kLowercaseTable0Size * sizeof(int32_t) // NOLINT 1579 + kLowercaseTable0Size * sizeof(int32_t) // NOLINT
1580 + kLowercaseTable1Size * sizeof(int32_t) // NOLINT 1580 + kLowercaseTable1Size * sizeof(int32_t) // NOLINT
1581 + kLowercaseTable7Size * sizeof(int32_t) // NOLINT 1581 + kLowercaseTable7Size * sizeof(int32_t) // NOLINT
1582 + kLetterTable0Size * sizeof(int32_t) // NOLINT 1582 + kLetterTable0Size * sizeof(int32_t) // NOLINT
1583 + kLetterTable1Size * sizeof(int32_t) // NOLINT 1583 + kLetterTable1Size * sizeof(int32_t) // NOLINT
(...skipping 29 matching lines...) Expand all
1613 + kEcma262CanonicalizeMultiStrings7Size * sizeof(MultiCharacterSpecialCase <1>) // NOLINT 1613 + kEcma262CanonicalizeMultiStrings7Size * sizeof(MultiCharacterSpecialCase <1>) // NOLINT
1614 + kEcma262UnCanonicalizeMultiStrings0Size * sizeof(MultiCharacterSpecialCa se<4>) // NOLINT 1614 + kEcma262UnCanonicalizeMultiStrings0Size * sizeof(MultiCharacterSpecialCa se<4>) // NOLINT
1615 + kEcma262UnCanonicalizeMultiStrings1Size * sizeof(MultiCharacterSpecialCa se<2>) // NOLINT 1615 + kEcma262UnCanonicalizeMultiStrings1Size * sizeof(MultiCharacterSpecialCa se<2>) // NOLINT
1616 + kEcma262UnCanonicalizeMultiStrings7Size * sizeof(MultiCharacterSpecialCa se<2>) // NOLINT 1616 + kEcma262UnCanonicalizeMultiStrings7Size * sizeof(MultiCharacterSpecialCa se<2>) // NOLINT
1617 + kCanonicalizationRangeMultiStrings0Size * sizeof(MultiCharacterSpecialCa se<1>) // NOLINT 1617 + kCanonicalizationRangeMultiStrings0Size * sizeof(MultiCharacterSpecialCa se<1>) // NOLINT
1618 + kCanonicalizationRangeMultiStrings1Size * sizeof(MultiCharacterSpecialCa se<1>) // NOLINT 1618 + kCanonicalizationRangeMultiStrings1Size * sizeof(MultiCharacterSpecialCa se<1>) // NOLINT
1619 + kCanonicalizationRangeMultiStrings7Size * sizeof(MultiCharacterSpecialCa se<1>); // NOLINT 1619 + kCanonicalizationRangeMultiStrings7Size * sizeof(MultiCharacterSpecialCa se<1>); // NOLINT
1620 } 1620 }
1621 1621
1622 } // namespace unicode 1622 } // namespace unicode
OLDNEW
« src/frames.h ('K') | « src/unicode.h ('k') | src/version.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698