| 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 1623 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1634 return READ_FIELD(this, kValueOffset); | 1634 return READ_FIELD(this, kValueOffset); |
| 1635 } | 1635 } |
| 1636 | 1636 |
| 1637 | 1637 |
| 1638 void Cell::set_value(Object* val, WriteBarrierMode ignored) { | 1638 void Cell::set_value(Object* val, WriteBarrierMode ignored) { |
| 1639 // The write barrier is not used for global property cells. | 1639 // The write barrier is not used for global property cells. |
| 1640 ASSERT(!val->IsPropertyCell() && !val->IsCell()); | 1640 ASSERT(!val->IsPropertyCell() && !val->IsCell()); |
| 1641 WRITE_FIELD(this, kValueOffset, val); | 1641 WRITE_FIELD(this, kValueOffset, val); |
| 1642 } | 1642 } |
| 1643 | 1643 |
| 1644 ACCESSORS(PropertyCell, dependent_code, DependentCode, kDependentCodeOffset) |
| 1644 | 1645 |
| 1645 Object* PropertyCell::type_raw() { | 1646 Object* PropertyCell::type_raw() { |
| 1646 return READ_FIELD(this, kTypeOffset); | 1647 return READ_FIELD(this, kTypeOffset); |
| 1647 } | 1648 } |
| 1648 | 1649 |
| 1649 | 1650 |
| 1650 void PropertyCell::set_type_raw(Object* val, WriteBarrierMode ignored) { | 1651 void PropertyCell::set_type_raw(Object* val, WriteBarrierMode ignored) { |
| 1651 WRITE_FIELD(this, kTypeOffset, val); | 1652 WRITE_FIELD(this, kTypeOffset, val); |
| 1652 } | 1653 } |
| 1653 | 1654 |
| (...skipping 2128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3782 WRITE_UINT32_FIELD(this, kKindSpecificFlags2Offset, updated); | 3783 WRITE_UINT32_FIELD(this, kKindSpecificFlags2Offset, updated); |
| 3783 } | 3784 } |
| 3784 | 3785 |
| 3785 | 3786 |
| 3786 int Code::major_key() { | 3787 int Code::major_key() { |
| 3787 ASSERT(kind() == STUB || | 3788 ASSERT(kind() == STUB || |
| 3788 kind() == UNARY_OP_IC || | 3789 kind() == UNARY_OP_IC || |
| 3789 kind() == BINARY_OP_IC || | 3790 kind() == BINARY_OP_IC || |
| 3790 kind() == COMPARE_IC || | 3791 kind() == COMPARE_IC || |
| 3791 kind() == COMPARE_NIL_IC || | 3792 kind() == COMPARE_NIL_IC || |
| 3793 kind() == STORE_IC || |
| 3792 kind() == LOAD_IC || | 3794 kind() == LOAD_IC || |
| 3793 kind() == KEYED_LOAD_IC || | 3795 kind() == KEYED_LOAD_IC || |
| 3794 kind() == TO_BOOLEAN_IC); | 3796 kind() == TO_BOOLEAN_IC); |
| 3795 return StubMajorKeyField::decode( | 3797 return StubMajorKeyField::decode( |
| 3796 READ_UINT32_FIELD(this, kKindSpecificFlags2Offset)); | 3798 READ_UINT32_FIELD(this, kKindSpecificFlags2Offset)); |
| 3797 } | 3799 } |
| 3798 | 3800 |
| 3799 | 3801 |
| 3800 void Code::set_major_key(int major) { | 3802 void Code::set_major_key(int major) { |
| 3801 ASSERT(kind() == STUB || | 3803 ASSERT(kind() == STUB || |
| (...skipping 2383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6185 #undef WRITE_UINT32_FIELD | 6187 #undef WRITE_UINT32_FIELD |
| 6186 #undef READ_SHORT_FIELD | 6188 #undef READ_SHORT_FIELD |
| 6187 #undef WRITE_SHORT_FIELD | 6189 #undef WRITE_SHORT_FIELD |
| 6188 #undef READ_BYTE_FIELD | 6190 #undef READ_BYTE_FIELD |
| 6189 #undef WRITE_BYTE_FIELD | 6191 #undef WRITE_BYTE_FIELD |
| 6190 | 6192 |
| 6191 | 6193 |
| 6192 } } // namespace v8::internal | 6194 } } // namespace v8::internal |
| 6193 | 6195 |
| 6194 #endif // V8_OBJECTS_INL_H_ | 6196 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |