OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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 4834 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4845 inline void set_non_instance_prototype(bool value); | 4845 inline void set_non_instance_prototype(bool value); |
4846 inline bool has_non_instance_prototype(); | 4846 inline bool has_non_instance_prototype(); |
4847 | 4847 |
4848 // Tells whether function has special prototype property. If not, prototype | 4848 // Tells whether function has special prototype property. If not, prototype |
4849 // property will not be created when accessed (will return undefined), | 4849 // property will not be created when accessed (will return undefined), |
4850 // and construction from this function will not be allowed. | 4850 // and construction from this function will not be allowed. |
4851 inline void set_function_with_prototype(bool value); | 4851 inline void set_function_with_prototype(bool value); |
4852 inline bool function_with_prototype(); | 4852 inline bool function_with_prototype(); |
4853 | 4853 |
4854 // Tells whether the instance with this map should be ignored by the | 4854 // Tells whether the instance with this map should be ignored by the |
4855 // __proto__ accessor. | 4855 // Object.getPrototypeOf() function and the __proto__ accessor. |
4856 inline void set_is_hidden_prototype() { | 4856 inline void set_is_hidden_prototype() { |
4857 set_bit_field(bit_field() | (1 << kIsHiddenPrototype)); | 4857 set_bit_field(bit_field() | (1 << kIsHiddenPrototype)); |
4858 } | 4858 } |
4859 | 4859 |
4860 inline bool is_hidden_prototype() { | 4860 inline bool is_hidden_prototype() { |
4861 return ((1 << kIsHiddenPrototype) & bit_field()) != 0; | 4861 return ((1 << kIsHiddenPrototype) & bit_field()) != 0; |
4862 } | 4862 } |
4863 | 4863 |
4864 // Records and queries whether the instance has a named interceptor. | 4864 // Records and queries whether the instance has a named interceptor. |
4865 inline void set_has_named_interceptor() { | 4865 inline void set_has_named_interceptor() { |
(...skipping 4203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
9069 } else { | 9069 } else { |
9070 value &= ~(1 << bit_position); | 9070 value &= ~(1 << bit_position); |
9071 } | 9071 } |
9072 return value; | 9072 return value; |
9073 } | 9073 } |
9074 }; | 9074 }; |
9075 | 9075 |
9076 } } // namespace v8::internal | 9076 } } // namespace v8::internal |
9077 | 9077 |
9078 #endif // V8_OBJECTS_H_ | 9078 #endif // V8_OBJECTS_H_ |
OLD | NEW |