| 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 1329 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1340 void FlowGraphCompiler::EmitSwitchableInstanceCall( | 1340 void FlowGraphCompiler::EmitSwitchableInstanceCall( |
| 1341 const ICData& ic_data, | 1341 const ICData& ic_data, |
| 1342 intptr_t argument_count, | 1342 intptr_t argument_count, |
| 1343 intptr_t deopt_id, | 1343 intptr_t deopt_id, |
| 1344 TokenPosition token_pos, | 1344 TokenPosition token_pos, |
| 1345 LocationSummary* locs) { | 1345 LocationSummary* locs) { |
| 1346 __ Comment("SwitchableCall"); | 1346 __ Comment("SwitchableCall"); |
| 1347 __ LoadFromOffset(R0, SP, (argument_count - 1) * kWordSize); | 1347 __ LoadFromOffset(R0, SP, (argument_count - 1) * kWordSize); |
| 1348 if (ic_data.NumArgsTested() == 1) { | 1348 if (ic_data.NumArgsTested() == 1) { |
| 1349 __ LoadUniqueObject(R5, ic_data); | 1349 __ LoadUniqueObject(R5, ic_data); |
| 1350 __ BranchLinkPatchable(*StubCode::ICLookup_entry()); | 1350 __ BranchLinkPatchable(*StubCode::ICLookupThroughFunction_entry()); |
| 1351 } else { | 1351 } else { |
| 1352 const String& name = String::Handle(zone(), ic_data.target_name()); | 1352 const String& name = String::Handle(zone(), ic_data.target_name()); |
| 1353 const Array& arguments_descriptor = | 1353 const Array& arguments_descriptor = |
| 1354 Array::ZoneHandle(zone(), ic_data.arguments_descriptor()); | 1354 Array::ZoneHandle(zone(), ic_data.arguments_descriptor()); |
| 1355 ASSERT(!arguments_descriptor.IsNull() && | 1355 ASSERT(!arguments_descriptor.IsNull() && |
| 1356 (arguments_descriptor.Length() > 0)); | 1356 (arguments_descriptor.Length() > 0)); |
| 1357 const MegamorphicCache& cache = MegamorphicCache::ZoneHandle(zone(), | 1357 const MegamorphicCache& cache = MegamorphicCache::ZoneHandle(zone(), |
| 1358 MegamorphicCacheTable::Lookup(isolate(), name, arguments_descriptor)); | 1358 MegamorphicCacheTable::Lookup(isolate(), name, arguments_descriptor)); |
| 1359 | 1359 |
| 1360 __ LoadUniqueObject(R5, cache); | 1360 __ LoadUniqueObject(R5, cache); |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1914 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { | 1914 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { |
| 1915 __ PopDouble(reg); | 1915 __ PopDouble(reg); |
| 1916 } | 1916 } |
| 1917 | 1917 |
| 1918 | 1918 |
| 1919 #undef __ | 1919 #undef __ |
| 1920 | 1920 |
| 1921 } // namespace dart | 1921 } // namespace dart |
| 1922 | 1922 |
| 1923 #endif // defined TARGET_ARCH_ARM64 | 1923 #endif // defined TARGET_ARCH_ARM64 |
| OLD | NEW |