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 6050 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
6061 inline void set_migration_target(bool value); | 6061 inline void set_migration_target(bool value); |
6062 inline bool is_migration_target(); | 6062 inline bool is_migration_target(); |
6063 inline void set_counter(int value); | 6063 inline void set_counter(int value); |
6064 inline int counter(); | 6064 inline int counter(); |
6065 inline void deprecate(); | 6065 inline void deprecate(); |
6066 inline bool is_deprecated(); | 6066 inline bool is_deprecated(); |
6067 inline bool CanBeDeprecated(); | 6067 inline bool CanBeDeprecated(); |
6068 // Returns a non-deprecated version of the input. If the input was not | 6068 // Returns a non-deprecated version of the input. If the input was not |
6069 // deprecated, it is directly returned. Otherwise, the non-deprecated version | 6069 // deprecated, it is directly returned. Otherwise, the non-deprecated version |
6070 // is found by re-transitioning from the root of the transition tree using the | 6070 // is found by re-transitioning from the root of the transition tree using the |
6071 // descriptor array of the map. Returns NULL if no updated map is found. | 6071 // descriptor array of the map. Returns NULL if no updated map is found. |
Igor Sheludko
2015/02/23 17:55:02
Returns empty handle...
| |
6072 // This method also applies any pending migrations along the prototype chain. | |
6073 static MaybeHandle<Map> TryUpdate(Handle<Map> map) WARN_UNUSED_RESULT; | 6072 static MaybeHandle<Map> TryUpdate(Handle<Map> map) WARN_UNUSED_RESULT; |
6074 // Same as above, but does not touch the prototype chain. | |
6075 static MaybeHandle<Map> TryUpdateInternal(Handle<Map> map) | |
6076 WARN_UNUSED_RESULT; | |
6077 | 6073 |
6078 // Returns a non-deprecated version of the input. This method may deprecate | 6074 // Returns a non-deprecated version of the input. This method may deprecate |
6079 // existing maps along the way if encodings conflict. Not for use while | 6075 // existing maps along the way if encodings conflict. Not for use while |
6080 // gathering type feedback. Use TryUpdate in those cases instead. | 6076 // gathering type feedback. Use TryUpdate in those cases instead. |
6081 static Handle<Map> Update(Handle<Map> map); | 6077 static Handle<Map> Update(Handle<Map> map); |
6082 | 6078 |
6083 static Handle<Map> CopyDropDescriptors(Handle<Map> map); | 6079 static Handle<Map> CopyDropDescriptors(Handle<Map> map); |
6084 static Handle<Map> CopyInsertDescriptor(Handle<Map> map, | 6080 static Handle<Map> CopyInsertDescriptor(Handle<Map> map, |
6085 Descriptor* descriptor, | 6081 Descriptor* descriptor, |
6086 TransitionFlag flag); | 6082 TransitionFlag flag); |
(...skipping 4904 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
10991 } else { | 10987 } else { |
10992 value &= ~(1 << bit_position); | 10988 value &= ~(1 << bit_position); |
10993 } | 10989 } |
10994 return value; | 10990 return value; |
10995 } | 10991 } |
10996 }; | 10992 }; |
10997 | 10993 |
10998 } } // namespace v8::internal | 10994 } } // namespace v8::internal |
10999 | 10995 |
11000 #endif // V8_OBJECTS_H_ | 10996 #endif // V8_OBJECTS_H_ |
OLD | NEW |