| OLD | NEW |
| 1 // Copyright 2010 the V8 project authors. All rights reserved. | 1 // Copyright 2010 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 1742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1753 inline void set(int index, Object* value, WriteBarrierMode mode); | 1753 inline void set(int index, Object* value, WriteBarrierMode mode); |
| 1754 | 1754 |
| 1755 // Setters for frequently used oddballs located in old space. | 1755 // Setters for frequently used oddballs located in old space. |
| 1756 inline void set_undefined(int index); | 1756 inline void set_undefined(int index); |
| 1757 inline void set_null(int index); | 1757 inline void set_null(int index); |
| 1758 inline void set_the_hole(int index); | 1758 inline void set_the_hole(int index); |
| 1759 | 1759 |
| 1760 // Setters with less debug checks for the GC to use. | 1760 // Setters with less debug checks for the GC to use. |
| 1761 inline void set_unchecked(int index, Smi* value); | 1761 inline void set_unchecked(int index, Smi* value); |
| 1762 inline void set_null_unchecked(int index); | 1762 inline void set_null_unchecked(int index); |
| 1763 inline void set_unchecked(int index, Object* value, WriteBarrierMode mode); |
| 1763 | 1764 |
| 1764 // Gives access to raw memory which stores the array's data. | 1765 // Gives access to raw memory which stores the array's data. |
| 1765 inline Object** data_start(); | 1766 inline Object** data_start(); |
| 1766 | 1767 |
| 1767 // Copy operations. | 1768 // Copy operations. |
| 1768 inline Object* Copy(); | 1769 inline Object* Copy(); |
| 1769 MUST_USE_RESULT Object* CopySize(int new_length); | 1770 MUST_USE_RESULT Object* CopySize(int new_length); |
| 1770 | 1771 |
| 1771 // Add the elements of a JSArray to this FixedArray. | 1772 // Add the elements of a JSArray to this FixedArray. |
| 1772 MUST_USE_RESULT Object* AddKeysFromJSArray(JSArray* array); | 1773 MUST_USE_RESULT Object* AddKeysFromJSArray(JSArray* array); |
| (...skipping 3949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5722 } else { | 5723 } else { |
| 5723 value &= ~(1 << bit_position); | 5724 value &= ~(1 << bit_position); |
| 5724 } | 5725 } |
| 5725 return value; | 5726 return value; |
| 5726 } | 5727 } |
| 5727 }; | 5728 }; |
| 5728 | 5729 |
| 5729 } } // namespace v8::internal | 5730 } } // namespace v8::internal |
| 5730 | 5731 |
| 5731 #endif // V8_OBJECTS_H_ | 5732 #endif // V8_OBJECTS_H_ |
| OLD | NEW |