| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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_ARM. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
| 6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
| 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 965 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 976 | 976 |
| 977 | 977 |
| 978 static const Register new_pp = NOTFP; | 978 static const Register new_pp = NOTFP; |
| 979 | 979 |
| 980 | 980 |
| 981 void FlowGraphCompiler::EmitFrameEntry() { | 981 void FlowGraphCompiler::EmitFrameEntry() { |
| 982 const Function& function = parsed_function().function(); | 982 const Function& function = parsed_function().function(); |
| 983 if (CanOptimizeFunction() && | 983 if (CanOptimizeFunction() && |
| 984 function.IsOptimizable() && | 984 function.IsOptimizable() && |
| 985 (!is_optimizing() || may_reoptimize())) { | 985 (!is_optimizing() || may_reoptimize())) { |
| 986 __ Comment("Invocation Count Check"); |
| 986 const Register function_reg = R8; | 987 const Register function_reg = R8; |
| 987 | |
| 988 // The pool pointer is not setup before entering the Dart frame. | 988 // The pool pointer is not setup before entering the Dart frame. |
| 989 // Temporarily setup pool pointer for this dart function. | 989 // Temporarily setup pool pointer for this dart function. |
| 990 __ LoadPoolPointer(new_pp); | 990 __ LoadPoolPointer(new_pp); |
| 991 // Load function object from object pool. | 991 // Load function object from object pool. |
| 992 __ LoadFunctionFromCalleePool(function_reg, function, new_pp); | 992 __ LoadFunctionFromCalleePool(function_reg, function, new_pp); |
| 993 | 993 |
| 994 __ ldr(R3, FieldAddress(function_reg, | 994 __ ldr(R3, FieldAddress(function_reg, |
| 995 Function::usage_counter_offset())); | 995 Function::usage_counter_offset())); |
| 996 // Reoptimization of an optimized function is triggered by counting in | 996 // Reoptimization of an optimized function is triggered by counting in |
| 997 // IC stubs, but not at the entry of the function. | 997 // IC stubs, but not at the entry of the function. |
| (...skipping 935 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1933 DRegister dreg = EvenDRegisterOf(reg); | 1933 DRegister dreg = EvenDRegisterOf(reg); |
| 1934 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); | 1934 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); |
| 1935 } | 1935 } |
| 1936 | 1936 |
| 1937 | 1937 |
| 1938 #undef __ | 1938 #undef __ |
| 1939 | 1939 |
| 1940 } // namespace dart | 1940 } // namespace dart |
| 1941 | 1941 |
| 1942 #endif // defined TARGET_ARCH_ARM | 1942 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |