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

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

Issue 2451853002: Uniform and precise source positions for inlining (Closed)
Patch Set: fixed gcmole issue Created 4 years, 1 month 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/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 2202 matching lines...) Expand 10 before | Expand all | Expand 10 after
2213 int deoptimization_id, Deoptimizer::BailoutType bailout_type, 2213 int deoptimization_id, Deoptimizer::BailoutType bailout_type,
2214 SourcePosition pos) { 2214 SourcePosition pos) {
2215 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( 2215 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry(
2216 isolate(), deoptimization_id, bailout_type); 2216 isolate(), deoptimization_id, bailout_type);
2217 // TODO(turbofan): We should be able to generate better code by sharing the 2217 // TODO(turbofan): We should be able to generate better code by sharing the
2218 // actual final call site and just bl'ing to it here, similar to what we do 2218 // actual final call site and just bl'ing to it here, similar to what we do
2219 // in the lithium backend. 2219 // in the lithium backend.
2220 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; 2220 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts;
2221 DeoptimizeReason deoptimization_reason = 2221 DeoptimizeReason deoptimization_reason =
2222 GetDeoptimizationReason(deoptimization_id); 2222 GetDeoptimizationReason(deoptimization_id);
2223 __ RecordDeoptReason(deoptimization_reason, pos.raw(), deoptimization_id); 2223 __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id);
2224 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); 2224 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY);
2225 return kSuccess; 2225 return kSuccess;
2226 } 2226 }
2227 2227
2228 void CodeGenerator::FinishFrame(Frame* frame) { 2228 void CodeGenerator::FinishFrame(Frame* frame) {
2229 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); 2229 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor();
2230 const RegList double_saves = descriptor->CalleeSavedFPRegisters(); 2230 const RegList double_saves = descriptor->CalleeSavedFPRegisters();
2231 2231
2232 // Save callee-saved Double registers. 2232 // Save callee-saved Double registers.
2233 if (double_saves != 0) { 2233 if (double_saves != 0) {
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
2577 padding_size -= 2; 2577 padding_size -= 2;
2578 } 2578 }
2579 } 2579 }
2580 } 2580 }
2581 2581
2582 #undef __ 2582 #undef __
2583 2583
2584 } // namespace compiler 2584 } // namespace compiler
2585 } // namespace internal 2585 } // namespace internal
2586 } // namespace v8 2586 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698