| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index 322841cf82049d4e20a96ea5e0d45a090f9c4608..898bd5228d43765787c530f0d1797f432743de40 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -6320,6 +6320,9 @@ class JSGeneratorObject: public JSObject {
|
| // [context]: The context of the suspended computation.
|
| DECL_ACCESSORS(context, Context)
|
|
|
| + // [receiver]: The receiver of the suspended computation.
|
| + DECL_ACCESSORS(receiver, Object)
|
| +
|
| // [continuation]: Offset into code of continuation.
|
| //
|
| // A positive offset indicates a suspended generator. The special
|
| @@ -6345,7 +6348,8 @@ class JSGeneratorObject: public JSObject {
|
| // Layout description.
|
| static const int kFunctionOffset = JSObject::kHeaderSize;
|
| static const int kContextOffset = kFunctionOffset + kPointerSize;
|
| - static const int kContinuationOffset = kContextOffset + kPointerSize;
|
| + static const int kReceiverOffset = kContextOffset + kPointerSize;
|
| + static const int kContinuationOffset = kReceiverOffset + kPointerSize;
|
| static const int kOperandStackOffset = kContinuationOffset + kPointerSize;
|
| static const int kSize = kOperandStackOffset + kPointerSize;
|
|
|
|
|