| 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_IA32. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_IA32. |
| 6 #if defined(TARGET_ARCH_IA32) | 6 #if defined(TARGET_ARCH_IA32) |
| 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 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1113 __ EnterOsrFrame(extra_slots * kWordSize); | 1113 __ EnterOsrFrame(extra_slots * kWordSize); |
| 1114 } else { | 1114 } else { |
| 1115 ASSERT(StackSize() >= 0); | 1115 ASSERT(StackSize() >= 0); |
| 1116 __ EnterDartFrame(StackSize() * kWordSize); | 1116 __ EnterDartFrame(StackSize() * kWordSize); |
| 1117 } | 1117 } |
| 1118 } | 1118 } |
| 1119 | 1119 |
| 1120 | 1120 |
| 1121 void FlowGraphCompiler::CompileGraph() { | 1121 void FlowGraphCompiler::CompileGraph() { |
| 1122 InitCompiler(); | 1122 InitCompiler(); |
| 1123 if (TryIntrinsify()) { | 1123 |
| 1124 // Although this intrinsified code will never be patched, it must satisfy | 1124 TryIntrinsify(); |
| 1125 // CodePatcher::CodeIsPatchable, which verifies that this code has a minimum | |
| 1126 // code size. | |
| 1127 __ int3(); | |
| 1128 __ jmp(&StubCode::FixCallersTargetLabel()); | |
| 1129 return; | |
| 1130 } | |
| 1131 | 1125 |
| 1132 EmitFrameEntry(); | 1126 EmitFrameEntry(); |
| 1133 | 1127 |
| 1134 const Function& function = parsed_function().function(); | 1128 const Function& function = parsed_function().function(); |
| 1135 | 1129 |
| 1136 const int num_fixed_params = function.num_fixed_parameters(); | 1130 const int num_fixed_params = function.num_fixed_parameters(); |
| 1137 const int num_copied_params = parsed_function().num_copied_params(); | 1131 const int num_copied_params = parsed_function().num_copied_params(); |
| 1138 const int num_locals = parsed_function().num_stack_locals(); | 1132 const int num_locals = parsed_function().num_stack_locals(); |
| 1139 | 1133 |
| 1140 // We check the number of passed arguments when we have to copy them due to | 1134 // We check the number of passed arguments when we have to copy them due to |
| (...skipping 768 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1909 __ movups(reg, Address(ESP, 0)); | 1903 __ movups(reg, Address(ESP, 0)); |
| 1910 __ addl(ESP, Immediate(kFpuRegisterSize)); | 1904 __ addl(ESP, Immediate(kFpuRegisterSize)); |
| 1911 } | 1905 } |
| 1912 | 1906 |
| 1913 | 1907 |
| 1914 #undef __ | 1908 #undef __ |
| 1915 | 1909 |
| 1916 } // namespace dart | 1910 } // namespace dart |
| 1917 | 1911 |
| 1918 #endif // defined TARGET_ARCH_IA32 | 1912 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |