| Index: src/runtime/runtime-function.cc
|
| diff --git a/src/runtime/runtime-function.cc b/src/runtime/runtime-function.cc
|
| index befd3370984b7b753c21f6bb6c19c3b58b63d4b0..cc7fe1f6595c3c5483f552778cd02b0b1d24abc5 100644
|
| --- a/src/runtime/runtime-function.cc
|
| +++ b/src/runtime/runtime-function.cc
|
| @@ -166,6 +166,9 @@ RUNTIME_FUNCTION(Runtime_SetCode) {
|
| // Set the code, scope info, formal parameter count, and the length
|
| // of the target shared function info.
|
| target_shared->ReplaceCode(source_shared->code());
|
| + if (source_shared->HasBytecodeArray()) {
|
| + target_shared->set_function_data(source_shared->bytecode_array());
|
| + }
|
| target_shared->set_scope_info(source_shared->scope_info());
|
| target_shared->set_length(source_shared->length());
|
| target_shared->set_feedback_vector(source_shared->feedback_vector());
|
|
|