| OLD | NEW |
| 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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_ARM64. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM64. |
| 6 #if defined(TARGET_ARCH_ARM64) | 6 #if defined(TARGET_ARCH_ARM64) |
| 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 __ CompareRegisters(R0, ZR); | 1318 __ CompareRegisters(R0, ZR); |
| 1319 __ b(&done, NE); | 1319 __ b(&done, NE); |
| 1320 __ mov(R0, R5); // Restore receiver in R0, | 1320 __ mov(R0, R5); // Restore receiver in R0, |
| 1321 | 1321 |
| 1322 __ Bind(&megamorphic_call); | 1322 __ Bind(&megamorphic_call); |
| 1323 __ Comment("Slow case: megamorphic call"); | 1323 __ Comment("Slow case: megamorphic call"); |
| 1324 } | 1324 } |
| 1325 | 1325 |
| 1326 __ LoadObject(R5, cache); | 1326 __ LoadObject(R5, cache); |
| 1327 if (FLAG_use_megamorphic_stub) { | 1327 if (FLAG_use_megamorphic_stub) { |
| 1328 __ BranchLink(*StubCode::MegamorphicLookup_entry()); | 1328 __ ldr(LR, Address(THR, Thread::megamorphic_lookup_entry_point_offset())); |
| 1329 __ blr(LR); |
| 1329 } else { | 1330 } else { |
| 1330 StubCode::EmitMegamorphicLookup(assembler()); | 1331 StubCode::EmitMegamorphicLookup(assembler()); |
| 1331 } | 1332 } |
| 1332 __ blr(R1); | 1333 __ blr(R1); |
| 1333 | 1334 |
| 1334 __ Bind(&done); | 1335 __ Bind(&done); |
| 1335 RecordSafepoint(locs, slow_path_argument_count); | 1336 RecordSafepoint(locs, slow_path_argument_count); |
| 1336 const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id); | 1337 const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id); |
| 1337 if (FLAG_precompiled_mode) { | 1338 if (FLAG_precompiled_mode) { |
| 1338 // Megamorphic calls may occur in slow path stubs. | 1339 // Megamorphic calls may occur in slow path stubs. |
| (...skipping 597 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1936 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { | 1937 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { |
| 1937 __ PopDouble(reg); | 1938 __ PopDouble(reg); |
| 1938 } | 1939 } |
| 1939 | 1940 |
| 1940 | 1941 |
| 1941 #undef __ | 1942 #undef __ |
| 1942 | 1943 |
| 1943 } // namespace dart | 1944 } // namespace dart |
| 1944 | 1945 |
| 1945 #endif // defined TARGET_ARCH_ARM64 | 1946 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |