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

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

Issue 2451853002: Uniform and precise source positions for inlining (Closed)
Patch Set: fixed obsolete identifiers 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 2067 matching lines...) Expand 10 before | Expand all | Expand 10 after
2078 int deoptimization_id, Deoptimizer::BailoutType bailout_type, 2078 int deoptimization_id, Deoptimizer::BailoutType bailout_type,
2079 SourcePosition pos) { 2079 SourcePosition pos) {
2080 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( 2080 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry(
2081 isolate(), deoptimization_id, bailout_type); 2081 isolate(), deoptimization_id, bailout_type);
2082 // TODO(turbofan): We should be able to generate better code by sharing the 2082 // TODO(turbofan): We should be able to generate better code by sharing the
2083 // actual final call site and just bl'ing to it here, similar to what we do 2083 // actual final call site and just bl'ing to it here, similar to what we do
2084 // in the lithium backend. 2084 // in the lithium backend.
2085 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; 2085 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts;
2086 DeoptimizeReason deoptimization_reason = 2086 DeoptimizeReason deoptimization_reason =
2087 GetDeoptimizationReason(deoptimization_id); 2087 GetDeoptimizationReason(deoptimization_id);
2088 __ RecordDeoptReason(deoptimization_reason, pos.raw(), deoptimization_id); 2088 __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id);
2089 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); 2089 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY);
2090 return kSuccess; 2090 return kSuccess;
2091 } 2091 }
2092 2092
2093 void CodeGenerator::FinishFrame(Frame* frame) { 2093 void CodeGenerator::FinishFrame(Frame* frame) {
2094 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); 2094 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor();
2095 const RegList double_saves = descriptor->CalleeSavedFPRegisters(); 2095 const RegList double_saves = descriptor->CalleeSavedFPRegisters();
2096 2096
2097 // Save callee-saved Double registers. 2097 // Save callee-saved Double registers.
2098 if (double_saves != 0) { 2098 if (double_saves != 0) {
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
2444 padding_size -= v8::internal::Assembler::kInstrSize; 2444 padding_size -= v8::internal::Assembler::kInstrSize;
2445 } 2445 }
2446 } 2446 }
2447 } 2447 }
2448 2448
2449 #undef __ 2449 #undef __
2450 2450
2451 } // namespace compiler 2451 } // namespace compiler
2452 } // namespace internal 2452 } // namespace internal
2453 } // namespace v8 2453 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698