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 5797 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5808 // the ElementsKind set. | 5808 // the ElementsKind set. |
5809 static Handle<Map> TransitionElementsTo(Handle<Map> map, | 5809 static Handle<Map> TransitionElementsTo(Handle<Map> map, |
5810 ElementsKind to_kind); | 5810 ElementsKind to_kind); |
5811 | 5811 |
5812 static Handle<Map> AsElementsKind(Handle<Map> map, ElementsKind kind); | 5812 static Handle<Map> AsElementsKind(Handle<Map> map, ElementsKind kind); |
5813 | 5813 |
5814 static Handle<Map> CopyAsElementsKind(Handle<Map> map, | 5814 static Handle<Map> CopyAsElementsKind(Handle<Map> map, |
5815 ElementsKind kind, | 5815 ElementsKind kind, |
5816 TransitionFlag flag); | 5816 TransitionFlag flag); |
5817 | 5817 |
| 5818 static Handle<Map> AsLanguageMode(Handle<Map> initial_map, |
| 5819 LanguageMode language_mode, |
| 5820 FunctionKind kind); |
| 5821 |
| 5822 |
5818 static Handle<Map> CopyForObserved(Handle<Map> map); | 5823 static Handle<Map> CopyForObserved(Handle<Map> map); |
5819 | 5824 |
5820 static Handle<Map> CopyForPreventExtensions(Handle<Map> map, | 5825 static Handle<Map> CopyForPreventExtensions(Handle<Map> map, |
5821 PropertyAttributes attrs_to_add, | 5826 PropertyAttributes attrs_to_add, |
5822 Handle<Symbol> transition_marker, | 5827 Handle<Symbol> transition_marker, |
5823 const char* reason); | 5828 const char* reason); |
5824 | 5829 |
5825 static Handle<Map> FixProxy(Handle<Map> map, InstanceType type, int size); | 5830 static Handle<Map> FixProxy(Handle<Map> map, InstanceType type, int size); |
5826 | 5831 |
5827 | 5832 |
(...skipping 4849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
10677 } | 10682 } |
10678 return value; | 10683 return value; |
10679 } | 10684 } |
10680 }; | 10685 }; |
10681 | 10686 |
10682 | 10687 |
10683 } // NOLINT, false-positive due to second-order macros. | 10688 } // NOLINT, false-positive due to second-order macros. |
10684 } // NOLINT, false-positive due to second-order macros. | 10689 } // NOLINT, false-positive due to second-order macros. |
10685 | 10690 |
10686 #endif // V8_OBJECTS_H_ | 10691 #endif // V8_OBJECTS_H_ |
OLD | NEW |