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