| 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 5914 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5925 ElementsKind kind, | 5925 ElementsKind kind, |
| 5926 TransitionFlag flag); | 5926 TransitionFlag flag); |
| 5927 | 5927 |
| 5928 static Handle<Map> CopyForObserved(Handle<Map> map); | 5928 static Handle<Map> CopyForObserved(Handle<Map> map); |
| 5929 | 5929 |
| 5930 static Handle<Map> CopyForPreventExtensions(Handle<Map> map, | 5930 static Handle<Map> CopyForPreventExtensions(Handle<Map> map, |
| 5931 PropertyAttributes attrs_to_add, | 5931 PropertyAttributes attrs_to_add, |
| 5932 Handle<Symbol> transition_marker, | 5932 Handle<Symbol> transition_marker, |
| 5933 const char* reason); | 5933 const char* reason); |
| 5934 | 5934 |
| 5935 static MaybeHandle<Map> TransitionForPreventExtensions( |
| 5936 Handle<Map> old_map, PropertyAttributes attrs, |
| 5937 Handle<Symbol> transition_marker); |
| 5938 |
| 5939 static Handle<Symbol> AsTransitionMarker(Isolate* isolate, |
| 5940 PropertyAttributes attrs); |
| 5941 |
| 5935 static Handle<Map> FixProxy(Handle<Map> map, InstanceType type, int size); | 5942 static Handle<Map> FixProxy(Handle<Map> map, InstanceType type, int size); |
| 5936 | 5943 |
| 5937 | 5944 |
| 5938 // Maximal number of fast properties. Used to restrict the number of map | 5945 // Maximal number of fast properties. Used to restrict the number of map |
| 5939 // transitions to avoid an explosion in the number of maps for objects used as | 5946 // transitions to avoid an explosion in the number of maps for objects used as |
| 5940 // dictionaries. | 5947 // dictionaries. |
| 5941 inline bool TooManyFastProperties(StoreFromKeyed store_mode); | 5948 inline bool TooManyFastProperties(StoreFromKeyed store_mode); |
| 5942 static Handle<Map> TransitionToDataProperty(Handle<Map> map, | 5949 static Handle<Map> TransitionToDataProperty(Handle<Map> map, |
| 5943 Handle<Name> name, | 5950 Handle<Name> name, |
| 5944 Handle<Object> value, | 5951 Handle<Object> value, |
| (...skipping 4843 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10788 } else { | 10795 } else { |
| 10789 value &= ~(1 << bit_position); | 10796 value &= ~(1 << bit_position); |
| 10790 } | 10797 } |
| 10791 return value; | 10798 return value; |
| 10792 } | 10799 } |
| 10793 }; | 10800 }; |
| 10794 | 10801 |
| 10795 } } // namespace v8::internal | 10802 } } // namespace v8::internal |
| 10796 | 10803 |
| 10797 #endif // V8_OBJECTS_H_ | 10804 #endif // V8_OBJECTS_H_ |
| OLD | NEW |