| 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 8764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8775 static inline bool IsHashFieldComputed(uint32_t field); | 8775 static inline bool IsHashFieldComputed(uint32_t field); |
| 8776 | 8776 |
| 8777 private: | 8777 private: |
| 8778 DISALLOW_IMPLICIT_CONSTRUCTORS(Name); | 8778 DISALLOW_IMPLICIT_CONSTRUCTORS(Name); |
| 8779 }; | 8779 }; |
| 8780 | 8780 |
| 8781 | 8781 |
| 8782 // ES6 symbols. | 8782 // ES6 symbols. |
| 8783 class Symbol: public Name { | 8783 class Symbol: public Name { |
| 8784 public: | 8784 public: |
| 8785 // [name]: the print name of a symbol, or undefined if none. | 8785 // [name]: the print name of a symbol, or undefined if none |
| 8786 DECL_ACCESSORS(name, Object) | 8786 DECL_ACCESSORS(name, Object) |
| 8787 | 8787 |
| 8788 DECL_ACCESSORS(flags, Smi) | 8788 DECL_ACCESSORS(flags, Smi) |
| 8789 | 8789 |
| 8790 // [is_private]: whether this is a private symbol. | 8790 // [is_private]: whether this is a private symbol. |
| 8791 DECL_BOOLEAN_ACCESSORS(is_private) | 8791 DECL_BOOLEAN_ACCESSORS(is_private) |
| 8792 | 8792 |
| 8793 // [is_own]: whether this is an own symbol, that is, only used to designate | 8793 // [is_own]: whether this is an own symbol, that is, only used to designate |
| 8794 // own properties of objects. | 8794 // own properties of objects. |
| 8795 DECL_BOOLEAN_ACCESSORS(is_own) | 8795 DECL_BOOLEAN_ACCESSORS(is_own) |
| (...skipping 2187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10983 } else { | 10983 } else { |
| 10984 value &= ~(1 << bit_position); | 10984 value &= ~(1 << bit_position); |
| 10985 } | 10985 } |
| 10986 return value; | 10986 return value; |
| 10987 } | 10987 } |
| 10988 }; | 10988 }; |
| 10989 | 10989 |
| 10990 } } // namespace v8::internal | 10990 } } // namespace v8::internal |
| 10991 | 10991 |
| 10992 #endif // V8_OBJECTS_H_ | 10992 #endif // V8_OBJECTS_H_ |
| OLD | NEW |