• palfia@homejinni.com's avatar
    MIPS: Force context allocation for variables in generator scopes. · 1a472f64
    palfia@homejinni.com authored
    Port r14152 (4e58a8ea)
    
    Original commit message:
    * 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=
    
    Review URL: https://codereview.chromium.org/13726009
    
    git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14157 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    1a472f64
Name
Last commit
Last update
benchmarks Loading commit data...
build Loading commit data...
include Loading commit data...
preparser Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
tools Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
SConstruct Loading commit data...