Commit 2bdf6ac5 authored by Michael Starzinger's avatar Michael Starzinger Committed by Commit Bot

[deoptimizer] Removed unused argument from {TranslatedState}.

R=jarin@chromium.org
BUG=v8:6586

Change-Id: I1eedfe8d3d420fe88df5321cc855cfd6266d7c6e
Reviewed-on: https://chromium-review.googlesource.com/595653Reviewed-by: 's avatarJaroslav Sevcik <jarin@chromium.org>
Commit-Queue: Michael Starzinger <mstarzinger@chromium.org>
Cr-Commit-Position: refs/heads/master@{#47040}
parent 809c3d45
......@@ -782,7 +782,7 @@ static Handle<Object> ArgumentsForInlinedFunction(
Factory* factory = isolate->factory();
TranslatedState translated_values(frame);
translated_values.Prepare(false, frame->fp());
translated_values.Prepare(frame->fp());
int argument_count = 0;
TranslatedFrame* translated_frame =
......
......@@ -111,7 +111,7 @@ DeoptimizedFrameInfo* Deoptimizer::DebuggerInspectableFrame(
CHECK(frame->is_optimized());
TranslatedState translated_values(frame);
translated_values.Prepare(false, frame->fp());
translated_values.Prepare(frame->fp());
TranslatedState::iterator frame_it = translated_values.end();
int counter = jsframe_index;
......@@ -1877,8 +1877,7 @@ void Deoptimizer::MaterializeHeapObjects(JavaScriptFrameIterator* it) {
for (int frame_index = 0; frame_index < jsframe_count(); ++frame_index) {
if (frame_index != 0) it->Advance();
}
translated_state_.Prepare(it->frame()->has_adapted_arguments(),
reinterpret_cast<Address>(stack_fp_));
translated_state_.Prepare(reinterpret_cast<Address>(stack_fp_));
for (auto& materialization : values_to_materialize_) {
Handle<Object> value = materialization.value_->GetValue();
......@@ -3496,9 +3495,7 @@ void TranslatedState::Init(Address input_frame_pointer,
Translation::BEGIN);
}
void TranslatedState::Prepare(bool has_adapted_arguments,
Address stack_frame_pointer) {
void TranslatedState::Prepare(Address stack_frame_pointer) {
for (auto& frame : frames_) frame.Handlify();
stack_frame_pointer_ = stack_frame_pointer;
......
......@@ -246,7 +246,7 @@ class TranslatedState {
TranslatedState();
explicit TranslatedState(JavaScriptFrame* frame);
void Prepare(bool has_adapted_arguments, Address stack_frame_pointer);
void Prepare(Address stack_frame_pointer);
// Store newly materialized values into the isolate.
void StoreMaterializedValuesAndDeopt(JavaScriptFrame* frame);
......
......@@ -353,7 +353,7 @@ std::unique_ptr<Handle<Object>[]> GetCallerArguments(Isolate* isolate,
if (functions.length() > 1) {
int inlined_jsframe_index = functions.length() - 1;
TranslatedState translated_values(frame);
translated_values.Prepare(false, frame->fp());
translated_values.Prepare(frame->fp());
int argument_count = 0;
TranslatedFrame* translated_frame =
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment