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

Side by Side Diff: runtime/vm/flow_graph_compiler_x64.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_mips.cc ('k') | runtime/vm/instructions_arm.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_X64. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_X64.
6 #if defined(TARGET_ARCH_X64) 6 #if defined(TARGET_ARCH_X64)
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 1342 matching lines...) Expand 10 before | Expand all | Expand 10 after
1353 intptr_t argument_count, 1353 intptr_t argument_count,
1354 intptr_t deopt_id, 1354 intptr_t deopt_id,
1355 TokenPosition token_pos, 1355 TokenPosition token_pos,
1356 LocationSummary* locs) { 1356 LocationSummary* locs) {
1357 ASSERT(ic_data.NumArgsTested() == 1); 1357 ASSERT(ic_data.NumArgsTested() == 1);
1358 const Code& initial_stub = Code::ZoneHandle( 1358 const Code& initial_stub = Code::ZoneHandle(
1359 StubCode::ICCallThroughFunction_entry()->code()); 1359 StubCode::ICCallThroughFunction_entry()->code());
1360 1360
1361 __ Comment("SwitchableCall"); 1361 __ Comment("SwitchableCall");
1362 __ movq(RDI, Address(RSP, (argument_count - 1) * kWordSize)); 1362 __ movq(RDI, Address(RSP, (argument_count - 1) * kWordSize));
1363 __ LoadUniqueObject(RBX, ic_data);
1364 __ LoadUniqueObject(CODE_REG, initial_stub); 1363 __ LoadUniqueObject(CODE_REG, initial_stub);
1365 __ movq(RCX, FieldAddress(CODE_REG, Code::checked_entry_point_offset())); 1364 __ movq(RCX, FieldAddress(CODE_REG, Code::checked_entry_point_offset()));
1365 __ LoadUniqueObject(RBX, ic_data);
1366 __ call(RCX); 1366 __ call(RCX);
1367 1367
1368 AddCurrentDescriptor(RawPcDescriptors::kOther, 1368 AddCurrentDescriptor(RawPcDescriptors::kOther,
1369 Thread::kNoDeoptId, token_pos); 1369 Thread::kNoDeoptId, token_pos);
1370 RecordSafepoint(locs); 1370 RecordSafepoint(locs);
1371 const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id); 1371 const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id);
1372 if (is_optimizing()) { 1372 if (is_optimizing()) {
1373 AddDeoptIndexAtCall(deopt_id_after); 1373 AddDeoptIndexAtCall(deopt_id_after);
1374 } else { 1374 } else {
1375 // Add deoptimization continuation point after the call and before the 1375 // Add deoptimization continuation point after the call and before the
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
1840 __ movups(reg, Address(RSP, 0)); 1840 __ movups(reg, Address(RSP, 0));
1841 __ AddImmediate(RSP, Immediate(kFpuRegisterSize)); 1841 __ AddImmediate(RSP, Immediate(kFpuRegisterSize));
1842 } 1842 }
1843 1843
1844 1844
1845 #undef __ 1845 #undef __
1846 1846
1847 } // namespace dart 1847 } // namespace dart
1848 1848
1849 #endif // defined TARGET_ARCH_X64 1849 #endif // defined TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_mips.cc ('k') | runtime/vm/instructions_arm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698