Commit 673baa3c authored by jarin's avatar jarin Committed by Commit bot

[deoptimizer] Remove unused function argument.

Review URL: https://codereview.chromium.org/1439583002

Cr-Commit-Position: refs/heads/master@{#31940}
parent 392d1469
...@@ -736,7 +736,7 @@ void Deoptimizer::DoComputeOutputFrames() { ...@@ -736,7 +736,7 @@ void Deoptimizer::DoComputeOutputFrames() {
TranslationIterator state_iterator(translations, translation_index); TranslationIterator state_iterator(translations, translation_index);
translated_state_.Init( translated_state_.Init(
input_->GetFramePointerAddress(), function_, &state_iterator, input_->GetFramePointerAddress(), &state_iterator,
input_data->LiteralArray(), input_->GetRegisterValues(), input_data->LiteralArray(), input_->GetRegisterValues(),
trace_scope_ == nullptr ? nullptr : trace_scope_->file()); trace_scope_ == nullptr ? nullptr : trace_scope_->file());
...@@ -2686,7 +2686,7 @@ void TranslatedFrame::Handlify() { ...@@ -2686,7 +2686,7 @@ void TranslatedFrame::Handlify() {
TranslatedFrame TranslatedState::CreateNextTranslatedFrame( TranslatedFrame TranslatedState::CreateNextTranslatedFrame(
TranslationIterator* iterator, FixedArray* literal_array, Address fp, TranslationIterator* iterator, FixedArray* literal_array, Address fp,
JSFunction* frame_function, FILE* trace_file) { FILE* trace_file) {
Translation::Opcode opcode = Translation::Opcode opcode =
static_cast<Translation::Opcode>(iterator->Next()); static_cast<Translation::Opcode>(iterator->Next());
switch (opcode) { switch (opcode) {
...@@ -3009,8 +3009,8 @@ TranslatedState::TranslatedState(JavaScriptFrame* frame) ...@@ -3009,8 +3009,8 @@ TranslatedState::TranslatedState(JavaScriptFrame* frame)
static_cast<OptimizedFrame*>(frame)->GetDeoptimizationData(&deopt_index); static_cast<OptimizedFrame*>(frame)->GetDeoptimizationData(&deopt_index);
TranslationIterator it(data->TranslationByteArray(), TranslationIterator it(data->TranslationByteArray(),
data->TranslationIndex(deopt_index)->value()); data->TranslationIndex(deopt_index)->value());
Init(frame->fp(), frame->function(), &it, data->LiteralArray(), Init(frame->fp(), &it, data->LiteralArray(), nullptr /* registers */,
nullptr /* registers */, nullptr /* trace file */); nullptr /* trace file */);
} }
...@@ -3021,7 +3021,6 @@ TranslatedState::TranslatedState() ...@@ -3021,7 +3021,6 @@ TranslatedState::TranslatedState()
void TranslatedState::Init(Address input_frame_pointer, void TranslatedState::Init(Address input_frame_pointer,
JSFunction* input_frame_function,
TranslationIterator* iterator, TranslationIterator* iterator,
FixedArray* literal_array, RegisterValues* registers, FixedArray* literal_array, RegisterValues* registers,
FILE* trace_file) { FILE* trace_file) {
...@@ -3043,9 +3042,8 @@ void TranslatedState::Init(Address input_frame_pointer, ...@@ -3043,9 +3042,8 @@ void TranslatedState::Init(Address input_frame_pointer,
// Read the frames // Read the frames
for (int i = 0; i < count; i++) { for (int i = 0; i < count; i++) {
// Read the frame descriptor. // Read the frame descriptor.
frames_.push_back( frames_.push_back(CreateNextTranslatedFrame(
CreateNextTranslatedFrame(iterator, literal_array, input_frame_pointer, iterator, literal_array, input_frame_pointer, trace_file));
input_frame_function, trace_file));
TranslatedFrame& frame = frames_.back(); TranslatedFrame& frame = frames_.back();
// Read the values. // Read the values.
......
...@@ -252,9 +252,9 @@ class TranslatedState { ...@@ -252,9 +252,9 @@ class TranslatedState {
Isolate* isolate() { return isolate_; } Isolate* isolate() { return isolate_; }
void Init(Address input_frame_pointer, JSFunction* input_frame_function, void Init(Address input_frame_pointer, TranslationIterator* iterator,
TranslationIterator* iterator, FixedArray* literal_array, FixedArray* literal_array, RegisterValues* registers,
RegisterValues* registers, FILE* trace_file); FILE* trace_file);
private: private:
friend TranslatedValue; friend TranslatedValue;
...@@ -262,7 +262,6 @@ class TranslatedState { ...@@ -262,7 +262,6 @@ class TranslatedState {
TranslatedFrame CreateNextTranslatedFrame(TranslationIterator* iterator, TranslatedFrame CreateNextTranslatedFrame(TranslationIterator* iterator,
FixedArray* literal_array, FixedArray* literal_array,
Address fp, Address fp,
JSFunction* frame_function,
FILE* trace_file); FILE* trace_file);
TranslatedValue CreateNextTranslatedValue(int frame_index, int value_index, TranslatedValue CreateNextTranslatedValue(int frame_index, int value_index,
TranslationIterator* iterator, TranslationIterator* iterator,
......
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