• rossberg@chromium.org's avatar
    * src/generator.js: Add methods and intialization for generator meta-objects. · 8e8bbc0e
    rossberg@chromium.org authored
    * src/contexts.h:
    * src/bootstrapper.cc (InitializeExperimentalGlobal): Make generator
      meta-objects, and store maps for constructing generator functions
      and their prototypes.
    
    * src/factory.h:
    * src/factory.cc (MapForNewFunction): New helper.
      (NewFunctionFromSharedFunctionInfo): Use the new helper.
    
    * src/heap.cc (AllocateFunctionPrototype, AllocateInitialMap): For
       generators, allocate appropriate prototypes and maps.
    
    * src/code-stubs.h:
    * src/arm/code-stubs-arm.h:
    * src/arm/full-codegen-arm.h:
    * src/ia32/code-stubs-ia32.h:
    * src/ia32/full-codegen-ia32.h:
    * src/x64/code-stubs-x64.h:
    * src/x64/full-codegen-x64.h: Allow fast closure creation for generators,
    using the appropriate map.
    
    * test/mjsunit/harmony/builtins.js: Add a special case for
      GeneratorFunctionPrototype.prototype.__proto__.
    
    BUG=
    TEST=mjsunit/harmony/generators-runtime
    
    Review URL: https://codereview.chromium.org/13192004
    
    Patch from Andy Wingo <wingo@igalia.com>.
    
    git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14236 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    8e8bbc0e
Name
Last commit
Last update
..
gcmole Loading commit data...
gyp Loading commit data...
oom_dump Loading commit data...
testrunner Loading commit data...
v8.xcodeproj Loading commit data...
visual_studio Loading commit data...
android-build.sh Loading commit data...
android-ll-prof.sh Loading commit data...
android-run.py Loading commit data...
android-sync.sh Loading commit data...
bash-completion.sh Loading commit data...
check-static-initializers.sh Loading commit data...
codemap.js Loading commit data...
common-includes.sh Loading commit data...
consarray.js Loading commit data...
csvparser.js Loading commit data...
disasm.py Loading commit data...
freebsd-tick-processor Loading commit data...
fuzz-harness.sh Loading commit data...
gc-nvp-trace-processor.py Loading commit data...
gdb-v8-support.py Loading commit data...
gen-postmortem-metadata.py Loading commit data...
generate-ten-powers.scm Loading commit data...
grokdump.py Loading commit data...
js2c.py Loading commit data...
jsmin.py Loading commit data...
linux-tick-processor Loading commit data...
ll_prof.py Loading commit data...
logreader.js Loading commit data...
mac-nm Loading commit data...
mac-tick-processor Loading commit data...
merge-to-branch.sh Loading commit data...
nacl-run.py Loading commit data...
plot-timer-events Loading commit data...
plot-timer-events.js Loading commit data...
presubmit.py Loading commit data...
process-heap-prof.py Loading commit data...
profile.js Loading commit data...
profile_view.js Loading commit data...
push-to-trunk.sh Loading commit data...
run-llprof.sh Loading commit data...
run-tests.py Loading commit data...
run-valgrind.py Loading commit data...
splaytree.js Loading commit data...
stats-viewer.py Loading commit data...
status-file-converter.py Loading commit data...
test-server.py Loading commit data...
test-wrapper-gypbuild.py Loading commit data...
test.py Loading commit data...
tick-processor.html Loading commit data...
tickprocessor-driver.js Loading commit data...
tickprocessor.js Loading commit data...
utils.py Loading commit data...
windows-tick-processor.bat Loading commit data...