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

Unified Diff: src/objects-debug.cc

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-debug.cc
diff --git a/src/objects-debug.cc b/src/objects-debug.cc
index 32adf093055400092db719c62abb1a5374715bbe..e543690b6179807ad54630f93eb8ae08d4958fa3 100644
--- a/src/objects-debug.cc
+++ b/src/objects-debug.cc
@@ -418,6 +418,11 @@ void JSGeneratorObject::JSGeneratorObjectVerify() {
VerifyObjectField(kContextOffset);
VerifyObjectField(kOperandStackOffset);
VerifyObjectField(kContinuationOffset);
+
+ // Verify that the sentinel values are not positive, and thus that they do not
+ // indicate a suspended continuation.
+ STATIC_ASSERT(JSGeneratorObject::kGeneratorExecuting <= 0);
Michael Starzinger 2013/04/21 22:45:21 Move these static asserts into the runtime functio
+ STATIC_ASSERT(JSGeneratorObject::kGeneratorClosed <= 0);
}

Powered by Google App Engine
This is Rietveld 408576698