| Index: src/deoptimizer.cc
|
| diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc
|
| index 955152a2101952390456007c4cf48b0fc7157b7b..e8d780b0898a7623ac85d094af8cbb08c0181022 100644
|
| --- a/src/deoptimizer.cc
|
| +++ b/src/deoptimizer.cc
|
| @@ -3774,14 +3774,15 @@ Handle<Object> TranslatedState::MaterializeAt(int frame_index,
|
| return object;
|
| }
|
| case JS_FUNCTION_TYPE: {
|
| + Handle<SharedFunctionInfo> temporary_shared =
|
| + isolate_->factory()->NewSharedFunctionInfo(
|
| + isolate_->factory()->empty_string(), MaybeHandle<Code>(),
|
| + false);
|
| Handle<JSFunction> object =
|
| isolate_->factory()->NewFunctionFromSharedFunctionInfo(
|
| - handle(isolate_->object_function()->shared()),
|
| - handle(isolate_->context()));
|
| + map, temporary_shared, isolate_->factory()->undefined_value(),
|
| + NOT_TENURED);
|
| slot->value_ = object;
|
| - // We temporarily allocated a JSFunction for the {Object} function
|
| - // within the current context, to break cycles in the object graph.
|
| - // The correct function and context will be set below once available.
|
| Handle<Object> properties = MaterializeAt(frame_index, value_index);
|
| Handle<Object> elements = MaterializeAt(frame_index, value_index);
|
| Handle<Object> prototype = MaterializeAt(frame_index, value_index);
|
|
|