| Index: src/runtime/runtime-function.cc
|
| diff --git a/src/runtime/runtime-function.cc b/src/runtime/runtime-function.cc
|
| index 5e585d2cb799e724291b5ff58d9b810a96b6c666..d644d37e42b2fff45685eb2c7604c5c68c801a3d 100644
|
| --- a/src/runtime/runtime-function.cc
|
| +++ b/src/runtime/runtime-function.cc
|
| @@ -232,7 +232,6 @@ RUNTIME_FUNCTION(Runtime_SetCode) {
|
| target_shared->set_feedback_vector(source_shared->feedback_vector());
|
| target_shared->set_internal_formal_parameter_count(
|
| source_shared->internal_formal_parameter_count());
|
| - target_shared->set_script(source_shared->script());
|
| target_shared->set_start_position_and_type(
|
| source_shared->start_position_and_type());
|
| target_shared->set_end_position(source_shared->end_position());
|
| @@ -242,6 +241,8 @@ RUNTIME_FUNCTION(Runtime_SetCode) {
|
| source_shared->opt_count_and_bailout_reason());
|
| target_shared->set_native(was_native);
|
| target_shared->set_profiler_ticks(source_shared->profiler_ticks());
|
| + SharedFunctionInfo::SetScript(
|
| + target_shared, Handle<Object>(source_shared->script(), isolate));
|
|
|
| // Set the code of the target function.
|
| target->ReplaceCode(source_shared->code());
|
|
|