OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 "allocation.h" | 8 #include "allocation.h" |
9 #include "assert-scope.h" | 9 #include "assert-scope.h" |
10 #include "builtins.h" | 10 #include "builtins.h" |
(...skipping 7504 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7515 // [receiver]: The receiver of the suspended computation. | 7515 // [receiver]: The receiver of the suspended computation. |
7516 DECL_ACCESSORS(receiver, Object) | 7516 DECL_ACCESSORS(receiver, Object) |
7517 | 7517 |
7518 // [continuation]: Offset into code of continuation. | 7518 // [continuation]: Offset into code of continuation. |
7519 // | 7519 // |
7520 // A positive offset indicates a suspended generator. The special | 7520 // A positive offset indicates a suspended generator. The special |
7521 // kGeneratorExecuting and kGeneratorClosed values indicate that a generator | 7521 // kGeneratorExecuting and kGeneratorClosed values indicate that a generator |
7522 // cannot be resumed. | 7522 // cannot be resumed. |
7523 inline int continuation(); | 7523 inline int continuation(); |
7524 inline void set_continuation(int continuation); | 7524 inline void set_continuation(int continuation); |
| 7525 inline bool is_closed(); |
| 7526 inline bool is_executing(); |
7525 inline bool is_suspended(); | 7527 inline bool is_suspended(); |
7526 | 7528 |
7527 // [operand_stack]: Saved operand stack. | 7529 // [operand_stack]: Saved operand stack. |
7528 DECL_ACCESSORS(operand_stack, FixedArray) | 7530 DECL_ACCESSORS(operand_stack, FixedArray) |
7529 | 7531 |
7530 // [stack_handler_index]: Index of first stack handler in operand_stack, or -1 | 7532 // [stack_handler_index]: Index of first stack handler in operand_stack, or -1 |
7531 // if the captured activation had no stack handler. | 7533 // if the captured activation had no stack handler. |
7532 inline int stack_handler_index(); | 7534 inline int stack_handler_index(); |
7533 inline void set_stack_handler_index(int stack_handler_index); | 7535 inline void set_stack_handler_index(int stack_handler_index); |
7534 | 7536 |
(...skipping 3660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11195 } else { | 11197 } else { |
11196 value &= ~(1 << bit_position); | 11198 value &= ~(1 << bit_position); |
11197 } | 11199 } |
11198 return value; | 11200 return value; |
11199 } | 11201 } |
11200 }; | 11202 }; |
11201 | 11203 |
11202 } } // namespace v8::internal | 11204 } } // namespace v8::internal |
11203 | 11205 |
11204 #endif // V8_OBJECTS_H_ | 11206 #endif // V8_OBJECTS_H_ |
OLD | NEW |