| 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 1100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1111 | 1111 |
| 1112 // Input parameters: | 1112 // Input parameters: |
| 1113 // LR: return address. | 1113 // LR: return address. |
| 1114 // SP: address of last argument. | 1114 // SP: address of last argument. |
| 1115 // FP: caller's frame pointer. | 1115 // FP: caller's frame pointer. |
| 1116 // PP: caller's pool pointer. | 1116 // PP: caller's pool pointer. |
| 1117 // R5: ic-data. | 1117 // R5: ic-data. |
| 1118 // R4: arguments descriptor array. | 1118 // R4: arguments descriptor array. |
| 1119 void FlowGraphCompiler::CompileGraph() { | 1119 void FlowGraphCompiler::CompileGraph() { |
| 1120 InitCompiler(); | 1120 InitCompiler(); |
| 1121 if (TryIntrinsify()) { | 1121 |
| 1122 // Although this intrinsified code will never be patched, it must satisfy | 1122 TryIntrinsify(); |
| 1123 // CodePatcher::CodeIsPatchable, which verifies that this code has a minimum | |
| 1124 // code size. | |
| 1125 __ bkpt(0); | |
| 1126 __ Branch(&StubCode::FixCallersTargetLabel()); | |
| 1127 return; | |
| 1128 } | |
| 1129 | 1123 |
| 1130 EmitFrameEntry(); | 1124 EmitFrameEntry(); |
| 1131 | 1125 |
| 1132 const Function& function = parsed_function().function(); | 1126 const Function& function = parsed_function().function(); |
| 1133 | 1127 |
| 1134 const int num_fixed_params = function.num_fixed_parameters(); | 1128 const int num_fixed_params = function.num_fixed_parameters(); |
| 1135 const int num_copied_params = parsed_function().num_copied_params(); | 1129 const int num_copied_params = parsed_function().num_copied_params(); |
| 1136 const int num_locals = parsed_function().num_stack_locals(); | 1130 const int num_locals = parsed_function().num_stack_locals(); |
| 1137 | 1131 |
| 1138 // We check the number of passed arguments when we have to copy them due to | 1132 // We check the number of passed arguments when we have to copy them due to |
| (...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1900 DRegister dreg = EvenDRegisterOf(reg); | 1894 DRegister dreg = EvenDRegisterOf(reg); |
| 1901 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); | 1895 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); |
| 1902 } | 1896 } |
| 1903 | 1897 |
| 1904 | 1898 |
| 1905 #undef __ | 1899 #undef __ |
| 1906 | 1900 |
| 1907 } // namespace dart | 1901 } // namespace dart |
| 1908 | 1902 |
| 1909 #endif // defined TARGET_ARCH_ARM | 1903 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |