|
Enable RTTI for ICU.
ICU 4.6 uses RTTI (dynamic_cast and typeid) in many places.
It'll increase the vtbl size. I'm gonna measure the size impact by
making two builds:
1. With rtti enabled
2. With rtti disabled, but with dynamic_cast replaced with
static_cast and typeid with 'something' buildable. This build wouldn't run
properly, but for the size comparision, just compiling it should be fine.
On Windows, we set _HAS_EXCEPTIONS to 0 in common.gypi. To build ICU
without enabling exception as well on Windows, we replaced the following line
#include <typeinfo>
with
#include "unicode/utypeinfo.h"
and add a new file 'common/unicode/utypeinfo.h' with the following:
#if defined(_MSC_VERSION) && _HAS_EXCEPTIONS == 0
#include <exception>
using std::exception;
#endif
#include <typeinfo>
BUG= 61514
TEST=On all 3 platforms, Chrome can be built and can be run without crash.
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=75186
Total comments: 1
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+72 lines, -30 lines) |
Patch |
 |
M |
third_party/icu/icu.gyp
|
View
|
1
2
3
4
5
|
2 chunks |
+30 lines, -0 lines |
0 comments
|
Download
|
 |
A |
third_party/icu/public/common/unicode/utypeinfo.h
|
View
|
1
2
3
4
5
|
1 chunk |
+12 lines, -0 lines |
0 comments
|
Download
|
 |
M |
third_party/icu/source/common/rbbi.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/common/schriter.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/common/uchriter.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/common/ustrenum.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/calendar.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/currfmt.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/currunit.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/dtitvfmt.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/dtrule.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/format.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/measure.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/nfsubs.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/olsontz.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/rbnf.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/rbtz.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/selfmt.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/simpletz.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/tblcoll.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/timezone.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/tmunit.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/tmutfmt.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/translit.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/tzrule.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/tztrans.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/ucal.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/i18n/vtzone.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/test/intltest/citrtest.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/test/intltest/icusvtst.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/test/intltest/rbbitst.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
third_party/icu/source/test/intltest/uobjtest.cpp
|
View
|
1
2
3
4
5
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 10 (0 generated)
|