Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1871)

Side by Side Diff: runtime/vm/flow_graph_compiler_arm64.cc

Issue 1799793002: Precompilation: Have instances calls load the entry point and Code object from the ic data array in… (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/vm/flow_graph_compiler_arm.cc ('k') | runtime/vm/flow_graph_compiler_mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_arm.cc ('k') | runtime/vm/flow_graph_compiler_mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698