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 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1013 // Input parameters: | 1013 // Input parameters: |
1014 // LR: return address. | 1014 // LR: return address. |
1015 // SP: address of last argument. | 1015 // SP: address of last argument. |
1016 // FP: caller's frame pointer. | 1016 // FP: caller's frame pointer. |
1017 // PP: caller's pool pointer. | 1017 // PP: caller's pool pointer. |
1018 // R5: ic-data. | 1018 // R5: ic-data. |
1019 // R4: arguments descriptor array. | 1019 // R4: arguments descriptor array. |
1020 void FlowGraphCompiler::CompileGraph() { | 1020 void FlowGraphCompiler::CompileGraph() { |
1021 InitCompiler(); | 1021 InitCompiler(); |
1022 | 1022 |
1023 TryIntrinsify(); | 1023 if (TryIntrinsify()) { |
| 1024 // Skip regular code generation. |
| 1025 return; |
| 1026 } |
1024 | 1027 |
1025 EmitFrameEntry(); | 1028 EmitFrameEntry(); |
1026 ASSERT(assembler()->constant_pool_allowed()); | 1029 ASSERT(assembler()->constant_pool_allowed()); |
1027 | 1030 |
1028 const Function& function = parsed_function().function(); | 1031 const Function& function = parsed_function().function(); |
1029 | 1032 |
1030 const int num_fixed_params = function.num_fixed_parameters(); | 1033 const int num_fixed_params = function.num_fixed_parameters(); |
1031 const int num_copied_params = parsed_function().num_copied_params(); | 1034 const int num_copied_params = parsed_function().num_copied_params(); |
1032 const int num_locals = parsed_function().num_stack_locals(); | 1035 const int num_locals = parsed_function().num_stack_locals(); |
1033 | 1036 |
(...skipping 833 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1867 DRegister dreg = EvenDRegisterOf(reg); | 1870 DRegister dreg = EvenDRegisterOf(reg); |
1868 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); | 1871 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); |
1869 } | 1872 } |
1870 | 1873 |
1871 | 1874 |
1872 #undef __ | 1875 #undef __ |
1873 | 1876 |
1874 } // namespace dart | 1877 } // namespace dart |
1875 | 1878 |
1876 #endif // defined TARGET_ARCH_ARM | 1879 #endif // defined TARGET_ARCH_ARM |
OLD | NEW |