DescriptionCalling a generator function returns a generator object
* 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
Committed: http://code.google.com/p/v8/source/detail?r=14264
Patch Set 1 #Patch Set 2 : Fix whitespace; more tests #
Total comments: 1
Patch Set 3 : Link generator iterator definitions and uses through local variable #
Total comments: 11
Patch Set 4 : rename to JSGeneratorObject; address review comments #Patch Set 5 : Rebase based on updates from https://codereview.chromium.org/13192004/ #Patch Set 6 : Rebased to apply to bleeding_edge #
Total comments: 14
Patch Set 7 : Fix nits #Patch Set 8 : Fix generator construction via `new' #
Total comments: 9
Patch Set 9 : Fix nits; generator object fields are undefined if not set #
Messages
Total messages: 22 (0 generated)
|