Index: src/factory.cc |
=================================================================== |
--- src/factory.cc (revision 3051) |
+++ src/factory.cc (working copy) |
@@ -477,7 +477,6 @@ |
Handle<JSFunction> Factory::NewFunctionBoilerplate(Handle<String> name, |
int number_of_literals, |
- bool contains_array_literal, |
Handle<Code> code) { |
Handle<JSFunction> function = NewFunctionBoilerplate(name); |
function->set_code(*code); |
@@ -485,7 +484,7 @@ |
// If the function contains object, regexp or array literals, |
// allocate extra space for a literals array prefix containing the |
// object, regexp and array constructor functions. |
- if (number_of_literals > 0 || contains_array_literal) { |
+ if (number_of_literals > 0) { |
literals_array_size += JSFunction::kLiteralsPrefixSize; |
} |
Handle<FixedArray> literals = |