Index: src/runtime.cc |
=================================================================== |
--- src/runtime.cc (revision 5232) |
+++ src/runtime.cc (working copy) |
@@ -1627,7 +1627,8 @@ |
} |
// Set the code, scope info, formal parameter count, |
// and the length of the target function. |
- target->set_code(fun->code()); |
+ target->shared()->set_code(shared->code()); |
+ target->set_code(shared->code()); |
target->shared()->set_scope_info(shared->scope_info()); |
target->shared()->set_length(shared->length()); |
target->shared()->set_formal_parameter_count( |
@@ -6870,7 +6871,7 @@ |
Handle<JSFunction> function = args.at<JSFunction>(0); |
#ifdef DEBUG |
- if (FLAG_trace_lazy) { |
+ if (FLAG_trace_lazy && !function->shared()->is_compiled()) { |
PrintF("[lazy: "); |
function->shared()->name()->Print(); |
PrintF("]\n"); |