bug 763703 - optimize Unicode property lookup and gfxScriptItemizer::Next. r=smontagu

This commit is contained in:
Jonathan Kew
2012-06-20 20:58:18 +01:00
parent 0f4fb17f1b
commit a8e1115e85
7 changed files with 98 additions and 141 deletions

View File

@@ -1,11 +1,17 @@
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*-
* This Source Code Form is subject to the terms of the Mozilla Public
/* -*- Mode: C++; tab-width: 20; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/* 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 http://mozilla.org/MPL/2.0/. */
/*
* Created on Mon Apr 23 20:03:29 2012 from UCD data files with version info:
* Derived from the Unicode Character Database by genUnicodePropertyData.pl
*
* For Unicode terms of use, see http://www.unicode.org/terms_of_use.html
*/
/*
* Created on Mon Jun 11 21:04:54 2012 from UCD data files with version info:
*
# Date: 2012-01-26, 22:03:00 GMT [KW]
@@ -48,8 +54,11 @@ for the Unicode Character Database (UCD) for Unicode 6.1.0.
#ifndef NS_UNICODE_SCRIPT_CODES
#define NS_UNICODE_SCRIPT_CODES
#pragma pack(1)
struct nsCharProps1 {
unsigned char mMirrorOffsetIndex:5;
unsigned char mMirrorOffsetIndex:5;
unsigned char mHangulType:3;
unsigned char mCombiningClass:8;
};
@@ -64,6 +73,8 @@ struct nsCharProps2 {
unsigned char mHanVariant:2;
};
#pragma pack()
enum {
MOZ_SCRIPT_COMMON = 0,
MOZ_SCRIPT_INHERITED = 1,