v8/test
mstarzinger@chromium.org b6efbd79de Force context allocation for variables in generator scopes.
* src/scopes.h (ForceContextAllocation, has_forced_context_allocation):
  New interface to force context allocation for an entire function's
  scope.

* src/scopes.cc: Unless a new scope is a function scope, if its outer
  scope has forced context allocation, it should also force context
  allocation.
  (MustAllocateInContext): Return true if the scope as a whole has
  forced context allocation.
  (CollectStackAndContextLocals): Allow temporaries to be
  context-allocated.

* src/parser.cc (ParseFunctionLiteral): Force context allocation for
  generator scopes.

* src/v8globals.h (VariableMode): Update comment on TEMPORARY.

* src/arm/full-codegen-arm.cc (Generate):
* src/ia32/full-codegen-ia32.cc (Generate):
* src/x64/full-codegen-x64.cc (Generate): Assert that generators have no
  stack slots.

* test/mjsunit/harmony/generators-instantiation.js: New test.

BUG=v8:2355
TEST=mjsunit/harmony/generators-instantiation

Review URL: https://codereview.chromium.org/13408005
Patch from Andy Wingo <wingo@igalia.com>.

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14152 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
2013-04-05 13:19:31 +00:00
..
benchmarks First commit of new tools/run-tests.py 2012-09-24 09:38:46 +00:00
cctest Refactor parser mode configuration for correctness 2013-04-05 13:01:06 +00:00
es5conform First commit of new tools/run-tests.py 2012-09-24 09:38:46 +00:00
message Reland r13188, r13194, r13256 (Deferred formatting of error stack trace during GC). 2013-01-14 13:19:27 +00:00
mjsunit Force context allocation for variables in generator scopes. 2013-04-05 13:19:31 +00:00
mozilla De-dupe test/mozilla/mozilla.status 2013-01-18 15:01:53 +00:00
preparser Adjust Android test expectations. 2012-10-19 09:28:23 +00:00
sputnik First commit of new tools/run-tests.py 2012-09-24 09:38:46 +00:00
test262 Make __proto__ a foreign callback on Object.prototype. 2013-02-26 10:46:00 +00:00