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 6291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6302 | 6302 |
6303 | 6303 |
6304 void Foreign::set_foreign_address(Address value) { | 6304 void Foreign::set_foreign_address(Address value) { |
6305 WRITE_INTPTR_FIELD(this, kForeignAddressOffset, OffsetFrom(value)); | 6305 WRITE_INTPTR_FIELD(this, kForeignAddressOffset, OffsetFrom(value)); |
6306 } | 6306 } |
6307 | 6307 |
6308 | 6308 |
6309 ACCESSORS(JSGeneratorObject, function, JSFunction, kFunctionOffset) | 6309 ACCESSORS(JSGeneratorObject, function, JSFunction, kFunctionOffset) |
6310 ACCESSORS(JSGeneratorObject, context, Context, kContextOffset) | 6310 ACCESSORS(JSGeneratorObject, context, Context, kContextOffset) |
6311 ACCESSORS(JSGeneratorObject, receiver, Object, kReceiverOffset) | 6311 ACCESSORS(JSGeneratorObject, receiver, Object, kReceiverOffset) |
| 6312 ACCESSORS(JSGeneratorObject, input, Object, kInputOffset) |
6312 SMI_ACCESSORS(JSGeneratorObject, continuation, kContinuationOffset) | 6313 SMI_ACCESSORS(JSGeneratorObject, continuation, kContinuationOffset) |
6313 ACCESSORS(JSGeneratorObject, operand_stack, FixedArray, kOperandStackOffset) | 6314 ACCESSORS(JSGeneratorObject, operand_stack, FixedArray, kOperandStackOffset) |
6314 | 6315 |
6315 bool JSGeneratorObject::is_suspended() { | 6316 bool JSGeneratorObject::is_suspended() { |
6316 DCHECK_LT(kGeneratorExecuting, kGeneratorClosed); | 6317 DCHECK_LT(kGeneratorExecuting, kGeneratorClosed); |
6317 DCHECK_EQ(kGeneratorClosed, 0); | 6318 DCHECK_EQ(kGeneratorClosed, 0); |
6318 return continuation() > 0; | 6319 return continuation() > 0; |
6319 } | 6320 } |
6320 | 6321 |
6321 bool JSGeneratorObject::is_closed() { | 6322 bool JSGeneratorObject::is_closed() { |
(...skipping 1499 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7821 #undef WRITE_INT64_FIELD | 7822 #undef WRITE_INT64_FIELD |
7822 #undef READ_BYTE_FIELD | 7823 #undef READ_BYTE_FIELD |
7823 #undef WRITE_BYTE_FIELD | 7824 #undef WRITE_BYTE_FIELD |
7824 #undef NOBARRIER_READ_BYTE_FIELD | 7825 #undef NOBARRIER_READ_BYTE_FIELD |
7825 #undef NOBARRIER_WRITE_BYTE_FIELD | 7826 #undef NOBARRIER_WRITE_BYTE_FIELD |
7826 | 7827 |
7827 } // namespace internal | 7828 } // namespace internal |
7828 } // namespace v8 | 7829 } // namespace v8 |
7829 | 7830 |
7830 #endif // V8_OBJECTS_INL_H_ | 7831 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |