| 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 #ifndef V8_OBJECTS_H_ | 5 #ifndef V8_OBJECTS_H_ |
| 6 #define V8_OBJECTS_H_ | 6 #define V8_OBJECTS_H_ |
| 7 | 7 |
| 8 #include <iosfwd> | 8 #include <iosfwd> |
| 9 | 9 |
| 10 #include "src/allocation.h" | 10 #include "src/allocation.h" |
| (...skipping 8801 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8812 const uint8_t* onebyte_start; | 8812 const uint8_t* onebyte_start; |
| 8813 const uc16* twobyte_start; | 8813 const uc16* twobyte_start; |
| 8814 }; | 8814 }; |
| 8815 int length_; | 8815 int length_; |
| 8816 State state_; | 8816 State state_; |
| 8817 | 8817 |
| 8818 friend class String; | 8818 friend class String; |
| 8819 }; | 8819 }; |
| 8820 | 8820 |
| 8821 template <typename Char> | 8821 template <typename Char> |
| 8822 Vector<const Char> GetCharVector(); | 8822 INLINE(Vector<const Char> GetCharVector()); |
| 8823 | 8823 |
| 8824 // Get and set the length of the string. | 8824 // Get and set the length of the string. |
| 8825 inline int length() const; | 8825 inline int length() const; |
| 8826 inline void set_length(int value); | 8826 inline void set_length(int value); |
| 8827 | 8827 |
| 8828 // Get and set the length of the string using acquire loads and release | 8828 // Get and set the length of the string using acquire loads and release |
| 8829 // stores. | 8829 // stores. |
| 8830 inline int synchronized_length() const; | 8830 inline int synchronized_length() const; |
| 8831 inline void synchronized_set_length(int value); | 8831 inline void synchronized_set_length(int value); |
| 8832 | 8832 |
| (...skipping 2146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10979 } else { | 10979 } else { |
| 10980 value &= ~(1 << bit_position); | 10980 value &= ~(1 << bit_position); |
| 10981 } | 10981 } |
| 10982 return value; | 10982 return value; |
| 10983 } | 10983 } |
| 10984 }; | 10984 }; |
| 10985 | 10985 |
| 10986 } } // namespace v8::internal | 10986 } } // namespace v8::internal |
| 10987 | 10987 |
| 10988 #endif // V8_OBJECTS_H_ | 10988 #endif // V8_OBJECTS_H_ |
| OLD | NEW |