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

Unified Diff: src/objects.h

Issue 14066016: Generators can resume (Closed) Base URL: git://github.com/v8/v8.git@master
Patch Set: ia32 fixups Created 7 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 56e90dd3f980c13416bde4d734147f2023f3c0e6..fa3c71f7ce048d84093e19e51fd067a66c5baa66 100644
--- a/src/objects.h
+++ b/src/objects.h
@@ -6329,6 +6329,12 @@ class JSGeneratorObject: public JSObject {
static const int kOperandStackOffset = kContinuationOffset + kPointerSize;
static const int kSize = kOperandStackOffset + kPointerSize;
+ // Resume mode, for use by runtime functions.
+ enum ResumeMode {
+ kSend,
Michael Starzinger 2013/04/21 22:45:21 style: Enums use all-uppercase names without the "
wingo 2013/04/23 13:51:04 Done.
+ kThrow
+ };
+
private:
DISALLOW_IMPLICIT_CONSTRUCTORS(JSGeneratorObject);
};

Powered by Google App Engine
This is Rietveld 408576698