DescriptionVM: Make more globals constant where easily possible.
Remove -fdata-section again from the Linux build configuration: It prevented
some optimizations in gcc and clang - fewer things were recognized as constants.
Add const to pointers/arrays in some places to help compilers with determining
what is a constant. A common pattern is strlen of a string literal const char*,
or an array of function pointers.
Tested with gcc 4.8.4 / clang 3.4 and improves code qualtiy + reduces binary size.
BUG=
R=iposva@google.com, rmacnak@google.com
Committed: https://github.com/dart-lang/sdk/commit/64e71a0b2e74cbb8a2a840b18fa100007ec1c43f
Patch Set 1 #
Total comments: 2
Patch Set 2 : Remove unnecessary const_cast #
Messages
Total messages: 6 (2 generated)
|