| OLD | NEW | 
|     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 1741 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  1752 } |  1752 } | 
|  1753  |  1753  | 
|  1754 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( |  1754 CodeGenerator::CodeGenResult CodeGenerator::AssembleDeoptimizerCall( | 
|  1755     int deoptimization_id, Deoptimizer::BailoutType bailout_type, |  1755     int deoptimization_id, Deoptimizer::BailoutType bailout_type, | 
|  1756     SourcePosition pos) { |  1756     SourcePosition pos) { | 
|  1757   Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( |  1757   Address deopt_entry = Deoptimizer::GetDeoptimizationEntry( | 
|  1758       isolate(), deoptimization_id, bailout_type); |  1758       isolate(), deoptimization_id, bailout_type); | 
|  1759   if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; |  1759   if (deopt_entry == nullptr) return kTooManyDeoptimizationBailouts; | 
|  1760   DeoptimizeReason deoptimization_reason = |  1760   DeoptimizeReason deoptimization_reason = | 
|  1761       GetDeoptimizationReason(deoptimization_id); |  1761       GetDeoptimizationReason(deoptimization_id); | 
|  1762   __ RecordDeoptReason(deoptimization_reason, pos.raw(), deoptimization_id); |  1762   __ RecordDeoptReason(deoptimization_reason, pos, deoptimization_id); | 
|  1763   __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); |  1763   __ Call(deopt_entry, RelocInfo::RUNTIME_ENTRY); | 
|  1764   return kSuccess; |  1764   return kSuccess; | 
|  1765 } |  1765 } | 
|  1766  |  1766  | 
|  1767 void CodeGenerator::FinishFrame(Frame* frame) { |  1767 void CodeGenerator::FinishFrame(Frame* frame) { | 
|  1768   frame->AlignFrame(16); |  1768   frame->AlignFrame(16); | 
|  1769   CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); |  1769   CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); | 
|  1770  |  1770  | 
|  1771   if (descriptor->UseNativeStack() || descriptor->IsCFunctionCall()) { |  1771   if (descriptor->UseNativeStack() || descriptor->IsCFunctionCall()) { | 
|  1772     __ SetStackPointer(csp); |  1772     __ SetStackPointer(csp); | 
| (...skipping 315 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  2088       padding_size -= kInstructionSize; |  2088       padding_size -= kInstructionSize; | 
|  2089     } |  2089     } | 
|  2090   } |  2090   } | 
|  2091 } |  2091 } | 
|  2092  |  2092  | 
|  2093 #undef __ |  2093 #undef __ | 
|  2094  |  2094  | 
|  2095 }  // namespace compiler |  2095 }  // namespace compiler | 
|  2096 }  // namespace internal |  2096 }  // namespace internal | 
|  2097 }  // namespace v8 |  2097 }  // namespace v8 | 
| OLD | NEW |