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

Side by Side Diff: runtime/vm/flow_graph_compiler_arm.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/code_patcher_x64.cc ('k') | runtime/vm/flow_graph_compiler_arm64.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) 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 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after
1347 intptr_t deopt_id, 1347 intptr_t deopt_id,
1348 TokenPosition token_pos, 1348 TokenPosition token_pos,
1349 LocationSummary* locs) { 1349 LocationSummary* locs) {
1350 ASSERT(ic_data.NumArgsTested() == 1); 1350 ASSERT(ic_data.NumArgsTested() == 1);
1351 const Code& initial_stub = Code::ZoneHandle( 1351 const Code& initial_stub = Code::ZoneHandle(
1352 StubCode::ICCallThroughFunction_entry()->code()); 1352 StubCode::ICCallThroughFunction_entry()->code());
1353 1353
1354 __ Comment("SwitchableCall"); 1354 __ Comment("SwitchableCall");
1355 1355
1356 __ LoadFromOffset(kWord, R0, SP, (argument_count - 1) * kWordSize); 1356 __ LoadFromOffset(kWord, R0, SP, (argument_count - 1) * kWordSize);
1357 __ LoadUniqueObject(R9, ic_data);
1358 __ LoadUniqueObject(CODE_REG, initial_stub); 1357 __ LoadUniqueObject(CODE_REG, initial_stub);
1359 __ ldr(LR, FieldAddress(CODE_REG, Code::checked_entry_point_offset())); 1358 __ ldr(LR, FieldAddress(CODE_REG, Code::checked_entry_point_offset()));
1359 __ LoadUniqueObject(R9, ic_data);
1360 __ blx(LR); 1360 __ blx(LR);
1361 1361
1362 AddCurrentDescriptor(RawPcDescriptors::kOther, Thread::kNoDeoptId, token_pos); 1362 AddCurrentDescriptor(RawPcDescriptors::kOther, Thread::kNoDeoptId, token_pos);
1363 RecordSafepoint(locs); 1363 RecordSafepoint(locs);
1364 const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id); 1364 const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id);
1365 if (is_optimizing()) { 1365 if (is_optimizing()) {
1366 AddDeoptIndexAtCall(deopt_id_after); 1366 AddDeoptIndexAtCall(deopt_id_after);
1367 } else { 1367 } else {
1368 // Add deoptimization continuation point after the call and before the 1368 // Add deoptimization continuation point after the call and before the
1369 // arguments are removed. 1369 // arguments are removed.
(...skipping 600 matching lines...) Expand 10 before | Expand all | Expand 10 after
1970 DRegister dreg = EvenDRegisterOf(reg); 1970 DRegister dreg = EvenDRegisterOf(reg);
1971 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex)); 1971 __ vldrd(dreg, Address(SP, kDoubleSize, Address::PostIndex));
1972 } 1972 }
1973 1973
1974 1974
1975 #undef __ 1975 #undef __
1976 1976
1977 } // namespace dart 1977 } // namespace dart
1978 1978
1979 #endif // defined TARGET_ARCH_ARM 1979 #endif // defined TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « runtime/vm/code_patcher_x64.cc ('k') | runtime/vm/flow_graph_compiler_arm64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698