Index: src/crankshaft/arm/lithium-codegen-arm.cc |
diff --git a/src/crankshaft/arm/lithium-codegen-arm.cc b/src/crankshaft/arm/lithium-codegen-arm.cc |
index 2781e6e7a0f96b8f89059797b09545dd9191ea16..c470645be0c597ea38229011547a6edd3f36396a 100644 |
--- a/src/crankshaft/arm/lithium-codegen-arm.cc |
+++ b/src/crankshaft/arm/lithium-codegen-arm.cc |
@@ -874,60 +874,6 @@ void LCodeGen::DeoptimizeIf(Condition condition, LInstruction* instr, |
} |
-void LCodeGen::PopulateDeoptimizationData(Handle<Code> code) { |
- int length = deoptimizations_.length(); |
- if (length == 0) return; |
- Handle<DeoptimizationInputData> data = |
- DeoptimizationInputData::New(isolate(), length, TENURED); |
- |
- Handle<ByteArray> translations = |
- translations_.CreateByteArray(isolate()->factory()); |
- data->SetTranslationByteArray(*translations); |
- data->SetInlinedFunctionCount(Smi::FromInt(inlined_function_count_)); |
- data->SetOptimizationId(Smi::FromInt(info_->optimization_id())); |
- if (info_->IsOptimizing()) { |
- // Reference to shared function info does not change between phases. |
- AllowDeferredHandleDereference allow_handle_dereference; |
- data->SetSharedFunctionInfo(*info_->shared_info()); |
- } else { |
- data->SetSharedFunctionInfo(Smi::FromInt(0)); |
- } |
- data->SetWeakCellCache(Smi::FromInt(0)); |
- |
- Handle<FixedArray> literals = |
- factory()->NewFixedArray(deoptimization_literals_.length(), TENURED); |
- { AllowDeferredHandleDereference copy_handles; |
- for (int i = 0; i < deoptimization_literals_.length(); i++) { |
- literals->set(i, *deoptimization_literals_[i]); |
- } |
- data->SetLiteralArray(*literals); |
- } |
- |
- data->SetOsrAstId(Smi::FromInt(info_->osr_ast_id().ToInt())); |
- data->SetOsrPcOffset(Smi::FromInt(osr_pc_offset_)); |
- |
- // Populate the deoptimization entries. |
- for (int i = 0; i < length; i++) { |
- LEnvironment* env = deoptimizations_[i]; |
- data->SetAstId(i, env->ast_id()); |
- data->SetTranslationIndex(i, Smi::FromInt(env->translation_index())); |
- data->SetArgumentsStackHeight(i, |
- Smi::FromInt(env->arguments_stack_height())); |
- data->SetPc(i, Smi::FromInt(env->pc_offset())); |
- } |
- code->set_deoptimization_data(*data); |
-} |
- |
- |
-void LCodeGen::PopulateDeoptimizationLiteralsWithInlinedFunctions() { |
- DCHECK_EQ(0, deoptimization_literals_.length()); |
- for (auto function : chunk()->inlined_functions()) { |
- DefineDeoptimizationLiteral(function); |
- } |
- inlined_function_count_ = deoptimization_literals_.length(); |
-} |
- |
- |
void LCodeGen::RecordSafepointWithLazyDeopt( |
LInstruction* instr, SafepointMode safepoint_mode) { |
if (safepoint_mode == RECORD_SIMPLE_SAFEPOINT) { |