| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index 2bf21a2c6d82a9b1191b83c1f16dc5b7401d81a5..8f406602acdc04c7267e4e8396dd7054893bc664 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -15269,6 +15269,12 @@ void BytecodeArray::Disassemble(std::ostream& os) {
|
| #endif
|
| }
|
|
|
| +void BytecodeArray::CopyTo(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) {
|
|
|