| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64. |
| 6 #if defined(TARGET_ARCH_ARM64) | 6 #if defined(TARGET_ARCH_ARM64) |
| 7 | 7 |
| 8 #include "vm/flow_graph_compiler.h" | 8 #include "vm/flow_graph_compiler.h" |
| 9 | 9 |
| 10 #include "vm/ast_printer.h" | 10 #include "vm/ast_printer.h" |
| (...skipping 954 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 965 __ ret(); | 965 __ ret(); |
| 966 } | 966 } |
| 967 | 967 |
| 968 | 968 |
| 969 void FlowGraphCompiler::EmitFrameEntry() { | 969 void FlowGraphCompiler::EmitFrameEntry() { |
| 970 const Function& function = parsed_function().function(); | 970 const Function& function = parsed_function().function(); |
| 971 Register new_pp = kNoRegister; | 971 Register new_pp = kNoRegister; |
| 972 if (CanOptimizeFunction() && | 972 if (CanOptimizeFunction() && |
| 973 function.IsOptimizable() && | 973 function.IsOptimizable() && |
| 974 (!is_optimizing() || may_reoptimize())) { | 974 (!is_optimizing() || may_reoptimize())) { |
| 975 __ Comment("Invocation Count Check"); |
| 975 const Register function_reg = R6; | 976 const Register function_reg = R6; |
| 976 new_pp = R13; | 977 new_pp = R13; |
| 977 // The pool pointer is not setup before entering the Dart frame. | 978 // The pool pointer is not setup before entering the Dart frame. |
| 978 // Temporarily setup pool pointer for this dart function. | 979 // Temporarily setup pool pointer for this dart function. |
| 979 __ LoadPoolPointer(new_pp); | 980 __ LoadPoolPointer(new_pp); |
| 980 | 981 |
| 981 // Load function object using the callee's pool pointer. | 982 // Load function object using the callee's pool pointer. |
| 982 __ LoadFunctionFromCalleePool(function_reg, function, new_pp); | 983 __ LoadFunctionFromCalleePool(function_reg, function, new_pp); |
| 983 | 984 |
| 984 __ LoadFieldFromOffset( | 985 __ LoadFieldFromOffset( |
| (...skipping 885 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1870 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { | 1871 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { |
| 1871 __ PopDouble(reg); | 1872 __ PopDouble(reg); |
| 1872 } | 1873 } |
| 1873 | 1874 |
| 1874 | 1875 |
| 1875 #undef __ | 1876 #undef __ |
| 1876 | 1877 |
| 1877 } // namespace dart | 1878 } // namespace dart |
| 1878 | 1879 |
| 1879 #endif // defined TARGET_ARCH_ARM64 | 1880 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |