1. 17 Apr, 2013 1 commit
  2. 15 Apr, 2013 1 commit
    • mstarzinger@chromium.org's avatar
      Calling a generator function returns a generator object · 591a8ec8
      mstarzinger@chromium.org authored
      * src/heap.h:
      * src/heap.cc:
      * src/objects-debug.cc:
      * src/objects-inl.h:
      * src/objects-printer.cc:
      * src/objects-visiting.cc:
      * src/objects.cc:
      * src/objects.h: Define a new object type, JSGeneratorObject.
      
      * src/factory.h:
      * src/factory.cc (NewFunctionFromSharedFunctionInfo): Generator function
        inital maps construct the new JS_GENERATOR_OBJECT_TYPE objects, not
        generic JSObjects.
      
      * src/runtime.h:
      * src/runtime.cc (Runtime_CreateJSGeneratorObject):
      * src/arm/full-codegen-arm.cc (Generate):
      * src/ia32/full-codegen-ia32.cc (Generate):
      * src/x64/full-codegen-x64.cc (Generate): Before visiting generator
        bodies, arrange to construct and return a generator object.
      
      * test/mjsunit/harmony/generators-objects.js: Add tests for the
        properties and prototype of generator objects.
      
      BUG=v8:2355
      TEST=mjsunit/harmony/generators-objects
      
      Review URL: https://codereview.chromium.org/13542002
      
      Patch from Andy Wingo <wingo@igalia.com>.
      
      git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14264 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
      591a8ec8
  3. 05 Apr, 2013 1 commit
    • mstarzinger@chromium.org's avatar
      Force context allocation for variables in generator scopes. · b6efbd79
      mstarzinger@chromium.org authored
      * 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
      b6efbd79
  4. 25 Mar, 2013 1 commit
  5. 14 Feb, 2013 1 commit
  6. 16 Jan, 2013 1 commit
  7. 12 Mar, 2012 1 commit
  8. 13 Jan, 2012 1 commit
  9. 27 Nov, 2009 1 commit
  10. 23 Oct, 2009 1 commit
  11. 20 Oct, 2009 1 commit
  12. 04 Mar, 2009 1 commit
  13. 26 Sep, 2008 1 commit
  14. 09 Sep, 2008 1 commit
  15. 22 Aug, 2008 1 commit
    • christian.plesner.hansen's avatar
      Included mjsunit JavaScript test suite and C++ unit tests. · c42f5829
      christian.plesner.hansen authored
      In the shell sample don't print the result of executing a script, only
      evaluating expressions.
      
      Fixed issue when building samples on Windows using a shared V8
      library.  Added visibility option on Linux build which makes the
      generated library 18% smaller.
      
      Changed build system to accept multiple build modes in one build and
      generate seperate objects, libraries and executables for each mode.
      
      Removed deferred negation optimization (a * -b => -(a * b)) since this
      visibly changes operand conversion order.
      
      Improved parsing performance by introducing stack guard in preparsing.
      Without a stack guard preparsing always bails out with stack overflow.
      
      
      git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
      c42f5829
  16. 03 Jul, 2008 1 commit