| Index: src/objects.h
|
| diff --git a/src/objects.h b/src/objects.h
|
| index 4b5b51d9d90e2363c3542c877a5489f8ddb7203d..731f7a452375c0cf6f7c5330e9b237ca5f3b2b41 100644
|
| --- a/src/objects.h
|
| +++ b/src/objects.h
|
| @@ -6421,6 +6421,17 @@ class JSGeneratorObject: public JSObject {
|
| // Resume mode, for use by runtime functions.
|
| enum ResumeMode { SEND, THROW };
|
|
|
| + // Yielding from a generator returns an object with the following inobject
|
| + // properties. See Context::generator_result_map() for the map.
|
| + static const int kResultValuePropertyIndex = 0;
|
| + static const int kResultDonePropertyIndex = 1;
|
| + static const int kResultPropertyCount = 2;
|
| +
|
| + static const int kResultValuePropertyOffset = JSObject::kHeaderSize;
|
| + static const int kResultDonePropertyOffset =
|
| + kResultValuePropertyOffset + kPointerSize;
|
| + static const int kResultSize = kResultDonePropertyOffset + kPointerSize;
|
| +
|
| private:
|
| DISALLOW_IMPLICIT_CONSTRUCTORS(JSGeneratorObject);
|
| };
|
|
|