| 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 1304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1315 const Array& arguments_descriptor = | 1315 const Array& arguments_descriptor = |
| 1316 Array::ZoneHandle(zone(), ic_data.arguments_descriptor()); | 1316 Array::ZoneHandle(zone(), ic_data.arguments_descriptor()); |
| 1317 ASSERT(!arguments_descriptor.IsNull() && (arguments_descriptor.Length() > 0)); | 1317 ASSERT(!arguments_descriptor.IsNull() && (arguments_descriptor.Length() > 0)); |
| 1318 const MegamorphicCache& cache = MegamorphicCache::ZoneHandle(zone(), | 1318 const MegamorphicCache& cache = MegamorphicCache::ZoneHandle(zone(), |
| 1319 MegamorphicCacheTable::Lookup(isolate(), name, arguments_descriptor)); | 1319 MegamorphicCacheTable::Lookup(isolate(), name, arguments_descriptor)); |
| 1320 | 1320 |
| 1321 __ Comment("MegamorphicCall"); | 1321 __ Comment("MegamorphicCall"); |
| 1322 // Load receiver into R0. | 1322 // Load receiver into R0. |
| 1323 __ LoadFromOffset(kWord, R0, SP, (argument_count - 1) * kWordSize); | 1323 __ LoadFromOffset(kWord, R0, SP, (argument_count - 1) * kWordSize); |
| 1324 Label done; | 1324 Label done; |
| 1325 if (name.raw() == Symbols::hashCode().raw()) { | 1325 if (ShouldInlineSmiStringHashCode(ic_data)) { |
| 1326 Label megamorphic_call; | 1326 Label megamorphic_call; |
| 1327 __ Comment("Inlined get:hashCode for Smi and OneByteString"); | 1327 __ Comment("Inlined get:hashCode for Smi and OneByteString"); |
| 1328 __ tst(R0, Operand(kSmiTagMask)); | 1328 __ tst(R0, Operand(kSmiTagMask)); |
| 1329 __ b(&done, EQ); // Is Smi (result is receiver). | 1329 __ b(&done, EQ); // Is Smi (result is receiver). |
| 1330 | 1330 |
| 1331 // Use R9 (cache for megamorphic call) as scratch. | 1331 // Use R9 (cache for megamorphic call) as scratch. |
| 1332 __ CompareClassId(R0, kOneByteStringCid, R9); | 1332 __ CompareClassId(R0, kOneByteStringCid, R9); |
| 1333 __ b(&megamorphic_call, NE); | 1333 __ b(&megamorphic_call, NE); |
| 1334 | 1334 |
| 1335 __ mov(R9, Operand(R0)); // Preserve receiver in R9. | 1335 __ mov(R9, Operand(R0)); // Preserve receiver in R9. |
| (...skipping 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2000 DRegister dreg = EvenDRegisterOf(reg); | 2000 DRegister dreg = EvenDRegisterOf(reg); |
| 2001 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); | 2001 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); |
| 2002 } | 2002 } |
| 2003 | 2003 |
| 2004 | 2004 |
| 2005 #undef __ | 2005 #undef __ |
| 2006 | 2006 |
| 2007 } // namespace dart | 2007 } // namespace dart |
| 2008 | 2008 |
| 2009 #endif // defined TARGET_ARCH_ARM | 2009 #endif // defined TARGET_ARCH_ARM |
| OLD | NEW |