Always initialise symbol_id for ASCII symbols
authorPhilip Lorenz <philip@bithub.de>
Tue, 11 Sep 2012 15:55:08 +0000 (17:55 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Mon, 24 Sep 2012 08:14:18 +0000 (10:14 +0200)
commit23ec442d83b5935fbb8af4d34026d58b7734fe12
treeee7af7566cf05191a0414c3f6a765a590fc66dea
parenta7cbe3715872fc122173603d5c639aa0adb148be
Always initialise symbol_id for ASCII symbols

Commit 30662b5d64ff633f57d89290da2a85507d561187 dropped the default
initialisation of the symbol_id for ASCII characters. This leads to
problems when trying to access the symbol_id when the symbol was not
instantiated via AsciiSymbolKey (e.g. via SubStringAsciiSymbolKey).

Additionally, AsciiSymbolKey does not guarantee the presence of a
symbol_id in case the SMI value space has been exhausted.

Change-Id: I778bc5cc3cee80038a4ca6606bfcf4423d569132
Reviewed-by: Peter Varga <pvarga@inf.u-szeged.hu>
src/3rdparty/v8/src/heap-inl.h
tests/auto/v8/tst_v8.cpp
tests/auto/v8/v8test.cpp
tests/auto/v8/v8test.h