Chromium Code Reviews| 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 1909 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1920 GetIsolate()->descriptor_lookup_cache()->Update(this, name, number); | 1920 GetIsolate()->descriptor_lookup_cache()->Update(this, name, number); |
| 1921 } | 1921 } |
| 1922 return number; | 1922 return number; |
| 1923 } | 1923 } |
| 1924 | 1924 |
| 1925 | 1925 |
| 1926 String* DescriptorArray::GetKey(int descriptor_number) { | 1926 String* DescriptorArray::GetKey(int descriptor_number) { |
| 1927 ASSERT(descriptor_number < number_of_descriptors()); | 1927 ASSERT(descriptor_number < number_of_descriptors()); |
| 1928 return String::cast(get(ToKeyIndex(descriptor_number))); | 1928 return String::cast(get(ToKeyIndex(descriptor_number))); |
| 1929 } | 1929 } |
| 1930 | 1930 |
|
Michael Starzinger
2012/05/24 14:28:54
Two lines between top-level declarations.
Toon Verwaest
2012/05/25 12:27:26
Done.
| |
| 1931 Object** DescriptorArray::GetValueSlot(int descriptor_number) { | |
| 1932 ASSERT(descriptor_number < number_of_descriptors()); | |
| 1933 return GetContentArray()->data_start() + ToValueIndex(descriptor_number); | |
| 1934 } | |
| 1931 | 1935 |
|
Michael Starzinger
2012/05/24 14:28:54
Likewise.
Toon Verwaest
2012/05/25 12:27:26
Done.
| |
| 1932 Object* DescriptorArray::GetValue(int descriptor_number) { | 1936 Object* DescriptorArray::GetValue(int descriptor_number) { |
| 1933 ASSERT(descriptor_number < number_of_descriptors()); | 1937 ASSERT(descriptor_number < number_of_descriptors()); |
| 1934 return GetContentArray()->get(ToValueIndex(descriptor_number)); | 1938 return GetContentArray()->get(ToValueIndex(descriptor_number)); |
| 1935 } | 1939 } |
| 1936 | 1940 |
| 1937 PropertyDetails DescriptorArray::GetDetails(int descriptor_number) { | 1941 PropertyDetails DescriptorArray::GetDetails(int descriptor_number) { |
| 1938 ASSERT(descriptor_number < number_of_descriptors()); | 1942 ASSERT(descriptor_number < number_of_descriptors()); |
| 1939 Object* details = GetContentArray()->get(ToDetailsIndex(descriptor_number)); | 1943 Object* details = GetContentArray()->get(ToDetailsIndex(descriptor_number)); |
| 1940 return PropertyDetails(Smi::cast(details)); | 1944 return PropertyDetails(Smi::cast(details)); |
| 1941 } | 1945 } |
| (...skipping 3100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5042 #undef WRITE_UINT32_FIELD | 5046 #undef WRITE_UINT32_FIELD |
| 5043 #undef READ_SHORT_FIELD | 5047 #undef READ_SHORT_FIELD |
| 5044 #undef WRITE_SHORT_FIELD | 5048 #undef WRITE_SHORT_FIELD |
| 5045 #undef READ_BYTE_FIELD | 5049 #undef READ_BYTE_FIELD |
| 5046 #undef WRITE_BYTE_FIELD | 5050 #undef WRITE_BYTE_FIELD |
| 5047 | 5051 |
| 5048 | 5052 |
| 5049 } } // namespace v8::internal | 5053 } } // namespace v8::internal |
| 5050 | 5054 |
| 5051 #endif // V8_OBJECTS_INL_H_ | 5055 #endif // V8_OBJECTS_INL_H_ |
| OLD | NEW |