Index: src/runtime/runtime-function.cc |
diff --git a/src/runtime/runtime-function.cc b/src/runtime/runtime-function.cc |
index 0a9cd6313f53fc505f5c671cb9219649d289006f..217e9999bac9b9d3f990e792bf275a6d4cc0dc86 100644 |
--- a/src/runtime/runtime-function.cc |
+++ b/src/runtime/runtime-function.cc |
@@ -279,6 +279,8 @@ RUNTIME_FUNCTION(Runtime_SetCode) { |
target_shared->set_end_position(source_shared->end_position()); |
bool was_native = target_shared->native(); |
target_shared->set_compiler_hints(source_shared->compiler_hints()); |
+ target_shared->set_opt_count_and_bailout_reason( |
+ source_shared->opt_count_and_bailout_reason()); |
target_shared->set_native(was_native); |
target_shared->set_profiler_ticks(source_shared->profiler_ticks()); |