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/ast/scopes.h" | 9 #include "src/ast/scopes.h" |
10 #include "src/compiler/code-generator-impl.h" | 10 #include "src/compiler/code-generator-impl.h" |
(...skipping 1328 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1339 } | 1339 } |
1340 | 1340 |
1341 | 1341 |
1342 void CodeGenerator::AssemblePrologue() { | 1342 void CodeGenerator::AssemblePrologue() { |
1343 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); | 1343 CallDescriptor* descriptor = linkage()->GetIncomingDescriptor(); |
1344 if (descriptor->IsCFunctionCall()) { | 1344 if (descriptor->IsCFunctionCall()) { |
1345 __ SetStackPointer(csp); | 1345 __ SetStackPointer(csp); |
1346 __ Push(lr, fp); | 1346 __ Push(lr, fp); |
1347 __ Mov(fp, csp); | 1347 __ Mov(fp, csp); |
1348 } else if (descriptor->IsJSFunctionCall()) { | 1348 } else if (descriptor->IsJSFunctionCall()) { |
1349 CompilationInfo* info = this->info(); | |
1350 __ SetStackPointer(jssp); | 1349 __ SetStackPointer(jssp); |
1351 __ Prologue(info->IsCodePreAgingActive()); | 1350 __ Prologue(this->info()->GeneratePreagedPrologue()); |
1352 } else if (frame()->needs_frame()) { | 1351 } else if (frame()->needs_frame()) { |
1353 if (descriptor->UseNativeStack()) { | 1352 if (descriptor->UseNativeStack()) { |
1354 __ SetStackPointer(csp); | 1353 __ SetStackPointer(csp); |
1355 } else { | 1354 } else { |
1356 __ SetStackPointer(jssp); | 1355 __ SetStackPointer(jssp); |
1357 } | 1356 } |
1358 __ StubPrologue(); | 1357 __ StubPrologue(); |
1359 } else { | 1358 } else { |
1360 if (descriptor->UseNativeStack()) { | 1359 if (descriptor->UseNativeStack()) { |
1361 __ SetStackPointer(csp); | 1360 __ SetStackPointer(csp); |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1641 padding_size -= kInstructionSize; | 1640 padding_size -= kInstructionSize; |
1642 } | 1641 } |
1643 } | 1642 } |
1644 } | 1643 } |
1645 | 1644 |
1646 #undef __ | 1645 #undef __ |
1647 | 1646 |
1648 } // namespace compiler | 1647 } // namespace compiler |
1649 } // namespace internal | 1648 } // namespace internal |
1650 } // namespace v8 | 1649 } // namespace v8 |
OLD | NEW |