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

Side by Side Diff: src/compiler/mips64/code-generator-mips64.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 #include "src/compilation-info.h" 6 #include "src/compilation-info.h"
7 #include "src/compiler/code-generator-impl.h" 7 #include "src/compiler/code-generator-impl.h"
8 #include "src/compiler/gap-resolver.h" 8 #include "src/compiler/gap-resolver.h"
9 #include "src/compiler/node-matchers.h" 9 #include "src/compiler/node-matchers.h"
10 #include "src/compiler/osr.h" 10 #include "src/compiler/osr.h"
(...skipping 2189 matching lines...) Expand 10 before | Expand all | Expand 10 after
2200 } 2200 }
2201 2201
2202 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( 2202 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall(
2203 int deoptimization_id, Deoptimizer::BailoutType bailout_type, 2203 int deoptimization_id, Deoptimizer::BailoutType bailout_type,
2204 SourcePosition pos) { 2204 SourcePosition pos) {
2205 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( 2205 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry(
2206 isolate(), deoptimization_id, bailout_type); 2206 isolate(), deoptimization_id, bailout_type);
2207 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; 2207 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts;
2208 DeoptimizeReason deoptimization_reason = 2208 DeoptimizeReason deoptimization_reason =
2209 GetDeoptimizationReason(deoptimization_id); 2209 GetDeoptimizationReason(deoptimization_id);
2210 __ RecordDeoptReason(deoptimization_reason, pos.raw(), deoptimization_id); 2210 __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id);
2211 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); 2211 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY);
2212 return kSuccess; 2212 return kSuccess;
2213 } 2213 }
2214 2214
2215 void CodeGenerator::FinishFrame(Frame* frame) { 2215 void CodeGenerator::FinishFrame(Frame* frame) {
2216 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); 2216 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor();
2217 2217
2218 const RegList saves_fpu = descriptor->CalleeSavedFPRegisters(); 2218 const RegList saves_fpu = descriptor->CalleeSavedFPRegisters();
2219 if (saves_fpu != 0) { 2219 if (saves_fpu != 0) {
2220 int count = base::bits::CountPopulation32(saves_fpu); 2220 int count = base::bits::CountPopulation32(saves_fpu);
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
2543 padding_size -= v8::internal::Assembler::kInstrSize; 2543 padding_size -= v8::internal::Assembler::kInstrSize;
2544 } 2544 }
2545 } 2545 }
2546 } 2546 }
2547 2547
2548 #undef __ 2548 #undef __
2549 2549
2550 } // namespace compiler 2550 } // namespace compiler
2551 } // namespace internal 2551 } // namespace internal
2552 } // namespace v8 2552 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698