Modules: simplify logic around allocation of module internal variables
authoradamk <adamk@chromium.org>
Wed, 11 Mar 2015 23:19:44 +0000 (16:19 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 11 Mar 2015 23:19:57 +0000 (23:19 +0000)
commit9703c057c504a2dcc202e07d027919a566630ae6
tree53797feb185899698de82ef4539de5f5dd063a24
parentad5630db87be2da6865ff17989b455791b6c152d
Modules: simplify logic around allocation of module internal variables

Since recursive modules are gone, only the top-level scope can have
module inner scopes. Rename Scope::AllocateModulesRecursively to
Scope::AllocateModules, and add test showing the module Variables
are still allocated appropriately in the top level scope.

BUG=v8:1569,v8:3940
LOG=n

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

Cr-Commit-Position: refs/heads/master@{#27143}
src/scopes.cc
src/scopes.h
test/cctest/test-parsing.cc