Return a sequence when optimizing constant conditions so that brackets will be added to the HLSL output.

TRAC #20052
ISSUE=252
Signed-off-by: Daniel Koch
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1016 736b8ea6-26fd-11df-bfd4-992fa37f6226
Fixed info log regressions.

TRAC #20443
Signed-off-by: Daniel Koch
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1017 736b8ea6-26fd-11df-bfd4-992fa37f6226
Increase Vertex Decl cache size to 32 entries.

This should reduce the risk of running out of cache entries inside a frame, while being small enough that iterating through it to find the correct entry shouldn't be too expensive.

BUG=310
TEST=

Review URL: https://codereview.appspot.com/5969077

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1018 736b8ea6-26fd-11df-bfd4-992fa37f6226
Added an alternate lexer for the existing preprocessor. It is still behind a compile-time flag.
Review URL: https://codereview.appspot.com/5976072

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1019 736b8ea6-26fd-11df-bfd4-992fa37f6226
Removed the unnecessary usage of InputSrc::getch and InputSrc::ungetch when handling pragma. These functions are not supported by the new lexer.

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1020 736b8ea6-26fd-11df-bfd4-992fa37f6226
Added infrastructure for adding gtest-based tests. I need to use it for the new preprocessor.
Review URL: https://codereview.appspot.com/5988069

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1024 736b8ea6-26fd-11df-bfd4-992fa37f6226
Added googletest to svn:ignore list.

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1025 736b8ea6-26fd-11df-bfd4-992fa37f6226
Guard against null surface in Image::updateSurface.
Review URL: https://codereview.appspot.com/5985051

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1026 736b8ea6-26fd-11df-bfd4-992fa37f6226
Decorate (and undecorate) struct fields too (when not built-in).

Trac #20510
Issue=316,317
Authored-by: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1027 736b8ea6-26fd-11df-bfd4-992fa37f6226
Fix a few compilation warning/errors on Linux/Mac.
Review URL: https://codereview.appspot.com/6009045

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1030 736b8ea6-26fd-11df-bfd4-992fa37f6226
Update reserved keywords.

TRAC #20514
ISSUE=317
Signed-off-by: Daniel Koch
Author: Nicolas Capens

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1031 736b8ea6-26fd-11df-bfd4-992fa37f6226
Added HAS_LEADING_SPACE flag to pp::Token. Split the new preprocessor into a separate target.

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1032 736b8ea6-26fd-11df-bfd4-992fa37f6226
Modified the interface of Preprocessor. Added it to the build file. Lexer changes to record leading space.

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1033 736b8ea6-26fd-11df-bfd4-992fa37f6226
Update emulated functions.

It turns out there are bugs in our tests, so kbr fixed them a while ago.  Now we had another look at the tests, and it turned out some functions we don't have emulate, and some functions we need to also emulate in fragment shaders.

BUG=
TEST=
R=kbr
Review URL: https://codereview.appspot.com/6011056

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1034 736b8ea6-26fd-11df-bfd4-992fa37f6226
Mac/Linux build fix.

BUG=
TEST=compile fine
TBR=alokp
Review URL: https://codereview.appspot.com/6013048

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1035 736b8ea6-26fd-11df-bfd4-992fa37f6226
Added tests for pp::Token interface and white-space handling by the preprocessor. By the magic of test-case generators, we have 74 tests!
Review URL: https://codereview.appspot.com/6009054

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1036 736b8ea6-26fd-11df-bfd4-992fa37f6226
Removed unnecessary includion of Token.h in various files.

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1037 736b8ea6-26fd-11df-bfd4-992fa37f6226
Fixed compile error in lexer_glue.cpp.
TBR=zmo@chromium.org
Review URL: https://codereview.appspot.com/6035044

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1038 736b8ea6-26fd-11df-bfd4-992fa37f6226
Minor formatting change in pp.l.

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1039 736b8ea6-26fd-11df-bfd4-992fa37f6226
Added tests for number types.
Review URL: https://codereview.appspot.com/6022045

git-svn-id: http://angleproject.googlecode.com/svn/trunk@1040 736b8ea6-26fd-11df-bfd4-992fa37f6226