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

Side by Side Diff: src/compiler/s390/code-generator-s390.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
OLDNEW
1 // Copyright 2015 the V8 project authors. All rights reserved. 1 // Copyright 2015 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/ast/scopes.h" 7 #include "src/ast/scopes.h"
8 #include "src/compiler/code-generator-impl.h" 8 #include "src/compiler/code-generator-impl.h"
9 #include "src/compiler/gap-resolver.h" 9 #include "src/compiler/gap-resolver.h"
10 #include "src/compiler/node-matchers.h" 10 #include "src/compiler/node-matchers.h"
(...skipping 1998 matching lines...) Expand 10 before | Expand all | Expand 10 after
2009 } 2009 }
2010 2010
2011 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( 2011 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall(
2012 int deoptimization_id, Deoptimizer::BailoutType bailout_type) { 2012 int deoptimization_id, Deoptimizer::BailoutType bailout_type) {
2013 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( 2013 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry(
2014 isolate(), deoptimization_id, bailout_type); 2014 isolate(), deoptimization_id, bailout_type);
2015 // TODO(turbofan): We should be able to generate better code by sharing the 2015 // TODO(turbofan): We should be able to generate better code by sharing the
2016 // actual final call site and just bl'ing to it here, similar to what we do 2016 // actual final call site and just bl'ing to it here, similar to what we do
2017 // in the lithium backend. 2017 // in the lithium backend.
2018 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; 2018 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts;
2019 DeoptimizeReason deoptimization_reason =
2020 GetDeoptimizationReason(deoptimization_id);
2021 __ RecordDeoptReason(deoptimization_reason, 0, deoptimization_id);
2019 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); 2022 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY);
2020 return kSuccess; 2023 return kSuccess;
2021 } 2024 }
2022 2025
2023 void CodeGenerator::FinishFrame(Frame* frame) { 2026 void CodeGenerator::FinishFrame(Frame* frame) {
2024 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); 2027 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor();
2025 const RegList double_saves = descriptor->CalleeSavedFPRegisters(); 2028 const RegList double_saves = descriptor->CalleeSavedFPRegisters();
2026 2029
2027 // Save callee-saved Double registers. 2030 // Save callee-saved Double registers.
2028 if (double_saves != 0) { 2031 if (double_saves != 0) {
(...skipping 329 matching lines...) Expand 10 before | Expand all | Expand 10 after
2358 padding_size -= 2; 2361 padding_size -= 2;
2359 } 2362 }
2360 } 2363 }
2361 } 2364 }
2362 2365
2363 #undef __ 2366 #undef __
2364 2367
2365 } // namespace compiler 2368 } // namespace compiler
2366 } // namespace internal 2369 } // namespace internal
2367 } // namespace v8 2370 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ppc/instruction-selector-ppc.cc ('k') | src/compiler/s390/instruction-selector-s390.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698