| Index: src/crankshaft/arm64/lithium-codegen-arm64.cc
|
| diff --git a/src/crankshaft/arm64/lithium-codegen-arm64.cc b/src/crankshaft/arm64/lithium-codegen-arm64.cc
|
| index 8dcfd2e534fe3a82b9dd7337e1497e81178a1e9b..b56518e9a7cc412f9f8ee12eaf743c9278aaee67 100644
|
| --- a/src/crankshaft/arm64/lithium-codegen-arm64.cc
|
| +++ b/src/crankshaft/arm64/lithium-codegen-arm64.cc
|
| @@ -883,62 +883,6 @@ void LCodeGen::FinishCode(Handle<Code> code) {
|
| }
|
|
|
|
|
| -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::DeoptimizeBranch(
|
| LInstruction* instr, Deoptimizer::DeoptReason deopt_reason,
|
| BranchType branch_type, Register reg, int bit,
|
|
|