OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 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_FACTORY_H_ | 5 #ifndef V8_FACTORY_H_ |
6 #define V8_FACTORY_H_ | 6 #define V8_FACTORY_H_ |
7 | 7 |
8 #include "isolate.h" | 8 #include "isolate.h" |
9 | 9 |
10 namespace v8 { | 10 namespace v8 { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 Handle<ObjectHashTable> NewObjectHashTable( | 49 Handle<ObjectHashTable> NewObjectHashTable( |
50 int at_least_space_for, | 50 int at_least_space_for, |
51 MinimumCapacity capacity_option = USE_DEFAULT_MINIMUM_CAPACITY); | 51 MinimumCapacity capacity_option = USE_DEFAULT_MINIMUM_CAPACITY); |
52 | 52 |
53 Handle<OrderedHashSet> NewOrderedHashSet(); | 53 Handle<OrderedHashSet> NewOrderedHashSet(); |
54 Handle<OrderedHashMap> NewOrderedHashMap(); | 54 Handle<OrderedHashMap> NewOrderedHashMap(); |
55 | 55 |
56 Handle<WeakHashTable> NewWeakHashTable(int at_least_space_for); | 56 Handle<WeakHashTable> NewWeakHashTable(int at_least_space_for); |
57 | 57 |
58 Handle<DescriptorArray> NewDescriptorArray(int number_of_descriptors, | |
59 int slack = 0); | |
60 Handle<TransitionArray> NewTransitionArray(int number_of_transitions); | |
61 Handle<TransitionArray> NewSimpleTransitionArray(Handle<Map> target); | |
62 Handle<DeoptimizationInputData> NewDeoptimizationInputData( | 58 Handle<DeoptimizationInputData> NewDeoptimizationInputData( |
63 int deopt_entry_count, | 59 int deopt_entry_count, |
64 PretenureFlag pretenure); | 60 PretenureFlag pretenure); |
65 Handle<DeoptimizationOutputData> NewDeoptimizationOutputData( | 61 Handle<DeoptimizationOutputData> NewDeoptimizationOutputData( |
66 int deopt_entry_count, | 62 int deopt_entry_count, |
67 PretenureFlag pretenure); | 63 PretenureFlag pretenure); |
68 | 64 |
69 // Create a new boxed value. | 65 // Create a new boxed value. |
70 Handle<Box> NewBox(Handle<Object> value); | 66 Handle<Box> NewBox(Handle<Object> value); |
71 | 67 |
(...skipping 541 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
613 | 609 |
614 // Update the map cache in the native context with (keys, map) | 610 // Update the map cache in the native context with (keys, map) |
615 Handle<MapCache> AddToMapCache(Handle<Context> context, | 611 Handle<MapCache> AddToMapCache(Handle<Context> context, |
616 Handle<FixedArray> keys, | 612 Handle<FixedArray> keys, |
617 Handle<Map> map); | 613 Handle<Map> map); |
618 }; | 614 }; |
619 | 615 |
620 } } // namespace v8::internal | 616 } } // namespace v8::internal |
621 | 617 |
622 #endif // V8_FACTORY_H_ | 618 #endif // V8_FACTORY_H_ |
OLD | NEW |