| Index: src/runtime/runtime-scopes.cc
|
| diff --git a/src/runtime/runtime-scopes.cc b/src/runtime/runtime-scopes.cc
|
| index 225a0a60857d18c9618a01873dbc71aaad4c1600..ab31f03e9727bd2099473f0280dabf6cac97e413 100644
|
| --- a/src/runtime/runtime-scopes.cc
|
| +++ b/src/runtime/runtime-scopes.cc
|
| @@ -637,10 +637,10 @@ RUNTIME_FUNCTION(Runtime_NewClosure) {
|
| CONVERT_SMI_ARG_CHECKED(index, 2);
|
| Handle<Context> context(isolate->context(), isolate);
|
| FeedbackSlot slot = FeedbackVector::ToSlot(index);
|
| - Handle<Cell> literals(Cell::cast(vector->Get(slot)), isolate);
|
| + Handle<Cell> vector_cell(Cell::cast(vector->Get(slot)), isolate);
|
| Handle<JSFunction> function =
|
| isolate->factory()->NewFunctionFromSharedFunctionInfo(
|
| - shared, context, literals, NOT_TENURED);
|
| + shared, context, vector_cell, NOT_TENURED);
|
| return *function;
|
| }
|
|
|
| @@ -653,12 +653,12 @@ RUNTIME_FUNCTION(Runtime_NewClosure_Tenured) {
|
| CONVERT_SMI_ARG_CHECKED(index, 2);
|
| Handle<Context> context(isolate->context(), isolate);
|
| FeedbackSlot slot = FeedbackVector::ToSlot(index);
|
| - Handle<Cell> literals(Cell::cast(vector->Get(slot)), isolate);
|
| + Handle<Cell> vector_cell(Cell::cast(vector->Get(slot)), isolate);
|
| // The caller ensures that we pretenure closures that are assigned
|
| // directly to properties.
|
| Handle<JSFunction> function =
|
| - isolate->factory()->NewFunctionFromSharedFunctionInfo(shared, context,
|
| - literals, TENURED);
|
| + isolate->factory()->NewFunctionFromSharedFunctionInfo(
|
| + shared, context, vector_cell, TENURED);
|
| return *function;
|
| }
|
|
|
|
|