Commit 809ce0c8 authored by ulan@chromium.org's avatar ulan@chromium.org

Remove redundant statements in NewFunctionFromSharedFunctionInfo.

R=rossberg@chromium.org

Review URL: https://chromiumcodereview.appspot.com/9428001

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@10780 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 76a201df
...@@ -547,11 +547,7 @@ Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo( ...@@ -547,11 +547,7 @@ Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo(
context->global_context()); context->global_context());
} }
result->set_literals(*literals); result->set_literals(*literals);
} else {
result->set_function_bindings(isolate()->heap()->empty_fixed_array());
} }
result->set_next_function_link(isolate()->heap()->undefined_value());
if (V8::UseCrankshaft() && if (V8::UseCrankshaft() &&
FLAG_always_opt && FLAG_always_opt &&
result->is_compiled() && result->is_compiled() &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment