| Index: src/factory.cc
|
| diff --git a/src/factory.cc b/src/factory.cc
|
| index f8154180f0cbacccc32a3917b7e16fba7e4552e6..a005f7a59b57effd7f710382175b85be2e9ce09c 100644
|
| --- a/src/factory.cc
|
| +++ b/src/factory.cc
|
| @@ -873,6 +873,15 @@ Handle<ByteArray> Factory::NewByteArray(int length, PretenureFlag pretenure) {
|
| }
|
|
|
|
|
| +Handle<BytecodeArray> Factory::NewBytecodeArray(int length,
|
| + const byte* raw_bytecodes) {
|
| + DCHECK(0 <= length);
|
| + CALL_HEAP_FUNCTION(isolate(), isolate()->heap()->AllocateBytecodeArray(
|
| + length, raw_bytecodes),
|
| + BytecodeArray);
|
| +}
|
| +
|
| +
|
| Handle<ExternalArray> Factory::NewExternalArray(int length,
|
| ExternalArrayType array_type,
|
| void* external_pointer,
|
| @@ -2176,6 +2185,7 @@ Handle<SharedFunctionInfo> Factory::NewSharedFunctionInfo(
|
| Handle<TypeFeedbackVector> feedback_vector =
|
| NewTypeFeedbackVector(&empty_spec);
|
| share->set_feedback_vector(*feedback_vector, SKIP_WRITE_BARRIER);
|
| + share->set_bytecode_array(*empty_bytecode_array(), SKIP_WRITE_BARRIER);
|
| #if TRACE_MAPS
|
| share->set_unique_id(isolate()->GetNextUniqueSharedFunctionInfoId());
|
| #endif
|
|
|