| 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_X64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64. |
| 6 #if defined(TARGET_ARCH_X64) | 6 #if defined(TARGET_ARCH_X64) |
| 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 1012 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1023 ASSERT(StackSize() >= 0); | 1023 ASSERT(StackSize() >= 0); |
| 1024 __ Comment("Enter frame"); | 1024 __ Comment("Enter frame"); |
| 1025 __ EnterDartFrame(StackSize() * kWordSize, new_pp); | 1025 __ EnterDartFrame(StackSize() * kWordSize, new_pp); |
| 1026 } | 1026 } |
| 1027 } | 1027 } |
| 1028 | 1028 |
| 1029 | 1029 |
| 1030 void FlowGraphCompiler::CompileGraph() { | 1030 void FlowGraphCompiler::CompileGraph() { |
| 1031 InitCompiler(); | 1031 InitCompiler(); |
| 1032 | 1032 |
| 1033 TryIntrinsify(); | 1033 if (TryIntrinsify()) { |
| 1034 // Skip regular code generation. |
| 1035 return; |
| 1036 } |
| 1034 | 1037 |
| 1035 EmitFrameEntry(); | 1038 EmitFrameEntry(); |
| 1036 ASSERT(assembler()->constant_pool_allowed()); | 1039 ASSERT(assembler()->constant_pool_allowed()); |
| 1037 | 1040 |
| 1038 const Function& function = parsed_function().function(); | 1041 const Function& function = parsed_function().function(); |
| 1039 | 1042 |
| 1040 const int num_fixed_params = function.num_fixed_parameters(); | 1043 const int num_fixed_params = function.num_fixed_parameters(); |
| 1041 const int num_copied_params = parsed_function().num_copied_params(); | 1044 const int num_copied_params = parsed_function().num_copied_params(); |
| 1042 const int num_locals = parsed_function().num_stack_locals(); | 1045 const int num_locals = parsed_function().num_stack_locals(); |
| 1043 | 1046 |
| (...skipping 711 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1755 __ movups(reg, Address(RSP, 0)); | 1758 __ movups(reg, Address(RSP, 0)); |
| 1756 __ AddImmediate(RSP, Immediate(kFpuRegisterSize)); | 1759 __ AddImmediate(RSP, Immediate(kFpuRegisterSize)); |
| 1757 } | 1760 } |
| 1758 | 1761 |
| 1759 | 1762 |
| 1760 #undef __ | 1763 #undef __ |
| 1761 | 1764 |
| 1762 } // namespace dart | 1765 } // namespace dart |
| 1763 | 1766 |
| 1764 #endif // defined TARGET_ARCH_X64 | 1767 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |