| OLD | NEW |
| 1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 3042 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3053 #ifdef DEBUG | 3053 #ifdef DEBUG |
| 3054 inline uint32_t type() { return type_; } | 3054 inline uint32_t type() { return type_; } |
| 3055 inline void invalidate() { valid_ = false; } | 3055 inline void invalidate() { valid_ = false; } |
| 3056 inline bool valid() { return valid_; } | 3056 inline bool valid() { return valid_; } |
| 3057 #else | 3057 #else |
| 3058 inline void invalidate() { } | 3058 inline void invalidate() { } |
| 3059 #endif | 3059 #endif |
| 3060 private: | 3060 private: |
| 3061 uint32_t type_; | 3061 uint32_t type_; |
| 3062 #ifdef DEBUG | 3062 #ifdef DEBUG |
| 3063 inline void set_valid() { valid_ = true; } |
| 3063 bool valid_; | 3064 bool valid_; |
| 3065 #else |
| 3066 inline void set_valid() { } |
| 3064 #endif | 3067 #endif |
| 3065 }; | 3068 }; |
| 3066 | 3069 |
| 3067 | 3070 |
| 3068 // The String abstract class captures JavaScript string values: | 3071 // The String abstract class captures JavaScript string values: |
| 3069 // | 3072 // |
| 3070 // Ecma-262: | 3073 // Ecma-262: |
| 3071 // 4.3.16 String Value | 3074 // 4.3.16 String Value |
| 3072 // A string value is a member of the type String and is a finite | 3075 // A string value is a member of the type String and is a finite |
| 3073 // ordered sequence of zero or more 16-bit unsigned integer values. | 3076 // ordered sequence of zero or more 16-bit unsigned integer values. |
| (...skipping 1089 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4163 } else { | 4166 } else { |
| 4164 value &= ~(1 << bit_position); | 4167 value &= ~(1 << bit_position); |
| 4165 } | 4168 } |
| 4166 return value; | 4169 return value; |
| 4167 } | 4170 } |
| 4168 }; | 4171 }; |
| 4169 | 4172 |
| 4170 } } // namespace v8::internal | 4173 } } // namespace v8::internal |
| 4171 | 4174 |
| 4172 #endif // V8_OBJECTS_H_ | 4175 #endif // V8_OBJECTS_H_ |
| OLD | NEW |