| 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 5036 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5047 } | 5047 } |
| 5048 | 5048 |
| 5049 | 5049 |
| 5050 void Foreign::set_foreign_address(Address value) { | 5050 void Foreign::set_foreign_address(Address value) { |
| 5051 WRITE_INTPTR_FIELD(this, kForeignAddressOffset, OffsetFrom(value)); | 5051 WRITE_INTPTR_FIELD(this, kForeignAddressOffset, OffsetFrom(value)); |
| 5052 } | 5052 } |
| 5053 | 5053 |
| 5054 | 5054 |
| 5055 ACCESSORS(JSGeneratorObject, function, JSFunction, kFunctionOffset) | 5055 ACCESSORS(JSGeneratorObject, function, JSFunction, kFunctionOffset) |
| 5056 ACCESSORS(JSGeneratorObject, context, Context, kContextOffset) | 5056 ACCESSORS(JSGeneratorObject, context, Context, kContextOffset) |
| 5057 ACCESSORS(JSGeneratorObject, receiver, Object, kReceiverOffset) |
| 5057 SMI_ACCESSORS(JSGeneratorObject, continuation, kContinuationOffset) | 5058 SMI_ACCESSORS(JSGeneratorObject, continuation, kContinuationOffset) |
| 5058 ACCESSORS(JSGeneratorObject, operand_stack, FixedArray, kOperandStackOffset) | 5059 ACCESSORS(JSGeneratorObject, operand_stack, FixedArray, kOperandStackOffset) |
| 5059 | 5060 |
| 5060 | 5061 |
| 5061 JSGeneratorObject* JSGeneratorObject::cast(Object* obj) { | 5062 JSGeneratorObject* JSGeneratorObject::cast(Object* obj) { |
| 5062 ASSERT(obj->IsJSGeneratorObject()); | 5063 ASSERT(obj->IsJSGeneratorObject()); |
| 5063 ASSERT(HeapObject::cast(obj)->Size() == JSGeneratorObject::kSize); | 5064 ASSERT(HeapObject::cast(obj)->Size() == JSGeneratorObject::kSize); |
| 5064 return reinterpret_cast<JSGeneratorObject*>(obj); | 5065 return reinterpret_cast<JSGeneratorObject*>(obj); |
| 5065 } | 5066 } |
| 5066 | 5067 |
| (...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6145 #undef WRITE_UINT32_FIELD | 6146 #undef WRITE_UINT32_FIELD |
| 6146 #undef READ_SHORT_FIELD | 6147 #undef READ_SHORT_FIELD |
| 6147 #undef WRITE_SHORT_FIELD | 6148 #undef WRITE_SHORT_FIELD |
| 6148 #undef READ_BYTE_FIELD | 6149 #undef READ_BYTE_FIELD |
| 6149 #undef WRITE_BYTE_FIELD | 6150 #undef WRITE_BYTE_FIELD |
| 6150 | 6151 |
| 6151 | 6152 |
| 6152 } } // namespace v8::internal | 6153 } } // namespace v8::internal |
| 6153 | 6154 |
| 6154 #endif // V8_OBJECTS_INL_H_ | 6155 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |