| 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_ARM. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_ARM. |
| 6 #if defined(TARGET_ARCH_ARM) | 6 #if defined(TARGET_ARCH_ARM) |
| 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 1325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1336 __ cmp(R0, Operand(0)); | 1336 __ cmp(R0, Operand(0)); |
| 1337 | 1337 |
| 1338 __ b(&done, NE); // Return if already computed. | 1338 __ b(&done, NE); // Return if already computed. |
| 1339 __ mov(R0, Operand(R9)); // Restore receiver in R0. | 1339 __ mov(R0, Operand(R9)); // Restore receiver in R0. |
| 1340 | 1340 |
| 1341 __ Bind(&megamorphic_call); | 1341 __ Bind(&megamorphic_call); |
| 1342 __ Comment("Slow case: megamorphic call"); | 1342 __ Comment("Slow case: megamorphic call"); |
| 1343 } | 1343 } |
| 1344 __ LoadObject(R9, cache); | 1344 __ LoadObject(R9, cache); |
| 1345 if (FLAG_use_megamorphic_stub) { | 1345 if (FLAG_use_megamorphic_stub) { |
| 1346 __ BranchLink(*StubCode::MegamorphicLookup_entry()); | 1346 __ ldr(LR, Address(THR, Thread::megamorphic_lookup_entry_point_offset())); |
| 1347 __ blx(LR); |
| 1347 } else { | 1348 } else { |
| 1348 StubCode::EmitMegamorphicLookup(assembler()); | 1349 StubCode::EmitMegamorphicLookup(assembler()); |
| 1349 } | 1350 } |
| 1350 __ blx(R1); | 1351 __ blx(R1); |
| 1351 | 1352 |
| 1352 __ Bind(&done); | 1353 __ Bind(&done); |
| 1353 RecordSafepoint(locs, slow_path_argument_count); | 1354 RecordSafepoint(locs, slow_path_argument_count); |
| 1354 const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id); | 1355 const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id); |
| 1355 if (FLAG_precompiled_mode) { | 1356 if (FLAG_precompiled_mode) { |
| 1356 // Megamorphic calls may occur in slow path stubs. | 1357 // Megamorphic calls may occur in slow path stubs. |
| (...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1998 DRegister dreg = EvenDRegisterOf(reg); | 1999 DRegister dreg = EvenDRegisterOf(reg); |
| 1999 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); | 2000 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); |
| 2000 } | 2001 } |
| 2001 | 2002 |
| 2002 | 2003 |
| 2003 #undef __ | 2004 #undef __ |
| 2004 | 2005 |
| 2005 } // namespace dart | 2006 } // namespace dart |
| 2006 | 2007 |
| 2007 #endif // defined TARGET_ARCH_ARM | 2008 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |