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 1228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1239 intptr_t deopt_id, | 1239 intptr_t deopt_id, |
1240 intptr_t token_pos, | 1240 intptr_t token_pos, |
1241 LocationSummary* locs) { | 1241 LocationSummary* locs) { |
1242 MegamorphicCacheTable* table = Isolate::Current()->megamorphic_cache_table(); | 1242 MegamorphicCacheTable* table = Isolate::Current()->megamorphic_cache_table(); |
1243 const String& name = String::Handle(ic_data.target_name()); | 1243 const String& name = String::Handle(ic_data.target_name()); |
1244 const Array& arguments_descriptor = | 1244 const Array& arguments_descriptor = |
1245 Array::ZoneHandle(ic_data.arguments_descriptor()); | 1245 Array::ZoneHandle(ic_data.arguments_descriptor()); |
1246 ASSERT(!arguments_descriptor.IsNull() && (arguments_descriptor.Length() > 0)); | 1246 ASSERT(!arguments_descriptor.IsNull() && (arguments_descriptor.Length() > 0)); |
1247 const MegamorphicCache& cache = | 1247 const MegamorphicCache& cache = |
1248 MegamorphicCache::ZoneHandle(table->Lookup(name, arguments_descriptor)); | 1248 MegamorphicCache::ZoneHandle(table->Lookup(name, arguments_descriptor)); |
1249 __ LoadFromOffset(R0, SP, (argument_count - 1) * kWordSize, PP); | 1249 __ LoadFromOffset(R1, SP, (argument_count - 1) * kWordSize, PP); |
1250 __ LoadTaggedClassIdMayBeSmi(R0, R0); | 1250 __ LoadTaggedClassIdMayBeSmi(R0, R1); |
1251 | 1251 |
1252 // R0: class ID of the receiver (smi). | 1252 // R0: class ID of the receiver (smi). |
1253 __ LoadObject(R1, cache, PP); | 1253 __ LoadObject(R1, cache, PP); |
1254 __ LoadFieldFromOffset(R2, R1, MegamorphicCache::buckets_offset(), PP); | 1254 __ LoadFieldFromOffset(R2, R1, MegamorphicCache::buckets_offset(), PP); |
1255 __ LoadFieldFromOffset(R1, R1, MegamorphicCache::mask_offset(), PP); | 1255 __ LoadFieldFromOffset(R1, R1, MegamorphicCache::mask_offset(), PP); |
1256 // R2: cache buckets array. | 1256 // R2: cache buckets array. |
1257 // R1: mask. | 1257 // R1: mask. |
1258 __ mov(R3, R0); | 1258 __ mov(R3, R0); |
1259 | 1259 |
1260 Label loop, update, call_target_function; | 1260 Label loop, update, call_target_function; |
(...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1735 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { | 1735 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { |
1736 UNIMPLEMENTED(); | 1736 UNIMPLEMENTED(); |
1737 } | 1737 } |
1738 | 1738 |
1739 | 1739 |
1740 #undef __ | 1740 #undef __ |
1741 | 1741 |
1742 } // namespace dart | 1742 } // namespace dart |
1743 | 1743 |
1744 #endif // defined TARGET_ARCH_ARM64 | 1744 #endif // defined TARGET_ARCH_ARM64 |
OLD | NEW |