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 6278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6289 } | 6289 } |
6290 | 6290 |
6291 | 6291 |
6292 void Foreign::set_foreign_address(Address value) { | 6292 void Foreign::set_foreign_address(Address value) { |
6293 WRITE_INTPTR_FIELD(this, kForeignAddressOffset, OffsetFrom(value)); | 6293 WRITE_INTPTR_FIELD(this, kForeignAddressOffset, OffsetFrom(value)); |
6294 } | 6294 } |
6295 | 6295 |
6296 | 6296 |
6297 ACCESSORS(JSGeneratorObject, function, JSFunction, kFunctionOffset) | 6297 ACCESSORS(JSGeneratorObject, function, JSFunction, kFunctionOffset) |
6298 ACCESSORS(JSGeneratorObject, context, Context, kContextOffset) | 6298 ACCESSORS(JSGeneratorObject, context, Context, kContextOffset) |
6299 ACCESSORS(JSGeneratorObject, receiver, Object, kReceiverOffset) | |
6300 ACCESSORS(JSGeneratorObject, input, Object, kInputOffset) | 6299 ACCESSORS(JSGeneratorObject, input, Object, kInputOffset) |
6301 SMI_ACCESSORS(JSGeneratorObject, resume_mode, kResumeModeOffset) | 6300 SMI_ACCESSORS(JSGeneratorObject, resume_mode, kResumeModeOffset) |
6302 SMI_ACCESSORS(JSGeneratorObject, continuation, kContinuationOffset) | 6301 SMI_ACCESSORS(JSGeneratorObject, continuation, kContinuationOffset) |
6303 ACCESSORS(JSGeneratorObject, operand_stack, FixedArray, kOperandStackOffset) | 6302 ACCESSORS(JSGeneratorObject, operand_stack, FixedArray, kOperandStackOffset) |
6304 | 6303 |
6305 bool JSGeneratorObject::is_suspended() { | 6304 bool JSGeneratorObject::is_suspended() { |
6306 DCHECK_LT(kGeneratorExecuting, 0); | 6305 DCHECK_LT(kGeneratorExecuting, 0); |
6307 DCHECK_LT(kGeneratorClosed, 0); | 6306 DCHECK_LT(kGeneratorClosed, 0); |
6308 return continuation() >= 0; | 6307 return continuation() >= 0; |
6309 } | 6308 } |
(...skipping 1541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7851 #undef WRITE_INT64_FIELD | 7850 #undef WRITE_INT64_FIELD |
7852 #undef READ_BYTE_FIELD | 7851 #undef READ_BYTE_FIELD |
7853 #undef WRITE_BYTE_FIELD | 7852 #undef WRITE_BYTE_FIELD |
7854 #undef NOBARRIER_READ_BYTE_FIELD | 7853 #undef NOBARRIER_READ_BYTE_FIELD |
7855 #undef NOBARRIER_WRITE_BYTE_FIELD | 7854 #undef NOBARRIER_WRITE_BYTE_FIELD |
7856 | 7855 |
7857 } // namespace internal | 7856 } // namespace internal |
7858 } // namespace v8 | 7857 } // namespace v8 |
7859 | 7858 |
7860 #endif // V8_OBJECTS_INL_H_ | 7859 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |