[webkit-dev] question on Structure.

2012-01-05 Thread PandaCanFly
Hi, all. I am reading the implementation of JavascriptCore. I think Class Structure, Class JSCell, Class JSObject are the point to understand other codes. The member functions of Structure whose name is addPropertyTransition, addPropertyTransitionToExistingStructure, really confuse me. I

Re: [webkit-dev] What is the reason for changing JavaScript parser from bison parser(LR) to Top-To-Down Recursion parser?

2011-11-30 Thread PandaCanFly
antin Tokarev" wrote: >30.11.2011, 12:00, "PandaCanFly" : >> In my opinion, the bison parser implements LR analyzer, handwritten parser >> implements Top-To-Down analyzer. I remember some compiling book says "LR >> analyzer is better and faster than Top-T

Re: [webkit-dev] What is the reason for changing JavaScript parser from bison parser(LR) to Top-To-Down Recursion parser?

2011-11-30 Thread PandaCanFly
rammar to support strict mode (and can identify strict mode in the first place) * It fixes a number of bugs inherent in the bison parser due to the way automatic semicolon insertion was implemented. There are a number of other benefits, but those are the most obvious. --Oliver On Nov 29,

[webkit-dev] What is the reason for changing JavaScript parser from bison parser(LR) to Top-To-Down Recursion parser?

2011-11-29 Thread PandaCanFly
Hello everyone, I am researching WEBKIT and coming up against difficulty about Javascript parser。As I Know, WEBKIT of old version uses the bison parser to interpret javascript code. But WEBKIT of recently version doesn't uses bison parser. Instead, WEBKIT of recently version uses Top-To-Down