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 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 8033 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8044 DECL_ACCESSORS(function, JSFunction) | 8044 DECL_ACCESSORS(function, JSFunction) |
8045 | 8045 |
8046 // [context]: The context of the suspended computation. | 8046 // [context]: The context of the suspended computation. |
8047 DECL_ACCESSORS(context, Context) | 8047 DECL_ACCESSORS(context, Context) |
8048 | 8048 |
8049 // [receiver]: The receiver of the suspended computation. | 8049 // [receiver]: The receiver of the suspended computation. |
8050 DECL_ACCESSORS(receiver, Object) | 8050 DECL_ACCESSORS(receiver, Object) |
8051 | 8051 |
8052 // [input_or_debug_pos] | 8052 // [input_or_debug_pos] |
8053 // For executing generators: the most recent input value. | 8053 // For executing generators: the most recent input value. |
8054 // For suspended new-style generators: debug information (bytecode offset). | 8054 // For suspended generators: debug information (bytecode offset). |
8055 // For suspended old-style generators: unused. | |
8056 // There is currently no need to remember the most recent input value for a | 8055 // There is currently no need to remember the most recent input value for a |
8057 // suspended generator. | 8056 // suspended generator. |
8058 DECL_ACCESSORS(input_or_debug_pos, Object) | 8057 DECL_ACCESSORS(input_or_debug_pos, Object) |
8059 | 8058 |
8060 // [resume_mode]: The most recent resume mode. | 8059 // [resume_mode]: The most recent resume mode. |
8061 enum ResumeMode { kNext, kReturn, kThrow }; | 8060 enum ResumeMode { kNext, kReturn, kThrow }; |
8062 DECL_INT_ACCESSORS(resume_mode) | 8061 DECL_INT_ACCESSORS(resume_mode) |
8063 | 8062 |
8064 // [continuation] | 8063 // [continuation] |
8065 // | 8064 // |
(...skipping 3796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11862 } | 11861 } |
11863 return value; | 11862 return value; |
11864 } | 11863 } |
11865 }; | 11864 }; |
11866 | 11865 |
11867 | 11866 |
11868 } // NOLINT, false-positive due to second-order macros. | 11867 } // NOLINT, false-positive due to second-order macros. |
11869 } // NOLINT, false-positive due to second-order macros. | 11868 } // NOLINT, false-positive due to second-order macros. |
11870 | 11869 |
11871 #endif // V8_OBJECTS_H_ | 11870 #endif // V8_OBJECTS_H_ |
OLD | NEW |