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

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

Issue 2732273003: Disentangle assembler from isolate. (Closed)
Patch Set: Address feedback. Created 3 years, 9 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/compiler/ppc/code-generator-ppc.cc ('k') | src/compiler/x64/code-generator-x64.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 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/compilation-info.h" 7 #include "src/compilation-info.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 2558 matching lines...) Expand 10 before | Expand all | Expand 10 after
2569 GetDeoptimizationReason(deoptimization_id); 2569 GetDeoptimizationReason(deoptimization_id);
2570 Deoptimizer::BailoutType bailout_type = 2570 Deoptimizer::BailoutType bailout_type =
2571 deoptimization_kind == DeoptimizeKind::kSoft ? Deoptimizer::SOFT 2571 deoptimization_kind == DeoptimizeKind::kSoft ? Deoptimizer::SOFT
2572 : Deoptimizer::EAGER; 2572 : Deoptimizer::EAGER;
2573 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( 2573 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry(
2574 isolate(), deoptimization_id, bailout_type); 2574 isolate(), deoptimization_id, bailout_type);
2575 // TODO(turbofan): We should be able to generate better code by sharing the 2575 // TODO(turbofan): We should be able to generate better code by sharing the
2576 // actual final call site and just bl'ing to it here, similar to what we do 2576 // actual final call site and just bl'ing to it here, similar to what we do
2577 // in the lithium backend. 2577 // in the lithium backend.
2578 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; 2578 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts;
2579 __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id); 2579 if (isolate()->NeedsSourcePositionsForProfiling()) {
2580 __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id);
2581 }
2580 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); 2582 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY);
2581 return kSuccess; 2583 return kSuccess;
2582 } 2584 }
2583 2585
2584 void CodeGenerator::FinishFrame(Frame* frame) { 2586 void CodeGenerator::FinishFrame(Frame* frame) {
2585 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); 2587 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor();
2586 const RegList double_saves = descriptor->CalleeSavedFPRegisters(); 2588 const RegList double_saves = descriptor->CalleeSavedFPRegisters();
2587 2589
2588 // Save callee-saved Double registers. 2590 // Save callee-saved Double registers.
2589 if (double_saves != 0) { 2591 if (double_saves != 0) {
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
2930 padding_size -= 2; 2932 padding_size -= 2;
2931 } 2933 }
2932 } 2934 }
2933 } 2935 }
2934 2936
2935 #undef __ 2937 #undef __
2936 2938
2937 } // namespace compiler 2939 } // namespace compiler
2938 } // namespace internal 2940 } // namespace internal
2939 } // namespace v8 2941 } // namespace v8
OLDNEW
« no previous file with comments | « src/compiler/ppc/code-generator-ppc.cc ('k') | src/compiler/x64/code-generator-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698