| Index: src/crankshaft/hydrogen.cc
|
| diff --git a/src/crankshaft/hydrogen.cc b/src/crankshaft/hydrogen.cc
|
| index 83e6bf32ba11e5502482e843ff5b19304962dc1f..9af298abd91d91be229575b37a25d18850c78d6a 100644
|
| --- a/src/crankshaft/hydrogen.cc
|
| +++ b/src/crankshaft/hydrogen.cc
|
| @@ -5052,11 +5052,10 @@ void HOptimizedGraphBuilder::VisitFunctionLiteral(FunctionLiteral* expr) {
|
| HConstant* shared_info_value = Add<HConstant>(shared_info);
|
| HInstruction* instr;
|
| if (!expr->pretenure()) {
|
| - FastNewClosureStub stub(isolate());
|
| - FastNewClosureDescriptor descriptor(isolate());
|
| + Callable callable = CodeFactory::FastNewClosure(isolate());
|
| HValue* values[] = {shared_info_value};
|
| - HConstant* stub_value = Add<HConstant>(stub.GetCode());
|
| - instr = New<HCallWithDescriptor>(stub_value, 0, descriptor,
|
| + HConstant* stub_value = Add<HConstant>(callable.code());
|
| + instr = New<HCallWithDescriptor>(stub_value, 0, callable.descriptor(),
|
| ArrayVector(values));
|
| } else {
|
| Add<HPushArguments>(shared_info_value);
|
|
|