1. 07 Aug, 2014 1 commit
  2. 05 Aug, 2014 1 commit
  3. 11 Apr, 2013 1 commit
    • 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
  4. 26 Feb, 2013 1 commit
    • mstarzinger@chromium.org's avatar
      Make __proto__ a foreign callback on Object.prototype. · ce1e10f5
      mstarzinger@chromium.org authored
      This moves the __proto__ property to Object.prototype and turns it into
      a callback property actually present in the descriptor array as opposed
      to a hack in the properties lookup. For now it still is a "magic" data
      property using foreign callbacks and not an accessor property visible to
      JavaScript.
      
      The second effect of this change is that JSON.parse() no longer treats
      the __proto__ property specially, it will be defined as any other data
      property. Note that object literals still have their special handling.
      
      R=rossberg@chromium.org
      BUG=v8:621,v8:1949,v8:2441
      TEST=mjsunit,cctest,test262
      
      Review URL: https://codereview.chromium.org/12212011
      
      git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13728 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
      ce1e10f5
  5. 20 Feb, 2012 1 commit
  6. 07 Sep, 2011 1 commit
    • lrn@chromium.org's avatar
      Avoid size increase of snapshot. · 2c8680cc
      lrn@chromium.org authored
      The prototype of builtin functions is already unwritable, so we don't
      have to make it so (the default map for functions changes after builtins
      are initialized).
      
      We no longer need to make the prototype non-extensible, since all properties
      that are ever read by the bultins code has been added and frozen already.
      Adding properties to the prototype, or changing its __proto__, cannot affect
      code.
      
      Removing these two pieces of initialization code reduces the snapshot size
      by a few Kb.
      
      Review URL: http://codereview.chromium.org/7839028
      
      git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@9166 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
      2c8680cc
  7. 05 Sep, 2011 1 commit