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

Side by Side Diff: src/compiler/ppc/code-generator-ppc.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 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/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 2064 matching lines...) Expand 10 before | Expand all | Expand 10 after
2075 int deoptimization_id, Deoptimizer::BailoutType bailout_type, 2075 int deoptimization_id, Deoptimizer::BailoutType bailout_type,
2076 SourcePosition pos) { 2076 SourcePosition pos) {
2077 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( 2077 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry(
2078 isolate(), deoptimization_id, bailout_type); 2078 isolate(), deoptimization_id, bailout_type);
2079 // TODO(turbofan): We should be able to generate better code by sharing the 2079 // TODO(turbofan): We should be able to generate better code by sharing the
2080 // actual final call site and just bl'ing to it here, similar to what we do 2080 // actual final call site and just bl'ing to it here, similar to what we do
2081 // in the lithium backend. 2081 // in the lithium backend.
2082 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; 2082 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts;
2083 DeoptimizeReason deoptimization_reason = 2083 DeoptimizeReason deoptimization_reason =
2084 GetDeoptimizationReason(deoptimization_id); 2084 GetDeoptimizationReason(deoptimization_id);
2085 __ RecordDeoptReason(deoptimization_reason, pos.raw(), deoptimization_id); 2085 __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id);
2086 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); 2086 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY);
2087 return kSuccess; 2087 return kSuccess;
2088 } 2088 }
2089 2089
2090 void CodeGenerator::FinishFrame(Frame* frame) { 2090 void CodeGenerator::FinishFrame(Frame* frame) {
2091 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); 2091 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor();
2092 const RegList double_saves = descriptor->CalleeSavedFPRegisters(); 2092 const RegList double_saves = descriptor->CalleeSavedFPRegisters();
2093 2093
2094 // Save callee-saved Double registers. 2094 // Save callee-saved Double registers.
2095 if (double_saves != 0) { 2095 if (double_saves != 0) {
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after
2457 padding_size -= v8::internal::Assembler::kInstrSize; 2457 padding_size -= v8::internal::Assembler::kInstrSize;
2458 } 2458 }
2459 } 2459 }
2460 } 2460 }
2461 2461
2462 #undef __ 2462 #undef __
2463 2463
2464 } // namespace compiler 2464 } // namespace compiler
2465 } // namespace internal 2465 } // namespace internal
2466 } // namespace v8 2466 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698