| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index 116434c43a6dd731572ab1209750100dd32daca0..bb998a42de3cc55d36c981d5dc10eef61bd6f419 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -79,6 +79,21 @@ Handle<FixedDoubleArray> Factory::NewFixedDoubleArray(int size,
|
| }
|
|
|
|
|
| +Handle<ConstantPoolArray> Factory::NewConstantPoolArray(
|
| + int number_of_int64_entries,
|
| + int number_of_ptr_entries,
|
| + int number_of_int32_entries) {
|
| + ASSERT(number_of_int64_entries > 0 || number_of_ptr_entries > 0 ||
|
| + number_of_int32_entries > 0);
|
| + CALL_HEAP_FUNCTION(
|
| + isolate(),
|
| + isolate()->heap()->AllocateConstantPoolArray(number_of_int64_entries,
|
| + number_of_ptr_entries,
|
| + number_of_int32_entries),
|
| + ConstantPoolArray);
|
| +}
|
| +
|
| +
|
| Handle<NameDictionary> Factory::NewNameDictionary(int at_least_space_for) {
|
| ASSERT(0 <= at_least_space_for);
|
| CALL_HEAP_FUNCTION(isolate(),
|
| @@ -624,6 +639,12 @@ Handle<FixedDoubleArray> Factory::CopyFixedDoubleArray(
|
| }
|
|
|
|
|
| +Handle<ConstantPoolArray> Factory::CopyConstantPoolArray(
|
| + Handle<ConstantPoolArray> array) {
|
| + CALL_HEAP_FUNCTION(isolate(), array->Copy(), ConstantPoolArray);
|
| +}
|
| +
|
| +
|
| Handle<JSFunction> Factory::BaseNewFunctionFromSharedFunctionInfo(
|
| Handle<SharedFunctionInfo> function_info,
|
| Handle<Map> function_map,
|
|
|