Chromium Code Reviews| Index: src/hydrogen.cc |
| diff --git a/src/hydrogen.cc b/src/hydrogen.cc |
| index fdb5665ca16ec2604c54f44bb39f194eeeedfbee..8dc45d72173d4518d6174ca00e2c9536d4fa2aa6 100644 |
| --- a/src/hydrogen.cc |
| +++ b/src/hydrogen.cc |
| @@ -8879,17 +8879,14 @@ void HOptimizedGraphBuilder::VisitCallNew(CallNew* expr) { |
| } else { |
| // The constructor function is both an operand to the instruction and an |
| // argument to the construct call. |
| - Handle<JSFunction> array_function = |
| - Handle<JSFunction>(isolate()->global_context()->array_function(), |
| - isolate()); |
| - bool use_call_new_array = FLAG_optimize_constructed_arrays && |
| - expr->target().is_identical_to(array_function); |
| - |
| + Handle<JSFunction> array_function( |
| + isolate()->global_context()->array_function(), |
|
danno
2013/06/25 15:56:59
nit: fit on one line, it makes one line fewer in t
mvstanton
2013/06/27 08:51:02
Done.
|
| + isolate()); |
|
danno
2013/06/25 15:56:59
nit: fit on one line, it makes one line fewer in t
mvstanton
2013/06/27 08:51:02
Done.
|
| CHECK_ALIVE(VisitArgument(expr->expression())); |
| HValue* constructor = HPushArgument::cast(Top())->argument(); |
| CHECK_ALIVE(VisitArgumentList(expr->arguments())); |
| HCallNew* call; |
| - if (use_call_new_array) { |
| + if (expr->target().is_identical_to(array_function)) { |
| Handle<Cell> cell = expr->allocation_info_cell(); |
| AddInstruction(new(zone()) HCheckFunction(constructor, array_function)); |
| call = new(zone()) HCallNewArray(context, constructor, argument_count, |