Index: src/objects.cc |
diff --git a/src/objects.cc b/src/objects.cc |
index 19dc7d6c4cec6e092586cd582aaa4fa6fd481655..0ce4a7317146cff8e1779b227b2c80ad8326bc44 100644 |
--- a/src/objects.cc |
+++ b/src/objects.cc |
@@ -15182,6 +15182,12 @@ void BytecodeArray::Disassemble(std::ostream& os) { |
#endif |
} |
+void BytecodeArray::CopyBytecodesTo(BytecodeArray* to) { |
+ BytecodeArray* from = this; |
+ DCHECK_EQ(from->length(), to->length()); |
+ CopyBytes(to->GetFirstBytecodeAddress(), from->GetFirstBytecodeAddress(), |
+ from->length()); |
+} |
// static |
void JSArray::Initialize(Handle<JSArray> array, int capacity, int length) { |