[strong] Stricter check for referring to other classes inside methods.
authormarja <marja@chromium.org>
Thu, 23 Apr 2015 14:05:03 +0000 (07:05 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 23 Apr 2015 14:04:47 +0000 (14:04 +0000)
commitddd3f318c7f3f04ceb151430bdd67cf634224aab
tree18f7b98a45f3a4a6578a0e5b790feb84860dc26a
parentd5fd58165c5348c45e3a63d60df9d75787b44e83
[strong] Stricter check for referring to other classes inside methods.

Add the restriction that both classes must be declared inside the same
consectutive class declaration batch.

Dependency analysis not implemented yet.

BUG=v8:3956
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#28032}
src/ast.h
src/parser.cc
src/scopes.cc
src/scopes.h
src/variables.h
test/mjsunit/strong/mutually-recursive-classes.js