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

Unified Diff: src/deoptimizer.cc

Issue 2365343002: [deoptimizer] Remove some dead code. (Closed)
Patch Set: Created 4 years, 3 months 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 e9f51b7ea044d07aff7b04cf17ad32f2dc816453..971de9ec77179e616200e6fdb5e97c0c32d6ff0b 100644
--- a/src/deoptimizer.cc
+++ b/src/deoptimizer.cc
@@ -103,23 +103,6 @@ Deoptimizer* Deoptimizer::Grab(Isolate* isolate) {
return result;
}
-
-int Deoptimizer::ConvertJSFrameIndexToFrameIndex(int jsframe_index) {
- if (jsframe_index == 0) return 0;
-
- int frame_index = 0;
- while (jsframe_index >= 0) {
- FrameDescription* frame = output_[frame_index];
- if (frame->GetFrameType() == StackFrame::JAVA_SCRIPT) {
- jsframe_index--;
- }
- frame_index++;
- }
-
- return frame_index - 1;
-}
-
-
DeoptimizedFrameInfo* Deoptimizer::DebuggerInspectableFrame(
JavaScriptFrame* frame,
int jsframe_index,
@@ -2246,15 +2229,6 @@ unsigned Deoptimizer::ComputeOutgoingArgumentSize(Code* code,
return height * kPointerSize;
}
-
-Object* Deoptimizer::ComputeLiteral(int index) const {
- DeoptimizationInputData* data =
- DeoptimizationInputData::cast(compiled_code_->deoptimization_data());
- FixedArray* literals = data->LiteralArray();
- return literals->get(index);
-}
-
-
void Deoptimizer::EnsureCodeForDeoptimizationEntry(Isolate* isolate,
BailoutType type,
int max_entry_id) {
@@ -2313,33 +2287,6 @@ FrameDescription::FrameDescription(uint32_t frame_size, int parameter_count)
}
}
-
-int FrameDescription::ComputeFixedSize() {
- if (type_ == StackFrame::INTERPRETED) {
- return InterpreterFrameConstants::kFixedFrameSize +
- parameter_count() * kPointerSize;
- } else {
- return StandardFrameConstants::kFixedFrameSize +
- parameter_count() * kPointerSize;
- }
-}
-
-
-unsigned FrameDescription::GetOffsetFromSlotIndex(int slot_index) {
- if (slot_index >= 0) {
- // Local or spill slots. Skip the fixed part of the frame
- // including all arguments.
- unsigned base = GetFrameSize() - ComputeFixedSize();
- return base - ((slot_index + 1) * kPointerSize);
- } else {
- // Incoming parameter.
- int arg_size = parameter_count() * kPointerSize;
- unsigned base = GetFrameSize() - arg_size;
- return base - ((slot_index + 1) * kPointerSize);
- }
-}
-
-
void TranslationBuffer::Add(int32_t value, Zone* zone) {
// This wouldn't handle kMinInt correctly if it ever encountered it.
DCHECK(value != kMinInt);
« 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