| 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 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1108 __ EnterOsrFrame(extra_slots * kWordSize); | 1108 __ EnterOsrFrame(extra_slots * kWordSize); |
| 1109 } else { | 1109 } else { |
| 1110 ASSERT(StackSize() >= 0); | 1110 ASSERT(StackSize() >= 0); |
| 1111 __ EnterDartFrame(StackSize() * kWordSize); | 1111 __ EnterDartFrame(StackSize() * kWordSize); |
| 1112 } | 1112 } |
| 1113 } | 1113 } |
| 1114 | 1114 |
| 1115 | 1115 |
| 1116 void FlowGraphCompiler::CompileGraph() { | 1116 void FlowGraphCompiler::CompileGraph() { |
| 1117 InitCompiler(); | 1117 InitCompiler(); |
| 1118 if (TryIntrinsify()) { | 1118 |
| 1119 // Although this intrinsified code will never be patched, it must satisfy | 1119 TryIntrinsify(); |
| 1120 // CodePatcher::CodeIsPatchable, which verifies that this code has a minimum | |
| 1121 // code size, and nop(2) increases the minimum code size appropriately. | |
| 1122 __ nop(2); | |
| 1123 __ int3(); | |
| 1124 __ jmp(&StubCode::FixCallersTargetLabel()); | |
| 1125 return; | |
| 1126 } | |
| 1127 | 1120 |
| 1128 EmitFrameEntry(); | 1121 EmitFrameEntry(); |
| 1129 | 1122 |
| 1130 const Function& function = parsed_function().function(); | 1123 const Function& function = parsed_function().function(); |
| 1131 | 1124 |
| 1132 const int num_fixed_params = function.num_fixed_parameters(); | 1125 const int num_fixed_params = function.num_fixed_parameters(); |
| 1133 const int num_copied_params = parsed_function().num_copied_params(); | 1126 const int num_copied_params = parsed_function().num_copied_params(); |
| 1134 const int num_locals = parsed_function().num_stack_locals(); | 1127 const int num_locals = parsed_function().num_stack_locals(); |
| 1135 | 1128 |
| 1136 // We check the number of passed arguments when we have to copy them due to | 1129 // We check the number of passed arguments when we have to copy them due to |
| (...skipping 752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1889 __ movups(reg, Address(RSP, 0)); | 1882 __ movups(reg, Address(RSP, 0)); |
| 1890 __ addq(RSP, Immediate(kFpuRegisterSize)); | 1883 __ addq(RSP, Immediate(kFpuRegisterSize)); |
| 1891 } | 1884 } |
| 1892 | 1885 |
| 1893 | 1886 |
| 1894 #undef __ | 1887 #undef __ |
| 1895 | 1888 |
| 1896 } // namespace dart | 1889 } // namespace dart |
| 1897 | 1890 |
| 1898 #endif // defined TARGET_ARCH_X64 | 1891 #endif // defined TARGET_ARCH_X64 |
| OLD | NEW |