| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index 142555275cb5ae58a41e9ca2bd4fffa4de94e212..fc7fcb77170af68b72d974d1b4ef17a551753a97 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(),
|
| @@ -609,6 +624,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,
|
|
|