| 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 // Review notes: | 5 // Review notes: |
| 6 // | 6 // |
| 7 // - The use of macros in these inline functions may seem superfluous | 7 // - The use of macros in these inline functions may seem superfluous |
| 8 // but it is absolutely needed to make sure gcc generates optimal | 8 // but it is absolutely needed to make sure gcc generates optimal |
| 9 // code. gcc is not happy when attempting to inline too deep. | 9 // code. gcc is not happy when attempting to inline too deep. |
| 10 // | 10 // |
| (...skipping 6726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6737 WRITE_INTPTR_FIELD(this, kForeignAddressOffset, OffsetFrom(value)); | 6737 WRITE_INTPTR_FIELD(this, kForeignAddressOffset, OffsetFrom(value)); |
| 6738 } | 6738 } |
| 6739 | 6739 |
| 6740 | 6740 |
| 6741 ACCESSORS(JSGeneratorObject, function, JSFunction, kFunctionOffset) | 6741 ACCESSORS(JSGeneratorObject, function, JSFunction, kFunctionOffset) |
| 6742 ACCESSORS(JSGeneratorObject, context, Context, kContextOffset) | 6742 ACCESSORS(JSGeneratorObject, context, Context, kContextOffset) |
| 6743 ACCESSORS(JSGeneratorObject, receiver, Object, kReceiverOffset) | 6743 ACCESSORS(JSGeneratorObject, receiver, Object, kReceiverOffset) |
| 6744 ACCESSORS(JSGeneratorObject, input_or_debug_pos, Object, kInputOrDebugPosOffset) | 6744 ACCESSORS(JSGeneratorObject, input_or_debug_pos, Object, kInputOrDebugPosOffset) |
| 6745 SMI_ACCESSORS(JSGeneratorObject, resume_mode, kResumeModeOffset) | 6745 SMI_ACCESSORS(JSGeneratorObject, resume_mode, kResumeModeOffset) |
| 6746 SMI_ACCESSORS(JSGeneratorObject, continuation, kContinuationOffset) | 6746 SMI_ACCESSORS(JSGeneratorObject, continuation, kContinuationOffset) |
| 6747 ACCESSORS(JSGeneratorObject, operand_stack, FixedArray, kOperandStackOffset) | 6747 ACCESSORS(JSGeneratorObject, register_file, FixedArray, kRegisterFileOffset) |
| 6748 | 6748 |
| 6749 bool JSGeneratorObject::is_suspended() const { | 6749 bool JSGeneratorObject::is_suspended() const { |
| 6750 DCHECK_LT(kGeneratorExecuting, 0); | 6750 DCHECK_LT(kGeneratorExecuting, 0); |
| 6751 DCHECK_LT(kGeneratorClosed, 0); | 6751 DCHECK_LT(kGeneratorClosed, 0); |
| 6752 return continuation() >= 0; | 6752 return continuation() >= 0; |
| 6753 } | 6753 } |
| 6754 | 6754 |
| 6755 bool JSGeneratorObject::is_closed() const { | 6755 bool JSGeneratorObject::is_closed() const { |
| 6756 return continuation() == kGeneratorClosed; | 6756 return continuation() == kGeneratorClosed; |
| 6757 } | 6757 } |
| (...skipping 1686 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8444 #undef WRITE_INT64_FIELD | 8444 #undef WRITE_INT64_FIELD |
| 8445 #undef READ_BYTE_FIELD | 8445 #undef READ_BYTE_FIELD |
| 8446 #undef WRITE_BYTE_FIELD | 8446 #undef WRITE_BYTE_FIELD |
| 8447 #undef NOBARRIER_READ_BYTE_FIELD | 8447 #undef NOBARRIER_READ_BYTE_FIELD |
| 8448 #undef NOBARRIER_WRITE_BYTE_FIELD | 8448 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 8449 | 8449 |
| 8450 } // namespace internal | 8450 } // namespace internal |
| 8451 } // namespace v8 | 8451 } // namespace v8 |
| 8452 | 8452 |
| 8453 #endif // V8_OBJECTS_INL_H_ | 8453 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |