Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(957)

Unified Diff: src/factory.cc

Issue 9428001: Remove redundant statements in NewFunctionFromSharedFunctionInfo. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/factory.cc
diff --git a/src/factory.cc b/src/factory.cc
index cc437620a5d15aafe987f17a2668e95cabe933b2..15ded01e7b46204e28945ca7fd60122a57a7fae9 100644
--- a/src/factory.cc
+++ b/src/factory.cc
@@ -547,11 +547,7 @@ Handle<JSFunction> Factory::NewFunctionFromSharedFunctionInfo(
context->global_context());
}
result->set_literals(*literals);
- } else {
- result->set_function_bindings(isolate()->heap()->empty_fixed_array());
}
- result->set_next_function_link(isolate()->heap()->undefined_value());
ulan 2012/02/21 12:51:13 Heap::InitializeFunction sets these fields.
-
if (V8::UseCrankshaft() &&
FLAG_always_opt &&
result->is_compiled() &&
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698