| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 "lib/error.h" | 10 #include "lib/error.h" |
| (...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 860 __ Bind(&smi_to_double); | 860 __ Bind(&smi_to_double); |
| 861 __ SmiUntag(EAX); | 861 __ SmiUntag(EAX); |
| 862 __ cvtsi2sd(XMM1, EAX); | 862 __ cvtsi2sd(XMM1, EAX); |
| 863 __ jmp(&double_op); | 863 __ jmp(&double_op); |
| 864 __ Bind(&call_method); | 864 __ Bind(&call_method); |
| 865 } | 865 } |
| 866 | 866 |
| 867 | 867 |
| 868 void FlowGraphCompiler::CompileGraph() { | 868 void FlowGraphCompiler::CompileGraph() { |
| 869 InitCompiler(); | 869 InitCompiler(); |
| 870 if (TryIntrinsify()) { | 870 if (CanOptimize() && TryIntrinsify()) { |
| 871 // Although this intrinsified code will never be patched, it must satisfy | 871 // Although this intrinsified code will never be patched, it must satisfy |
| 872 // CodePatcher::CodeIsPatchable, which verifies that this code has a minimum | 872 // CodePatcher::CodeIsPatchable, which verifies that this code has a minimum |
| 873 // code size. | 873 // code size. |
| 874 __ int3(); | 874 __ int3(); |
| 875 __ jmp(&StubCode::FixCallersTargetLabel()); | 875 __ jmp(&StubCode::FixCallersTargetLabel()); |
| 876 return; | 876 return; |
| 877 } | 877 } |
| 878 // Specialized version of entry code from CodeGenerator::GenerateEntryCode. | 878 // Specialized version of entry code from CodeGenerator::GenerateEntryCode. |
| 879 const Function& function = parsed_function().function(); | 879 const Function& function = parsed_function().function(); |
| 880 | 880 |
| (...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1053 __ cvtsi2sd(result, temp); | 1053 __ cvtsi2sd(result, temp); |
| 1054 __ Bind(&done); | 1054 __ Bind(&done); |
| 1055 } | 1055 } |
| 1056 | 1056 |
| 1057 | 1057 |
| 1058 #undef __ | 1058 #undef __ |
| 1059 | 1059 |
| 1060 } // namespace dart | 1060 } // namespace dart |
| 1061 | 1061 |
| 1062 #endif // defined TARGET_ARCH_IA32 | 1062 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |