| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 // | 4 // |
| 5 // Review notes: | 5 // Review notes: |
| 6 // | 6 // |
| 7 // - The use of macros in these inline functions may seem superfluous | 7 // - The use of macros in these inline functions may seem superfluous |
| 8 // but it is absolutely needed to make sure gcc generates optimal | 8 // but it is absolutely needed to make sure gcc generates optimal |
| 9 // code. gcc is not happy when attempting to inline too deep. | 9 // code. gcc is not happy when attempting to inline too deep. |
| 10 // | 10 // |
| (...skipping 1829 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1840 JSFunction* constructor = JSFunction::cast(map()->GetConstructor()); | 1840 JSFunction* constructor = JSFunction::cast(map()->GetConstructor()); |
| 1841 DCHECK(constructor->shared()->IsApiFunction()); | 1841 DCHECK(constructor->shared()->IsApiFunction()); |
| 1842 Object* result = | 1842 Object* result = |
| 1843 constructor->shared()->get_api_func_data()->indexed_property_handler(); | 1843 constructor->shared()->get_api_func_data()->indexed_property_handler(); |
| 1844 return InterceptorInfo::cast(result); | 1844 return InterceptorInfo::cast(result); |
| 1845 } | 1845 } |
| 1846 | 1846 |
| 1847 | 1847 |
| 1848 ACCESSORS(Oddball, to_string, String, kToStringOffset) | 1848 ACCESSORS(Oddball, to_string, String, kToStringOffset) |
| 1849 ACCESSORS(Oddball, to_number, Object, kToNumberOffset) | 1849 ACCESSORS(Oddball, to_number, Object, kToNumberOffset) |
| 1850 ACCESSORS(Oddball, to_boolean, Oddball, kToBooleanOffset) |
| 1850 ACCESSORS(Oddball, type_of, String, kTypeOfOffset) | 1851 ACCESSORS(Oddball, type_of, String, kTypeOfOffset) |
| 1851 | 1852 |
| 1852 | 1853 |
| 1853 byte Oddball::kind() const { | 1854 byte Oddball::kind() const { |
| 1854 return Smi::cast(READ_FIELD(this, kKindOffset))->value(); | 1855 return Smi::cast(READ_FIELD(this, kKindOffset))->value(); |
| 1855 } | 1856 } |
| 1856 | 1857 |
| 1857 | 1858 |
| 1858 void Oddball::set_kind(byte value) { | 1859 void Oddball::set_kind(byte value) { |
| 1859 WRITE_FIELD(this, kKindOffset, Smi::FromInt(value)); | 1860 WRITE_FIELD(this, kKindOffset, Smi::FromInt(value)); |
| (...skipping 5897 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7757 #undef WRITE_INT64_FIELD | 7758 #undef WRITE_INT64_FIELD |
| 7758 #undef READ_BYTE_FIELD | 7759 #undef READ_BYTE_FIELD |
| 7759 #undef WRITE_BYTE_FIELD | 7760 #undef WRITE_BYTE_FIELD |
| 7760 #undef NOBARRIER_READ_BYTE_FIELD | 7761 #undef NOBARRIER_READ_BYTE_FIELD |
| 7761 #undef NOBARRIER_WRITE_BYTE_FIELD | 7762 #undef NOBARRIER_WRITE_BYTE_FIELD |
| 7762 | 7763 |
| 7763 } // namespace internal | 7764 } // namespace internal |
| 7764 } // namespace v8 | 7765 } // namespace v8 |
| 7765 | 7766 |
| 7766 #endif // V8_OBJECTS_INL_H_ | 7767 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |