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 1842 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1853 | 1853 |
1854 | 1854 |
1855 AccessorDescriptor* DescriptorArray::GetCallbacks(int descriptor_number) { | 1855 AccessorDescriptor* DescriptorArray::GetCallbacks(int descriptor_number) { |
1856 ASSERT(GetType(descriptor_number) == CALLBACKS); | 1856 ASSERT(GetType(descriptor_number) == CALLBACKS); |
1857 Foreign* p = Foreign::cast(GetCallbacksObject(descriptor_number)); | 1857 Foreign* p = Foreign::cast(GetCallbacksObject(descriptor_number)); |
1858 return reinterpret_cast<AccessorDescriptor*>(p->foreign_address()); | 1858 return reinterpret_cast<AccessorDescriptor*>(p->foreign_address()); |
1859 } | 1859 } |
1860 | 1860 |
1861 | 1861 |
1862 bool DescriptorArray::IsProperty(int descriptor_number) { | 1862 bool DescriptorArray::IsProperty(int descriptor_number) { |
1863 return GetType(descriptor_number) < FIRST_PHANTOM_PROPERTY_TYPE; | 1863 return IsRealProperty(GetType(descriptor_number)); |
1864 } | 1864 } |
1865 | 1865 |
1866 | 1866 |
1867 bool DescriptorArray::IsTransition(int descriptor_number) { | 1867 bool DescriptorArray::IsTransition(int descriptor_number) { |
1868 return IsTransitionType(GetType(descriptor_number)); | 1868 return IsTransitionType(GetType(descriptor_number)); |
1869 } | 1869 } |
1870 | 1870 |
1871 | 1871 |
1872 bool DescriptorArray::IsNullDescriptor(int descriptor_number) { | 1872 bool DescriptorArray::IsNullDescriptor(int descriptor_number) { |
1873 return GetType(descriptor_number) == NULL_DESCRIPTOR; | 1873 return GetType(descriptor_number) == NULL_DESCRIPTOR; |
(...skipping 2731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4605 #undef WRITE_INT_FIELD | 4605 #undef WRITE_INT_FIELD |
4606 #undef READ_SHORT_FIELD | 4606 #undef READ_SHORT_FIELD |
4607 #undef WRITE_SHORT_FIELD | 4607 #undef WRITE_SHORT_FIELD |
4608 #undef READ_BYTE_FIELD | 4608 #undef READ_BYTE_FIELD |
4609 #undef WRITE_BYTE_FIELD | 4609 #undef WRITE_BYTE_FIELD |
4610 | 4610 |
4611 | 4611 |
4612 } } // namespace v8::internal | 4612 } } // namespace v8::internal |
4613 | 4613 |
4614 #endif // V8_OBJECTS_INL_H_ | 4614 #endif // V8_OBJECTS_INL_H_ |
OLD | NEW |