Chromium Code Reviews| 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); |
| } |