OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 77 |
78 | 78 |
79 Handle<NumberDictionary> Factory::NewNumberDictionary(int at_least_space_for) { | 79 Handle<NumberDictionary> Factory::NewNumberDictionary(int at_least_space_for) { |
80 ASSERT(0 <= at_least_space_for); | 80 ASSERT(0 <= at_least_space_for); |
81 CALL_HEAP_FUNCTION(isolate(), | 81 CALL_HEAP_FUNCTION(isolate(), |
82 NumberDictionary::Allocate(at_least_space_for), | 82 NumberDictionary::Allocate(at_least_space_for), |
83 NumberDictionary); | 83 NumberDictionary); |
84 } | 84 } |
85 | 85 |
86 | 86 |
| 87 Handle<ObjectHashTable> Factory::NewObjectHashTable(int at_least_space_for) { |
| 88 ASSERT(0 <= at_least_space_for); |
| 89 CALL_HEAP_FUNCTION(isolate(), |
| 90 ObjectHashTable::Allocate(at_least_space_for), |
| 91 ObjectHashTable); |
| 92 } |
| 93 |
| 94 |
87 Handle<DescriptorArray> Factory::NewDescriptorArray(int number_of_descriptors) { | 95 Handle<DescriptorArray> Factory::NewDescriptorArray(int number_of_descriptors) { |
88 ASSERT(0 <= number_of_descriptors); | 96 ASSERT(0 <= number_of_descriptors); |
89 CALL_HEAP_FUNCTION(isolate(), | 97 CALL_HEAP_FUNCTION(isolate(), |
90 DescriptorArray::Allocate(number_of_descriptors), | 98 DescriptorArray::Allocate(number_of_descriptors), |
91 DescriptorArray); | 99 DescriptorArray); |
92 } | 100 } |
93 | 101 |
94 | 102 |
95 Handle<DeoptimizationInputData> Factory::NewDeoptimizationInputData( | 103 Handle<DeoptimizationInputData> Factory::NewDeoptimizationInputData( |
96 int deopt_entry_count, | 104 int deopt_entry_count, |
(...skipping 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1254 Execution::ConfigureInstance(instance, | 1262 Execution::ConfigureInstance(instance, |
1255 instance_template, | 1263 instance_template, |
1256 pending_exception); | 1264 pending_exception); |
1257 } else { | 1265 } else { |
1258 *pending_exception = false; | 1266 *pending_exception = false; |
1259 } | 1267 } |
1260 } | 1268 } |
1261 | 1269 |
1262 | 1270 |
1263 } } // namespace v8::internal | 1271 } } // namespace v8::internal |
OLD | NEW |