OLD | NEW |
1 // Copyright 2013 the V8 project authors. All rights reserved. | 1 // Copyright 2013 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 124 matching lines...) Loading... |
135 | 135 |
136 Handle<ObjectHashSet> Factory::NewObjectHashSet(int at_least_space_for) { | 136 Handle<ObjectHashSet> Factory::NewObjectHashSet(int at_least_space_for) { |
137 ASSERT(0 <= at_least_space_for); | 137 ASSERT(0 <= at_least_space_for); |
138 CALL_HEAP_FUNCTION(isolate(), | 138 CALL_HEAP_FUNCTION(isolate(), |
139 ObjectHashSet::Allocate(isolate()->heap(), | 139 ObjectHashSet::Allocate(isolate()->heap(), |
140 at_least_space_for), | 140 at_least_space_for), |
141 ObjectHashSet); | 141 ObjectHashSet); |
142 } | 142 } |
143 | 143 |
144 | 144 |
| 145 Handle<OrderedHashSet> Factory::NewOrderedHashSet() { |
| 146 CALL_HEAP_FUNCTION(isolate(), |
| 147 OrderedHashSet::Allocate(isolate()->heap(), 4), |
| 148 OrderedHashSet); |
| 149 } |
| 150 |
| 151 |
| 152 Handle<OrderedHashMap> Factory::NewOrderedHashMap() { |
| 153 CALL_HEAP_FUNCTION(isolate(), |
| 154 OrderedHashMap::Allocate(isolate()->heap(), 4), |
| 155 OrderedHashMap); |
| 156 } |
| 157 |
| 158 |
145 Handle<ObjectHashTable> Factory::NewObjectHashTable( | 159 Handle<ObjectHashTable> Factory::NewObjectHashTable( |
146 int at_least_space_for, | 160 int at_least_space_for, |
147 MinimumCapacity capacity_option) { | 161 MinimumCapacity capacity_option) { |
148 ASSERT(0 <= at_least_space_for); | 162 ASSERT(0 <= at_least_space_for); |
149 CALL_HEAP_FUNCTION(isolate(), | 163 CALL_HEAP_FUNCTION(isolate(), |
150 ObjectHashTable::Allocate(isolate()->heap(), | 164 ObjectHashTable::Allocate(isolate()->heap(), |
151 at_least_space_for, | 165 at_least_space_for, |
152 capacity_option), | 166 capacity_option), |
153 ObjectHashTable); | 167 ObjectHashTable); |
154 } | 168 } |
(...skipping 1879 matching lines...) Loading... |
2034 return Handle<Object>::null(); | 2048 return Handle<Object>::null(); |
2035 } | 2049 } |
2036 | 2050 |
2037 | 2051 |
2038 Handle<Object> Factory::ToBoolean(bool value) { | 2052 Handle<Object> Factory::ToBoolean(bool value) { |
2039 return value ? true_value() : false_value(); | 2053 return value ? true_value() : false_value(); |
2040 } | 2054 } |
2041 | 2055 |
2042 | 2056 |
2043 } } // namespace v8::internal | 2057 } } // namespace v8::internal |
OLD | NEW |