| 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 1307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1318 __ j(ZERO, &call_target_function, Assembler::kNearJump); | 1318 __ j(ZERO, &call_target_function, Assembler::kNearJump); |
| 1319 __ cmpl(EDX, EAX); | 1319 __ cmpl(EDX, EAX); |
| 1320 __ j(NOT_EQUAL, &update, Assembler::kNearJump); | 1320 __ j(NOT_EQUAL, &update, Assembler::kNearJump); |
| 1321 | 1321 |
| 1322 __ Bind(&call_target_function); | 1322 __ Bind(&call_target_function); |
| 1323 // Call the target found in the cache. For a class id match, this is a | 1323 // Call the target found in the cache. For a class id match, this is a |
| 1324 // proper target for the given name and arguments descriptor. If the | 1324 // proper target for the given name and arguments descriptor. If the |
| 1325 // illegal class id was found, the target is a cache miss handler that can | 1325 // illegal class id was found, the target is a cache miss handler that can |
| 1326 // be invoked as a normal Dart function. | 1326 // be invoked as a normal Dart function. |
| 1327 __ movl(EAX, FieldAddress(EDI, ECX, TIMES_4, base + kWordSize)); | 1327 __ movl(EAX, FieldAddress(EDI, ECX, TIMES_4, base + kWordSize)); |
| 1328 __ movl(EBX, FieldAddress(EAX, Function::code_offset())); | 1328 __ movl(EBX, FieldAddress(EAX, Function::instructions_offset())); |
| 1329 __ movl(EBX, FieldAddress(EBX, Code::instructions_offset())); | |
| 1330 __ LoadObject(ECX, ic_data); | 1329 __ LoadObject(ECX, ic_data); |
| 1331 __ LoadObject(EDX, arguments_descriptor); | 1330 __ LoadObject(EDX, arguments_descriptor); |
| 1332 __ addl(EBX, Immediate(Instructions::HeaderSize() - kHeapObjectTag)); | 1331 __ addl(EBX, Immediate(Instructions::HeaderSize() - kHeapObjectTag)); |
| 1333 __ call(EBX); | 1332 __ call(EBX); |
| 1334 AddCurrentDescriptor(PcDescriptors::kOther, Isolate::kNoDeoptId, token_pos); | 1333 AddCurrentDescriptor(PcDescriptors::kOther, Isolate::kNoDeoptId, token_pos); |
| 1335 RecordSafepoint(locs); | 1334 RecordSafepoint(locs); |
| 1336 AddDeoptIndexAtCall(Isolate::ToDeoptAfter(deopt_id), token_pos); | 1335 AddDeoptIndexAtCall(Isolate::ToDeoptAfter(deopt_id), token_pos); |
| 1337 __ Drop(argument_count); | 1336 __ Drop(argument_count); |
| 1338 } | 1337 } |
| 1339 | 1338 |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1767 __ movups(reg, Address(ESP, 0)); | 1766 __ movups(reg, Address(ESP, 0)); |
| 1768 __ addl(ESP, Immediate(kFpuRegisterSize)); | 1767 __ addl(ESP, Immediate(kFpuRegisterSize)); |
| 1769 } | 1768 } |
| 1770 | 1769 |
| 1771 | 1770 |
| 1772 #undef __ | 1771 #undef __ |
| 1773 | 1772 |
| 1774 } // namespace dart | 1773 } // namespace dart |
| 1775 | 1774 |
| 1776 #endif // defined TARGET_ARCH_IA32 | 1775 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |