| Index: src/accessors.cc
|
| diff --git a/src/accessors.cc b/src/accessors.cc
|
| index aad2b3695e3898c674acd6cdf331e6ad5ee5a676..7c6d344ec0b9f1b86e8fd251f109eee6ae7a6d85 100644
|
| --- a/src/accessors.cc
|
| +++ b/src/accessors.cc
|
| @@ -801,8 +801,8 @@ static Handle<Object> ArgumentsForInlinedFunction(
|
| Handle<FixedArray> array = factory->NewFixedArray(argument_count);
|
| bool should_deoptimize = false;
|
| for (int i = 0; i < argument_count; ++i) {
|
| - // If we materialize any object, we should deopt because we might alias
|
| - // an object that was eliminated by escape analysis.
|
| + // If we materialize any object, we should deoptimize the frame because we
|
| + // might alias an object that was eliminated by escape analysis.
|
| should_deoptimize = should_deoptimize || iter->IsMaterializedObject();
|
| Handle<Object> value = iter->GetValue();
|
| array->set(i, *value);
|
| @@ -811,7 +811,7 @@ static Handle<Object> ArgumentsForInlinedFunction(
|
| arguments->set_elements(*array);
|
|
|
| if (should_deoptimize) {
|
| - translated_values.StoreMaterializedValuesAndDeopt();
|
| + translated_values.StoreMaterializedValuesAndDeopt(frame);
|
| }
|
|
|
| // Return the freshly allocated arguments object.
|
|
|