[webkit-dev] how to store javascript identifier
Gavin Barraclough
barraclough at apple.com
Wed Mar 4 03:07:43 PST 2009
On Mar 4, 2009, at 2:22 AM, zhenghe zhang wrote:
> When running a webpage, and the javascriptcore will parse the
> javascript function, and will obtain some identifiers. I don't know
> how to
> store these identifiers and where to store these identifiers.
These identifiers are stored in the identifierTable on the
globalData. The identifiers are represented by objects of type
Identifier. If you look in parse.h, the nodes that have an identifier
as a one of their properties typically have a field called m_ident.
Within the Identifer constructor it calls Identifer::add() (which is
in Identifier.cpp), and this ensures each identifier is represented by
a unique string in the identifierTable.
I hope this helps to answer your question.
G.
More information about the webkit-dev
mailing list