Go to file
sgjesse@chromium.org 4e03645dc4 Analyze functions for assignment to this properties.
During parsing functions are analyzed for statements of the form this.x = ...;. These assignments are categorized in two types: simple and non simple. The simple ones are where the right hand side is known to be either a constant or an argument to the function. If a function only contains statements of this type the property names are collected and for the simple assignments the index of the argument or the constant value assigned are stored as well.

When the initial map for a function is created and the function consists of only this type of assignemnts the initial map is created with a descriptor array describing these properties which will be known to always exist in an object created from the function.

The information on this property assignments is not collected during pre-parsing so if compiling using pre-parse data these optimization hints are not available.

Next step will be to use the information collected for the simple assignments to generate constructor code which will create and initialize the object from this information without calling the code for the function.
Review URL: http://codereview.chromium.org/172088

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2710 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2009-08-19 07:30:20 +00:00
benchmarks Remove svn:executable flag from run.html and style.css and change the mime-type of style.css to text/css. 2009-07-15 10:37:10 +00:00
include Added API for getting object mirrors 2009-08-17 14:26:48 +00:00
samples Add a "read" extension to the shell programs. This global function 2009-04-17 21:04:34 +00:00
src Analyze functions for assignment to this properties. 2009-08-19 07:30:20 +00:00
test Analyze functions for assignment to this properties. 2009-08-19 07:30:20 +00:00
tools Fix issue 427: JS tick processor now works out-of-the-box for Chromium on Windows. 2009-08-17 13:45:03 +00:00
.gitignore Add .gitignore file similar to Chromium's one. 2009-08-05 11:52:59 +00:00
AUTHORS Clarify precedence of operations involving bitwise and(&) in x64/assembler. 2009-06-19 09:12:20 +00:00
ChangeLog Prepare push to trunk to get JSON parser fix into Chromium. 2009-08-13 12:21:11 +00:00
LICENSE Land change to notify valgrind when we modify code on x86. This does 2009-08-11 15:23:06 +00:00
SConstruct Fix strict aliasing crash on x64. 2009-08-14 17:19:51 +00:00