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 1293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1304 __ CompareClassId(EBX, kOneByteStringCid, EAX); | 1304 __ CompareClassId(EBX, kOneByteStringCid, EAX); |
1305 __ j(NOT_EQUAL, &megamorphic_call, Assembler::kNearJump); | 1305 __ j(NOT_EQUAL, &megamorphic_call, Assembler::kNearJump); |
1306 __ movl(EAX, FieldAddress(EBX, String::hash_offset())); | 1306 __ movl(EAX, FieldAddress(EBX, String::hash_offset())); |
1307 __ cmpl(EAX, Immediate(0)); | 1307 __ cmpl(EAX, Immediate(0)); |
1308 __ j(NOT_EQUAL, &done, Assembler::kNearJump); | 1308 __ j(NOT_EQUAL, &done, Assembler::kNearJump); |
1309 | 1309 |
1310 __ Bind(&megamorphic_call); | 1310 __ Bind(&megamorphic_call); |
1311 __ Comment("Slow case: megamorphic call"); | 1311 __ Comment("Slow case: megamorphic call"); |
1312 } | 1312 } |
1313 __ LoadObject(ECX, cache); | 1313 __ LoadObject(ECX, cache); |
1314 __ call(Address(THR, Thread::megamorphic_lookup_checked_entry_offset())); | 1314 __ call(Address(THR, Thread::megamorphic_call_checked_entry_offset())); |
1315 __ call(EBX); | 1315 __ call(EBX); |
1316 | 1316 |
1317 __ Bind(&done); | 1317 __ Bind(&done); |
1318 AddCurrentDescriptor(RawPcDescriptors::kOther, | 1318 AddCurrentDescriptor(RawPcDescriptors::kOther, |
1319 Thread::kNoDeoptId, token_pos); | 1319 Thread::kNoDeoptId, token_pos); |
1320 RecordSafepoint(locs, slow_path_argument_count); | 1320 RecordSafepoint(locs, slow_path_argument_count); |
1321 const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id); | 1321 const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id); |
1322 // Precompilation not implemented on ia32 platform. | 1322 // Precompilation not implemented on ia32 platform. |
1323 ASSERT(!FLAG_precompiled_mode); | 1323 ASSERT(!FLAG_precompiled_mode); |
1324 if (is_optimizing()) { | 1324 if (is_optimizing()) { |
(...skipping 537 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1862 __ movups(reg, Address(ESP, 0)); | 1862 __ movups(reg, Address(ESP, 0)); |
1863 __ addl(ESP, Immediate(kFpuRegisterSize)); | 1863 __ addl(ESP, Immediate(kFpuRegisterSize)); |
1864 } | 1864 } |
1865 | 1865 |
1866 | 1866 |
1867 #undef __ | 1867 #undef __ |
1868 | 1868 |
1869 } // namespace dart | 1869 } // namespace dart |
1870 | 1870 |
1871 #endif // defined TARGET_ARCH_IA32 | 1871 #endif // defined TARGET_ARCH_IA32 |
OLD | NEW |