OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 4996 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5007 return AddressFrom<Address>(READ_INTPTR_FIELD(this, kForeignAddressOffset)); | 5007 return AddressFrom<Address>(READ_INTPTR_FIELD(this, kForeignAddressOffset)); |
5008 } | 5008 } |
5009 | 5009 |
5010 | 5010 |
5011 void Foreign::set_foreign_address(Address value) { | 5011 void Foreign::set_foreign_address(Address value) { |
5012 WRITE_INTPTR_FIELD(this, kForeignAddressOffset, OffsetFrom(value)); | 5012 WRITE_INTPTR_FIELD(this, kForeignAddressOffset, OffsetFrom(value)); |
5013 } | 5013 } |
5014 | 5014 |
5015 | 5015 |
5016 ACCESSORS(JSGeneratorObject, function, JSFunction, kFunctionOffset) | 5016 ACCESSORS(JSGeneratorObject, function, JSFunction, kFunctionOffset) |
5017 ACCESSORS(JSGeneratorObject, context, Object, kContextOffset) | 5017 ACCESSORS(JSGeneratorObject, context, Context, kContextOffset) |
5018 SMI_ACCESSORS(JSGeneratorObject, continuation, kContinuationOffset) | 5018 SMI_ACCESSORS(JSGeneratorObject, continuation, kContinuationOffset) |
5019 ACCESSORS(JSGeneratorObject, operand_stack, FixedArray, kOperandStackOffset) | 5019 ACCESSORS(JSGeneratorObject, operand_stack, FixedArray, kOperandStackOffset) |
5020 | 5020 |
5021 | 5021 |
5022 JSGeneratorObject* JSGeneratorObject::cast(Object* obj) { | 5022 JSGeneratorObject* JSGeneratorObject::cast(Object* obj) { |
5023 ASSERT(obj->IsJSGeneratorObject()); | 5023 ASSERT(obj->IsJSGeneratorObject()); |
5024 ASSERT(HeapObject::cast(obj)->Size() == JSGeneratorObject::kSize); | 5024 ASSERT(HeapObject::cast(obj)->Size() == JSGeneratorObject::kSize); |
5025 return reinterpret_cast<JSGeneratorObject*>(obj); | 5025 return reinterpret_cast<JSGeneratorObject*>(obj); |
5026 } | 5026 } |
5027 | 5027 |
(...skipping 1070 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6098 #undef WRITE_UINT32_FIELD | 6098 #undef WRITE_UINT32_FIELD |
6099 #undef READ_SHORT_FIELD | 6099 #undef READ_SHORT_FIELD |
6100 #undef WRITE_SHORT_FIELD | 6100 #undef WRITE_SHORT_FIELD |
6101 #undef READ_BYTE_FIELD | 6101 #undef READ_BYTE_FIELD |
6102 #undef WRITE_BYTE_FIELD | 6102 #undef WRITE_BYTE_FIELD |
6103 | 6103 |
6104 | 6104 |
6105 } } // namespace v8::internal | 6105 } } // namespace v8::internal |
6106 | 6106 |
6107 #endif // V8_OBJECTS_INL_H_ | 6107 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |