| 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 1302 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1313 __ j(NOT_EQUAL, &megamorphic_call, Assembler::kNearJump); | 1313 __ j(NOT_EQUAL, &megamorphic_call, Assembler::kNearJump); |
| 1314 __ movl(EAX, FieldAddress(EBX, String::hash_offset())); | 1314 __ movl(EAX, FieldAddress(EBX, String::hash_offset())); |
| 1315 __ cmpl(EAX, Immediate(0)); | 1315 __ cmpl(EAX, Immediate(0)); |
| 1316 __ j(NOT_EQUAL, &done, Assembler::kNearJump); | 1316 __ j(NOT_EQUAL, &done, Assembler::kNearJump); |
| 1317 | 1317 |
| 1318 __ Bind(&megamorphic_call); | 1318 __ Bind(&megamorphic_call); |
| 1319 __ Comment("Slow case: megamorphic call"); | 1319 __ Comment("Slow case: megamorphic call"); |
| 1320 } | 1320 } |
| 1321 __ LoadObject(ECX, cache); | 1321 __ LoadObject(ECX, cache); |
| 1322 if (FLAG_use_megamorphic_stub) { | 1322 if (FLAG_use_megamorphic_stub) { |
| 1323 __ Call(*StubCode::MegamorphicLookup_entry()); | 1323 __ call(Address(THR, Thread::megamorphic_lookup_entry_point_offset())); |
| 1324 } else { | 1324 } else { |
| 1325 StubCode::EmitMegamorphicLookup(assembler()); | 1325 StubCode::EmitMegamorphicLookup(assembler()); |
| 1326 } | 1326 } |
| 1327 __ call(EBX); | 1327 __ call(EBX); |
| 1328 | 1328 |
| 1329 __ Bind(&done); | 1329 __ Bind(&done); |
| 1330 AddCurrentDescriptor(RawPcDescriptors::kOther, | 1330 AddCurrentDescriptor(RawPcDescriptors::kOther, |
| 1331 Thread::kNoDeoptId, token_pos); | 1331 Thread::kNoDeoptId, token_pos); |
| 1332 RecordSafepoint(locs, slow_path_argument_count); | 1332 RecordSafepoint(locs, slow_path_argument_count); |
| 1333 const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id); | 1333 const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id); |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1870 __ movups(reg, Address(ESP, 0)); | 1870 __ movups(reg, Address(ESP, 0)); |
| 1871 __ addl(ESP, Immediate(kFpuRegisterSize)); | 1871 __ addl(ESP, Immediate(kFpuRegisterSize)); |
| 1872 } | 1872 } |
| 1873 | 1873 |
| 1874 | 1874 |
| 1875 #undef __ | 1875 #undef __ |
| 1876 | 1876 |
| 1877 } // namespace dart | 1877 } // namespace dart |
| 1878 | 1878 |
| 1879 #endif // defined TARGET_ARCH_IA32 | 1879 #endif // defined TARGET_ARCH_IA32 |
| OLD | NEW |