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

Side by Side Diff: src/compiler/arm/code-generator-arm.cc

Issue 2161543002: [turbofan] Add support for eager/soft deoptimization reasons. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Do the ports properly Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/compiler/arm/instruction-selector-arm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "src/compiler/code-generator.h" 5 #include "src/compiler/code-generator.h"
6 6
7 #include "src/arm/macro-assembler-arm.h" 7 #include "src/arm/macro-assembler-arm.h"
8 #include "src/ast/scopes.h" 8 #include "src/ast/scopes.h"
9 #include "src/compiler/code-generator-impl.h" 9 #include "src/compiler/code-generator-impl.h"
10 #include "src/compiler/gap-resolver.h" 10 #include "src/compiler/gap-resolver.h"
(...skipping 1547 matching lines...) Expand 10 before | Expand all | Expand 10 after
1558 } 1558 }
1559 1559
1560 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( 1560 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall(
1561 int deoptimization_id, Deoptimizer::BailoutType bailout_type) { 1561 int deoptimization_id, Deoptimizer::BailoutType bailout_type) {
1562 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( 1562 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry(
1563 isolate(), deoptimization_id, bailout_type); 1563 isolate(), deoptimization_id, bailout_type);
1564 // TODO(turbofan): We should be able to generate better code by sharing the 1564 // TODO(turbofan): We should be able to generate better code by sharing the
1565 // actual final call site and just bl'ing to it here, similar to what we do 1565 // actual final call site and just bl'ing to it here, similar to what we do
1566 // in the lithium backend. 1566 // in the lithium backend.
1567 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; 1567 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts;
1568 DeoptimizeReason deoptimization_reason =
1569 GetDeoptimizationReason(deoptimization_id);
1570 __ RecordDeoptReason(deoptimization_reason, 0, deoptimization_id);
1568 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); 1571 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY);
1569 __ CheckConstPool(false, false); 1572 __ CheckConstPool(false, false);
1570 return kSuccess; 1573 return kSuccess;
1571 } 1574 }
1572 1575
1573 void CodeGenerator::FinishFrame(Frame* frame) { 1576 void CodeGenerator::FinishFrame(Frame* frame) {
1574 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); 1577 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor();
1575 1578
1576 const RegList saves_fp = descriptor->CalleeSavedFPRegisters(); 1579 const RegList saves_fp = descriptor->CalleeSavedFPRegisters();
1577 if (saves_fp != 0) { 1580 if (saves_fp != 0) {
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
1959 padding_size -= v8::internal::Assembler::kInstrSize; 1962 padding_size -= v8::internal::Assembler::kInstrSize;
1960 } 1963 }
1961 } 1964 }
1962 } 1965 }
1963 1966
1964 #undef __ 1967 #undef __
1965 1968
1966 } // namespace compiler 1969 } // namespace compiler
1967 } // namespace internal 1970 } // namespace internal
1968 } // namespace v8 1971 } // namespace v8
OLDNEW
« no previous file with comments | « src/code-stubs-hydrogen.cc ('k') | src/compiler/arm/instruction-selector-arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698