Index: src/factory.cc |
diff --git a/src/factory.cc b/src/factory.cc |
index 2b79a5bf8f25a74a8ac37a35efa75fe7427ea86e..ae6164a14b207809833c09951819d8c130ae62d3 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* start, |
+ PretenureFlag pretenure) { |
+ DCHECK(0 <= length); |
+ CALL_HEAP_FUNCTION(isolate(), isolate()->heap()->AllocateBytecodeArray( |
+ length, start, pretenure), |
rmcilroy
2015/07/15 13:33:37
strange indentation here - did you run "git cl for
oth
2015/07/16 09:15:49
Done. git cl bogon.
|
+ BytecodeArray); |
+} |
+ |
+ |
Handle<ExternalArray> Factory::NewExternalArray(int length, |
ExternalArrayType array_type, |
void* external_pointer, |
@@ -2180,6 +2189,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 |