Clean up rewriter.
authorneis <neis@chromium.org>
Mon, 28 Sep 2015 15:09:42 +0000 (08:09 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 28 Sep 2015 15:09:56 +0000 (15:09 +0000)
commitb466dc14791844b7ae6d1e9ebd00a778965c206d
treec341addcbc311c65c7fedc7d073cbe573383509b
parent601c8d9f87a7b81f0fdb78f014c7c2853d961d99
Clean up rewriter.

The main changes are:
- Fix treatment of loops, which was incorrect and sometimes resulted in
  the wrong completion value.
- Get rid of unnecessary variables.

This is in preparation of implementing ES6 completion semantics.

R=rossberg
BUG=

Review URL: https://codereview.chromium.org/1362333002

Cr-Commit-Position: refs/heads/master@{#30981}
src/rewriter.cc
test/webkit/eval-throw-return-expected.txt
test/webkit/eval-throw-return.js