| 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 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 980 __ movl(EAX, Address(ESP, 2 * kWordSize)); // Receiver. | 980 __ movl(EAX, Address(ESP, 2 * kWordSize)); // Receiver. |
| 981 __ movl(EBX, Address(ESP, 1 * kWordSize)); // Value. | 981 __ movl(EBX, Address(ESP, 1 * kWordSize)); // Value. |
| 982 __ StoreIntoObject(EAX, FieldAddress(EAX, offset), EBX); | 982 __ StoreIntoObject(EAX, FieldAddress(EAX, offset), EBX); |
| 983 const Immediate& raw_null = | 983 const Immediate& raw_null = |
| 984 Immediate(reinterpret_cast<intptr_t>(Object::null())); | 984 Immediate(reinterpret_cast<intptr_t>(Object::null())); |
| 985 __ movl(EAX, raw_null); | 985 __ movl(EAX, raw_null); |
| 986 __ ret(); | 986 __ ret(); |
| 987 } | 987 } |
| 988 | 988 |
| 989 | 989 |
| 990 // NOTE: If the entry code shape changes, ReturnAddressLocator in profiler.cc |
| 991 // needs to be updated to match. |
| 990 void FlowGraphCompiler::EmitFrameEntry() { | 992 void FlowGraphCompiler::EmitFrameEntry() { |
| 991 const Function& function = parsed_function().function(); | 993 const Function& function = parsed_function().function(); |
| 992 if (CanOptimizeFunction() && | 994 if (CanOptimizeFunction() && |
| 993 function.IsOptimizable() && | 995 function.IsOptimizable() && |
| 994 (!is_optimizing() || may_reoptimize())) { | 996 (!is_optimizing() || may_reoptimize())) { |
| 995 StubCode* stub_code = isolate()->stub_code(); | 997 StubCode* stub_code = isolate()->stub_code(); |
| 996 const Register function_reg = EDI; | 998 const Register function_reg = EDI; |
| 997 __ LoadObject(function_reg, function); | 999 __ LoadObject(function_reg, function); |
| 998 | 1000 |
| 999 // Patch point is after the eventually inlined function object. | 1001 // Patch point is after the eventually inlined function object. |
| (...skipping 851 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1851 __ movups(reg, Address(ESP, 0)); | 1853 __ movups(reg, Address(ESP, 0)); |
| 1852 __ addl(ESP, Immediate(kFpuRegisterSize)); | 1854 __ addl(ESP, Immediate(kFpuRegisterSize)); |
| 1853 } | 1855 } |
| 1854 | 1856 |
| 1855 | 1857 |
| 1856 #undef __ | 1858 #undef __ |
| 1857 | 1859 |
| 1858 } // namespace dart | 1860 } // namespace dart |
| 1859 | 1861 |
| 1860 #endif // defined TARGET_ARCH_IA32 | 1862 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |