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_MIPS. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS. |
6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
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 1022 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1033 // Input parameters: | 1033 // Input parameters: |
1034 // RA: return address. | 1034 // RA: return address. |
1035 // SP: address of last argument. | 1035 // SP: address of last argument. |
1036 // FP: caller's frame pointer. | 1036 // FP: caller's frame pointer. |
1037 // PP: caller's pool pointer. | 1037 // PP: caller's pool pointer. |
1038 // S5: ic-data. | 1038 // S5: ic-data. |
1039 // S4: arguments descriptor array. | 1039 // S4: arguments descriptor array. |
1040 void FlowGraphCompiler::CompileGraph() { | 1040 void FlowGraphCompiler::CompileGraph() { |
1041 InitCompiler(); | 1041 InitCompiler(); |
1042 | 1042 |
1043 TryIntrinsify(); | 1043 if (TryIntrinsify()) { |
| 1044 // Skip regular code generation. |
| 1045 return; |
| 1046 } |
1044 | 1047 |
1045 EmitFrameEntry(); | 1048 EmitFrameEntry(); |
1046 | 1049 |
1047 const Function& function = parsed_function().function(); | 1050 const Function& function = parsed_function().function(); |
1048 | 1051 |
1049 const int num_fixed_params = function.num_fixed_parameters(); | 1052 const int num_fixed_params = function.num_fixed_parameters(); |
1050 const int num_copied_params = parsed_function().num_copied_params(); | 1053 const int num_copied_params = parsed_function().num_copied_params(); |
1051 const int num_locals = parsed_function().num_stack_locals(); | 1054 const int num_locals = parsed_function().num_stack_locals(); |
1052 | 1055 |
1053 // We check the number of passed arguments when we have to copy them due to | 1056 // We check the number of passed arguments when we have to copy them due to |
(...skipping 789 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1843 __ AddImmediate(SP, kDoubleSize); | 1846 __ AddImmediate(SP, kDoubleSize); |
1844 } | 1847 } |
1845 | 1848 |
1846 | 1849 |
1847 #undef __ | 1850 #undef __ |
1848 | 1851 |
1849 | 1852 |
1850 } // namespace dart | 1853 } // namespace dart |
1851 | 1854 |
1852 #endif // defined TARGET_ARCH_MIPS | 1855 #endif // defined TARGET_ARCH_MIPS |
OLD | NEW |