| 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 1473 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1484 __ Pop(fp, lr); | 1484 __ Pop(fp, lr); |
| 1485 } else if (frame()->needs_frame()) { | 1485 } else if (frame()->needs_frame()) { |
| 1486 // Canonicalize JSFunction return sites for now. | 1486 // Canonicalize JSFunction return sites for now. |
| 1487 if (return_label_.is_bound()) { | 1487 if (return_label_.is_bound()) { |
| 1488 __ B(&return_label_); | 1488 __ B(&return_label_); |
| 1489 return; | 1489 return; |
| 1490 } else { | 1490 } else { |
| 1491 __ Bind(&return_label_); | 1491 __ Bind(&return_label_); |
| 1492 if (descriptor->UseNativeStack()) { | 1492 if (descriptor->UseNativeStack()) { |
| 1493 __ Mov(csp, fp); | 1493 __ Mov(csp, fp); |
| 1494 pop_count += (pop_count & 1); // align |
| 1494 } else { | 1495 } else { |
| 1495 __ Mov(jssp, fp); | 1496 __ Mov(jssp, fp); |
| 1496 } | 1497 } |
| 1497 __ Pop(fp, lr); | 1498 __ Pop(fp, lr); |
| 1498 } | 1499 } |
| 1499 } else if (descriptor->UseNativeStack()) { | 1500 } else if (descriptor->UseNativeStack()) { |
| 1500 pop_count += (pop_count & 1); | 1501 pop_count += (pop_count & 1); // align |
| 1501 } | 1502 } |
| 1502 __ Drop(pop_count); | 1503 __ Drop(pop_count); |
| 1503 __ Ret(); | 1504 __ Ret(); |
| 1504 } | 1505 } |
| 1505 | 1506 |
| 1506 | 1507 |
| 1507 void CodeGenerator::AssembleMove(InstructionOperand* source, | 1508 void CodeGenerator::AssembleMove(InstructionOperand* source, |
| 1508 InstructionOperand* destination) { | 1509 InstructionOperand* destination) { |
| 1509 Arm64OperandConverter g(this, nullptr); | 1510 Arm64OperandConverter g(this, nullptr); |
| 1510 // Dispatch on the source and destination operand kinds. Not all | 1511 // Dispatch on the source and destination operand kinds. Not all |
| (...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1686 padding_size -= kInstructionSize; | 1687 padding_size -= kInstructionSize; |
| 1687 } | 1688 } |
| 1688 } | 1689 } |
| 1689 } | 1690 } |
| 1690 | 1691 |
| 1691 #undef __ | 1692 #undef __ |
| 1692 | 1693 |
| 1693 } // namespace compiler | 1694 } // namespace compiler |
| 1694 } // namespace internal | 1695 } // namespace internal |
| 1695 } // namespace v8 | 1696 } // namespace v8 |
| OLD | NEW |