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

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

Issue 2404973002: Switchable call scheduling. (Closed)
Patch Set: . Created 4 years, 2 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 1316 matching lines...) Expand 10 before | Expand all | Expand 10 after
1327 intptr_t argument_count, 1327 intptr_t argument_count,
1328 intptr_t deopt_id, 1328 intptr_t deopt_id,
1329 TokenPosition token_pos, 1329 TokenPosition token_pos,
1330 LocationSummary* locs) { 1330 LocationSummary* locs) {
1331 ASSERT(ic_data.NumArgsTested() == 1); 1331 ASSERT(ic_data.NumArgsTested() == 1);
1332 const Code& initial_stub = Code::ZoneHandle( 1332 const Code& initial_stub = Code::ZoneHandle(
1333 StubCode::ICCallThroughFunction_entry()->code()); 1333 StubCode::ICCallThroughFunction_entry()->code());
1334 __ Comment("SwitchableCall"); 1334 __ Comment("SwitchableCall");
1335 1335
1336 __ LoadFromOffset(R0, SP, (argument_count - 1) * kWordSize); 1336 __ LoadFromOffset(R0, SP, (argument_count - 1) * kWordSize);
1337 __ LoadUniqueObject(R5, ic_data);
1338 __ LoadUniqueObject(CODE_REG, initial_stub); 1337 __ LoadUniqueObject(CODE_REG, initial_stub);
1339 __ ldr(TMP, FieldAddress(CODE_REG, Code::checked_entry_point_offset())); 1338 __ ldr(TMP, FieldAddress(CODE_REG, Code::checked_entry_point_offset()));
1339 __ LoadUniqueObject(R5, ic_data);
1340 __ blr(TMP); 1340 __ blr(TMP);
1341 1341
1342 AddCurrentDescriptor(RawPcDescriptors::kOther, 1342 AddCurrentDescriptor(RawPcDescriptors::kOther,
1343 Thread::kNoDeoptId, token_pos); 1343 Thread::kNoDeoptId, token_pos);
1344 RecordSafepoint(locs); 1344 RecordSafepoint(locs);
1345 const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id); 1345 const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id);
1346 if (is_optimizing()) { 1346 if (is_optimizing()) {
1347 AddDeoptIndexAtCall(deopt_id_after); 1347 AddDeoptIndexAtCall(deopt_id_after);
1348 } else { 1348 } else {
1349 // Add deoptimization continuation point after the call and before the 1349 // Add deoptimization continuation point after the call and before the
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
1907 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) { 1907 void ParallelMoveResolver::RestoreFpuScratch(FpuRegister reg) {
1908 __ PopDouble(reg); 1908 __ PopDouble(reg);
1909 } 1909 }
1910 1910
1911 1911
1912 #undef __ 1912 #undef __
1913 1913
1914 } // namespace dart 1914 } // namespace dart
1915 1915
1916 #endif // defined TARGET_ARCH_ARM64 1916 #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