Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(137)

Unified Diff: src/deoptimizer.cc

Issue 1439583002: [deoptimizer] Remove unused function argument. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/deoptimizer.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/deoptimizer.cc
diff --git a/src/deoptimizer.cc b/src/deoptimizer.cc
index 220442b806c6168e5cc9b262f8069b07e10c184d..dd012db6abdf946dfa9e7fdc10ba4b848611e019 100644
--- a/src/deoptimizer.cc
+++ b/src/deoptimizer.cc
@@ -736,7 +736,7 @@ void Deoptimizer::DoComputeOutputFrames() {
TranslationIterator state_iterator(translations, translation_index);
translated_state_.Init(
- input_->GetFramePointerAddress(), function_, &state_iterator,
+ input_->GetFramePointerAddress(), &state_iterator,
input_data->LiteralArray(), input_->GetRegisterValues(),
trace_scope_ == nullptr ? nullptr : trace_scope_->file());
@@ -2686,7 +2686,7 @@ void TranslatedFrame::Handlify() {
TranslatedFrame TranslatedState::CreateNextTranslatedFrame(
TranslationIterator* iterator, FixedArray* literal_array, Address fp,
- JSFunction* frame_function, FILE* trace_file) {
+ FILE* trace_file) {
Translation::Opcode opcode =
static_cast<Translation::Opcode>(iterator->Next());
switch (opcode) {
@@ -3009,8 +3009,8 @@ TranslatedState::TranslatedState(JavaScriptFrame* frame)
static_cast<OptimizedFrame*>(frame)->GetDeoptimizationData(&deopt_index);
TranslationIterator it(data->TranslationByteArray(),
data->TranslationIndex(deopt_index)->value());
- Init(frame->fp(), frame->function(), &it, data->LiteralArray(),
- nullptr /* registers */, nullptr /* trace file */);
+ Init(frame->fp(), &it, data->LiteralArray(), nullptr /* registers */,
+ nullptr /* trace file */);
}
@@ -3021,7 +3021,6 @@ TranslatedState::TranslatedState()
void TranslatedState::Init(Address input_frame_pointer,
- JSFunction* input_frame_function,
TranslationIterator* iterator,
FixedArray* literal_array, RegisterValues* registers,
FILE* trace_file) {
@@ -3043,9 +3042,8 @@ void TranslatedState::Init(Address input_frame_pointer,
// Read the frames
for (int i = 0; i < count; i++) {
// Read the frame descriptor.
- frames_.push_back(
- CreateNextTranslatedFrame(iterator, literal_array, input_frame_pointer,
- input_frame_function, trace_file));
+ frames_.push_back(CreateNextTranslatedFrame(
+ iterator, literal_array, input_frame_pointer, trace_file));
TranslatedFrame& frame = frames_.back();
// Read the values.
« no previous file with comments | « src/deoptimizer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698