| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
| 6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 #include "src/assert-scope.h" | 10 #include "src/assert-scope.h" |
| (...skipping 7277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7288 inline bool is_closed(); | 7288 inline bool is_closed(); |
| 7289 inline bool is_executing(); | 7289 inline bool is_executing(); |
| 7290 inline bool is_suspended(); | 7290 inline bool is_suspended(); |
| 7291 | 7291 |
| 7292 // [operand_stack]: Saved operand stack. | 7292 // [operand_stack]: Saved operand stack. |
| 7293 DECL_ACCESSORS(operand_stack, FixedArray) | 7293 DECL_ACCESSORS(operand_stack, FixedArray) |
| 7294 | 7294 |
| 7295 DECLARE_CAST(JSGeneratorObject) | 7295 DECLARE_CAST(JSGeneratorObject) |
| 7296 | 7296 |
| 7297 // Dispatched behavior. | 7297 // Dispatched behavior. |
| 7298 DECLARE_PRINTER(JSGeneratorObject) | |
| 7299 DECLARE_VERIFIER(JSGeneratorObject) | 7298 DECLARE_VERIFIER(JSGeneratorObject) |
| 7300 | 7299 |
| 7301 // Magic sentinel values for the continuation. | 7300 // Magic sentinel values for the continuation. |
| 7302 static const int kGeneratorExecuting = -2; | 7301 static const int kGeneratorExecuting = -2; |
| 7303 static const int kGeneratorClosed = -1; | 7302 static const int kGeneratorClosed = -1; |
| 7304 | 7303 |
| 7305 // Layout description. | 7304 // Layout description. |
| 7306 static const int kFunctionOffset = JSObject::kHeaderSize; | 7305 static const int kFunctionOffset = JSObject::kHeaderSize; |
| 7307 static const int kContextOffset = kFunctionOffset + kPointerSize; | 7306 static const int kContextOffset = kFunctionOffset + kPointerSize; |
| 7308 static const int kReceiverOffset = kContextOffset + kPointerSize; | 7307 static const int kReceiverOffset = kContextOffset + kPointerSize; |
| (...skipping 3425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10734 } | 10733 } |
| 10735 return value; | 10734 return value; |
| 10736 } | 10735 } |
| 10737 }; | 10736 }; |
| 10738 | 10737 |
| 10739 | 10738 |
| 10740 } // NOLINT, false-positive due to second-order macros. | 10739 } // NOLINT, false-positive due to second-order macros. |
| 10741 } // NOLINT, false-positive due to second-order macros. | 10740 } // NOLINT, false-positive due to second-order macros. |
| 10742 | 10741 |
| 10743 #endif // V8_OBJECTS_H_ | 10742 #endif // V8_OBJECTS_H_ |
| OLD | NEW |