OLD | NEW |
1 // Copyright 2010 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 |
11 // with the distribution. | 11 // with the distribution. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 Handle<FixedArray> Factory::NewFixedArrayWithHoles(int size, | 51 Handle<FixedArray> Factory::NewFixedArrayWithHoles(int size, |
52 PretenureFlag pretenure) { | 52 PretenureFlag pretenure) { |
53 ASSERT(0 <= size); | 53 ASSERT(0 <= size); |
54 CALL_HEAP_FUNCTION( | 54 CALL_HEAP_FUNCTION( |
55 isolate(), | 55 isolate(), |
56 isolate()->heap()->AllocateFixedArrayWithHoles(size, pretenure), | 56 isolate()->heap()->AllocateFixedArrayWithHoles(size, pretenure), |
57 FixedArray); | 57 FixedArray); |
58 } | 58 } |
59 | 59 |
60 | 60 |
| 61 Handle<FixedArray> Factory::NewFixedDoubleArray(int size, |
| 62 PretenureFlag pretenure) { |
| 63 ASSERT(0 <= size); |
| 64 CALL_HEAP_FUNCTION( |
| 65 isolate(), |
| 66 isolate()->heap()->AllocateUninitializedFixedDoubleArray(size, pretenure), |
| 67 FixedArray); |
| 68 } |
| 69 |
| 70 |
61 Handle<StringDictionary> Factory::NewStringDictionary(int at_least_space_for) { | 71 Handle<StringDictionary> Factory::NewStringDictionary(int at_least_space_for) { |
62 ASSERT(0 <= at_least_space_for); | 72 ASSERT(0 <= at_least_space_for); |
63 CALL_HEAP_FUNCTION(isolate(), | 73 CALL_HEAP_FUNCTION(isolate(), |
64 StringDictionary::Allocate(at_least_space_for), | 74 StringDictionary::Allocate(at_least_space_for), |
65 StringDictionary); | 75 StringDictionary); |
66 } | 76 } |
67 | 77 |
68 | 78 |
69 Handle<NumberDictionary> Factory::NewNumberDictionary(int at_least_space_for) { | 79 Handle<NumberDictionary> Factory::NewNumberDictionary(int at_least_space_for) { |
70 ASSERT(0 <= at_least_space_for); | 80 ASSERT(0 <= at_least_space_for); |
(...skipping 1142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1213 Execution::ConfigureInstance(instance, | 1223 Execution::ConfigureInstance(instance, |
1214 instance_template, | 1224 instance_template, |
1215 pending_exception); | 1225 pending_exception); |
1216 } else { | 1226 } else { |
1217 *pending_exception = false; | 1227 *pending_exception = false; |
1218 } | 1228 } |
1219 } | 1229 } |
1220 | 1230 |
1221 | 1231 |
1222 } } // namespace v8::internal | 1232 } } // namespace v8::internal |
OLD | NEW |