| 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 1046 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1057 const Immediate& raw_null = | 1057 const Immediate& raw_null = |
| 1058 Immediate(reinterpret_cast<intptr_t>(Object::null())); | 1058 Immediate(reinterpret_cast<intptr_t>(Object::null())); |
| 1059 __ movl(EAX, raw_null); | 1059 __ movl(EAX, raw_null); |
| 1060 __ ret(); | 1060 __ ret(); |
| 1061 } | 1061 } |
| 1062 | 1062 |
| 1063 | 1063 |
| 1064 void FlowGraphCompiler::EmitFrameEntry() { | 1064 void FlowGraphCompiler::EmitFrameEntry() { |
| 1065 const Function& function = parsed_function().function(); | 1065 const Function& function = parsed_function().function(); |
| 1066 if (CanOptimizeFunction() && | 1066 if (CanOptimizeFunction() && |
| 1067 function.is_optimizable() && | 1067 function.IsOptimizable() && |
| 1068 (!is_optimizing() || may_reoptimize())) { | 1068 (!is_optimizing() || may_reoptimize())) { |
| 1069 const Register function_reg = EDI; | 1069 const Register function_reg = EDI; |
| 1070 __ LoadObject(function_reg, function); | 1070 __ LoadObject(function_reg, function); |
| 1071 // Patch point is after the eventually inlined function object. | 1071 // Patch point is after the eventually inlined function object. |
| 1072 AddCurrentDescriptor(PcDescriptors::kEntryPatch, | 1072 AddCurrentDescriptor(PcDescriptors::kEntryPatch, |
| 1073 Isolate::kNoDeoptId, | 1073 Isolate::kNoDeoptId, |
| 1074 0); // No token position. | 1074 0); // No token position. |
| 1075 if (is_optimizing()) { | 1075 if (is_optimizing()) { |
| 1076 // Reoptimization of an optimized function is triggered by counting in | 1076 // Reoptimization of an optimized function is triggered by counting in |
| 1077 // IC stubs, but not at the entry of the function. | 1077 // IC stubs, but not at the entry of the function. |
| (...skipping 811 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1889 __ movups(reg, Address(ESP, 0)); | 1889 __ movups(reg, Address(ESP, 0)); |
| 1890 __ addl(ESP, Immediate(kFpuRegisterSize)); | 1890 __ addl(ESP, Immediate(kFpuRegisterSize)); |
| 1891 } | 1891 } |
| 1892 | 1892 |
| 1893 | 1893 |
| 1894 #undef __ | 1894 #undef __ |
| 1895 | 1895 |
| 1896 } // namespace dart | 1896 } // namespace dart |
| 1897 | 1897 |
| 1898 #endif // defined TARGET_ARCH_IA32 | 1898 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |