Reviewers: fschneider, Description: Don't treat this as a trivial expression.
This caused some regressions in Chromium. BUG=http://crbug.com/36604 Please review this at http://codereview.chromium.org/652228 SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/ Affected files: M src/ast.h Index: src/ast.h =================================================================== --- src/ast.h (revision 3938) +++ src/ast.h (working copy) @@ -931,10 +931,6 @@ return var()->is_global() || var()->rewrite()->IsLeaf(); } - // Reading from a mutable variable is a side effect, but 'this' is - // immutable. - virtual bool IsTrivial() { return is_this(); } - bool IsVariable(Handle<String> n) { return !is_this() && name().is_identical_to(n); } -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
