| OLD | NEW |
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 3743 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3754 | 3754 |
| 3755 void JSBuiltinsObject::set_javascript_builtin_code(Builtins::JavaScript id, | 3755 void JSBuiltinsObject::set_javascript_builtin_code(Builtins::JavaScript id, |
| 3756 Code* value) { | 3756 Code* value) { |
| 3757 ASSERT(id < kJSBuiltinsCount); // id is unsigned. | 3757 ASSERT(id < kJSBuiltinsCount); // id is unsigned. |
| 3758 WRITE_FIELD(this, OffsetOfCodeWithId(id), value); | 3758 WRITE_FIELD(this, OffsetOfCodeWithId(id), value); |
| 3759 ASSERT(!HEAP->InNewSpace(value)); | 3759 ASSERT(!HEAP->InNewSpace(value)); |
| 3760 } | 3760 } |
| 3761 | 3761 |
| 3762 | 3762 |
| 3763 ACCESSORS(JSProxy, handler, Object, kHandlerOffset) | 3763 ACCESSORS(JSProxy, handler, Object, kHandlerOffset) |
| 3764 ACCESSORS(JSProxy, padding, Object, kPaddingOffset) |
| 3764 | 3765 |
| 3765 | 3766 |
| 3766 Address Foreign::address() { | 3767 Address Foreign::address() { |
| 3767 return AddressFrom<Address>(READ_INTPTR_FIELD(this, kAddressOffset)); | 3768 return AddressFrom<Address>(READ_INTPTR_FIELD(this, kAddressOffset)); |
| 3768 } | 3769 } |
| 3769 | 3770 |
| 3770 | 3771 |
| 3771 void Foreign::set_address(Address value) { | 3772 void Foreign::set_address(Address value) { |
| 3772 WRITE_INTPTR_FIELD(this, kAddressOffset, OffsetFrom(value)); | 3773 WRITE_INTPTR_FIELD(this, kAddressOffset, OffsetFrom(value)); |
| 3773 } | 3774 } |
| (...skipping 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4463 #undef WRITE_INT_FIELD | 4464 #undef WRITE_INT_FIELD |
| 4464 #undef READ_SHORT_FIELD | 4465 #undef READ_SHORT_FIELD |
| 4465 #undef WRITE_SHORT_FIELD | 4466 #undef WRITE_SHORT_FIELD |
| 4466 #undef READ_BYTE_FIELD | 4467 #undef READ_BYTE_FIELD |
| 4467 #undef WRITE_BYTE_FIELD | 4468 #undef WRITE_BYTE_FIELD |
| 4468 | 4469 |
| 4469 | 4470 |
| 4470 } } // namespace v8::internal | 4471 } } // namespace v8::internal |
| 4471 | 4472 |
| 4472 #endif // V8_OBJECTS_INL_H_ | 4473 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |