Implements an optimization pass between ConsolidateCode and
ValidateJavascript that folds converts foo[bar] to foo[+bar] when bar
is provably a publicly accessible array member regardless of what foo
is.
This was derived from http://codereview.appspot.com/8703/ and depends
on Jasvir's recent work to make negative array indices on function and
arguments instances inaccessible.
Submitted @ r4313
Issue 2241042: An optimization pass that annotates array acceses so that the validating rewriter can skip checks
(Closed)
Created 15 years, 9 months ago by MikeSamuel
Modified 15 years, 8 months ago
Reviewers: MarkM, Jasvir
Base URL: http://google-caja.googlecode.com/svn/trunk/
Comments: 7