Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Unified Diff: src/objects.h

Issue 1884183002: First version of the new generators implementation. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/objects.h
diff --git a/src/objects.h b/src/objects.h
index c1e08a2d78eb1faa8073860e1484534f3071fb2f..4f32eac525e9acef85ae55b512c93597fb4822f7 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -7356,8 +7356,8 @@ class JSGeneratorObject: public JSObject {
DECLARE_VERIFIER(JSGeneratorObject)
// Magic sentinel values for the continuation.
- static const int kGeneratorExecuting = -1;
- static const int kGeneratorClosed = 0;
+ static const int kGeneratorExecuting = -2;
+ static const int kGeneratorClosed = -1;
// Layout description.
static const int kFunctionOffset = JSObject::kHeaderSize;

Powered by Google App Engine
This is Rietveld 408576698