| 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 2404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2415 | 2415 |
| 2416 static int ToValueIndex(int descriptor_number) { | 2416 static int ToValueIndex(int descriptor_number) { |
| 2417 return descriptor_number << 1; | 2417 return descriptor_number << 1; |
| 2418 } | 2418 } |
| 2419 | 2419 |
| 2420 bool is_null_descriptor(int descriptor_number) { | 2420 bool is_null_descriptor(int descriptor_number) { |
| 2421 return PropertyDetails(GetDetails(descriptor_number)).type() == | 2421 return PropertyDetails(GetDetails(descriptor_number)).type() == |
| 2422 NULL_DESCRIPTOR; | 2422 NULL_DESCRIPTOR; |
| 2423 } | 2423 } |
| 2424 // Swap operation on FixedArray without using write barriers. | 2424 // Swap operation on FixedArray without using write barriers. |
| 2425 static inline void fast_swap(FixedArray* array, int first, int second); | 2425 static inline void swap_elements(FixedArray* array, int first, int second); |
| 2426 | 2426 |
| 2427 // Swap descriptor first and second. | 2427 // Swap descriptor first and second. |
| 2428 inline void Swap(int first, int second); | 2428 inline void Swap(int first, int second); |
| 2429 | 2429 |
| 2430 FixedArray* GetContentArray() { | 2430 FixedArray* GetContentArray() { |
| 2431 return FixedArray::cast(get(kContentArrayIndex)); | 2431 return FixedArray::cast(get(kContentArrayIndex)); |
| 2432 } | 2432 } |
| 2433 DISALLOW_IMPLICIT_CONSTRUCTORS(DescriptorArray); | 2433 DISALLOW_IMPLICIT_CONSTRUCTORS(DescriptorArray); |
| 2434 }; | 2434 }; |
| 2435 | 2435 |
| (...skipping 5076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7512 } else { | 7512 } else { |
| 7513 value &= ~(1 << bit_position); | 7513 value &= ~(1 << bit_position); |
| 7514 } | 7514 } |
| 7515 return value; | 7515 return value; |
| 7516 } | 7516 } |
| 7517 }; | 7517 }; |
| 7518 | 7518 |
| 7519 } } // namespace v8::internal | 7519 } } // namespace v8::internal |
| 7520 | 7520 |
| 7521 #endif // V8_OBJECTS_H_ | 7521 #endif // V8_OBJECTS_H_ |
| OLD | NEW |