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...) 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_suspended(); |
7525 | 7526 |
7526 // [operand_stack]: Saved operand stack. | 7527 // [operand_stack]: Saved operand stack. |
7527 DECL_ACCESSORS(operand_stack, FixedArray) | 7528 DECL_ACCESSORS(operand_stack, FixedArray) |
7528 | 7529 |
7529 // [stack_handler_index]: Index of first stack handler in operand_stack, or -1 | 7530 // [stack_handler_index]: Index of first stack handler in operand_stack, or -1 |
7530 // if the captured activation had no stack handler. | 7531 // if the captured activation had no stack handler. |
7531 inline int stack_handler_index(); | 7532 inline int stack_handler_index(); |
7532 inline void set_stack_handler_index(int stack_handler_index); | 7533 inline void set_stack_handler_index(int stack_handler_index); |
7533 | 7534 |
7534 // Casting. | 7535 // Casting. |
(...skipping 3659 matching lines...) Loading... |
11194 } else { | 11195 } else { |
11195 value &= ~(1 << bit_position); | 11196 value &= ~(1 << bit_position); |
11196 } | 11197 } |
11197 return value; | 11198 return value; |
11198 } | 11199 } |
11199 }; | 11200 }; |
11200 | 11201 |
11201 } } // namespace v8::internal | 11202 } } // namespace v8::internal |
11202 | 11203 |
11203 #endif // V8_OBJECTS_H_ | 11204 #endif // V8_OBJECTS_H_ |
OLD | NEW |