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

Side by Side Diff: src/compiler/arm64/code-generator-arm64.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/arm64/frames-arm64.h" 7 #include "src/arm64/frames-arm64.h"
8 #include "src/arm64/macro-assembler-arm64.h" 8 #include "src/arm64/macro-assembler-arm64.h"
9 #include "src/compilation-info.h" 9 #include "src/compilation-info.h"
10 #include "src/compiler/code-generator-impl.h" 10 #include "src/compiler/code-generator-impl.h"
(...skipping 1738 matching lines...) Expand 10 before | Expand all | Expand 10 after
1749 } 1749 }
1750 1750
1751 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( 1751 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall(
1752 int deoptimization_id, Deoptimizer::BailoutType bailout_type, 1752 int deoptimization_id, Deoptimizer::BailoutType bailout_type,
1753 SourcePosition pos) { 1753 SourcePosition pos) {
1754 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( 1754 Address deopt_entry = Deoptimizer::GetDeoptimizationEntry(
1755 isolate(), deoptimization_id, bailout_type); 1755 isolate(), deoptimization_id, bailout_type);
1756 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; 1756 if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts;
1757 DeoptimizeReason deoptimization_reason = 1757 DeoptimizeReason deoptimization_reason =
1758 GetDeoptimizationReason(deoptimization_id); 1758 GetDeoptimizationReason(deoptimization_id);
1759 __ RecordDeoptReason(deoptimization_reason, pos.raw(), deoptimization_id); 1759 __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id);
1760 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); 1760 __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY);
1761 return kSuccess; 1761 return kSuccess;
1762 } 1762 }
1763 1763
1764 void CodeGenerator::FinishFrame(Frame* frame) { 1764 void CodeGenerator::FinishFrame(Frame* frame) {
1765 frame->AlignFrame(16); 1765 frame->AlignFrame(16);
1766 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); 1766 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor();
1767 1767
1768 if (descriptor->UseNativeStack() || descriptor->IsCFunctionCall()) { 1768 if (descriptor->UseNativeStack() || descriptor->IsCFunctionCall()) {
1769 __ SetStackPointer(csp); 1769 __ SetStackPointer(csp);
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
2116 padding_size -= kInstructionSize; 2116 padding_size -= kInstructionSize;
2117 } 2117 }
2118 } 2118 }
2119 } 2119 }
2120 2120
2121 #undef __ 2121 #undef __
2122 2122
2123 } // namespace compiler 2123 } // namespace compiler
2124 } // namespace internal 2124 } // namespace internal
2125 } // namespace v8 2125 } // namespace v8
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698