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