| Index: src/objects.cc
|
| diff --git a/src/objects.cc b/src/objects.cc
|
| index a3e868ab3c183257d4129913100c9ef99925ec1f..cc7751b9e7a38aa5afccb1068e40d227a8c57301 100644
|
| --- a/src/objects.cc
|
| +++ b/src/objects.cc
|
| @@ -15178,6 +15178,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) {
|
|
|