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

Side by Side Diff: src/compiler/mips/code-generator-mips.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 1868 matching lines...) Expand 10 before | Expand all | Expand 10 after
1879 } 1879 }
1880 1880
1881 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( 1881 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall(
1882 int deoptimization_id, Deoptimizer::BailoutType bailout_type, 1882 int deoptimization_id, Deoptimizer::BailoutType bailout_type,
1883 SourcePosition pos) { 1883 SourcePosition pos) {
1884 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( 1884 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry(
1885 isolate(), deoptimization_id, bailout_type); 1885 isolate(), deoptimization_id, bailout_type);
1886 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; 1886 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts;
1887 DeoptimizeReason deoptimization_reason = 1887 DeoptimizeReason deoptimization_reason =
1888 GetDeoptimizationReason(deoptimization_id); 1888 GetDeoptimizationReason(deoptimization_id);
1889 __ RecordDeoptReason(deoptimization_reason, pos.raw(), deoptimization_id); 1889 __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id);
1890 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); 1890 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY);
1891 return kSuccess; 1891 return kSuccess;
1892 } 1892 }
1893 1893
1894 void CodeGenerator::FinishFrame(Frame* frame) { 1894 void CodeGenerator::FinishFrame(Frame* frame) {
1895 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); 1895 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor();
1896 1896
1897 const RegList saves_fpu = descriptor->CalleeSavedFPRegisters(); 1897 const RegList saves_fpu = descriptor->CalleeSavedFPRegisters();
1898 if (saves_fpu != 0) { 1898 if (saves_fpu != 0) {
1899 frame->AlignSavedCalleeRegisterSlots(); 1899 frame->AlignSavedCalleeRegisterSlots();
(...skipping 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
2268 padding_size -= v8::internal::Assembler::kInstrSize; 2268 padding_size -= v8::internal::Assembler::kInstrSize;
2269 } 2269 }
2270 } 2270 }
2271 } 2271 }
2272 2272
2273 #undef __ 2273 #undef __
2274 2274
2275 } // namespace compiler 2275 } // namespace compiler
2276 } // namespace internal 2276 } // namespace internal
2277 } // namespace v8 2277 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698