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

Side by Side Diff: runtime/vm/flow_graph_compiler_mips.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_arm64.cc ('k') | runtime/vm/flow_graph_compiler_x64.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_MIPS. 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_MIPS.
6 #if defined(TARGET_ARCH_MIPS) 6 #if defined(TARGET_ARCH_MIPS)
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 1340 matching lines...) Expand 10 before | Expand all | Expand 10 after
1351 intptr_t argument_count, 1351 intptr_t argument_count,
1352 intptr_t deopt_id, 1352 intptr_t deopt_id,
1353 TokenPosition token_pos, 1353 TokenPosition token_pos,
1354 LocationSummary* locs) { 1354 LocationSummary* locs) {
1355 ASSERT(ic_data.NumArgsTested() == 1); 1355 ASSERT(ic_data.NumArgsTested() == 1);
1356 const Code& initial_stub = Code::ZoneHandle( 1356 const Code& initial_stub = Code::ZoneHandle(
1357 StubCode::ICCallThroughFunction_entry()->code()); 1357 StubCode::ICCallThroughFunction_entry()->code());
1358 1358
1359 __ Comment("SwitchableCall"); 1359 __ Comment("SwitchableCall");
1360 __ lw(T0, Address(SP, (argument_count - 1) * kWordSize)); 1360 __ lw(T0, Address(SP, (argument_count - 1) * kWordSize));
1361 __ LoadUniqueObject(S5, ic_data);
1362 __ LoadUniqueObject(CODE_REG, initial_stub); 1361 __ LoadUniqueObject(CODE_REG, initial_stub);
1363 __ lw(T9, FieldAddress(CODE_REG, Code::checked_entry_point_offset())); 1362 __ lw(T9, FieldAddress(CODE_REG, Code::checked_entry_point_offset()));
1363 __ LoadUniqueObject(S5, ic_data);
1364 __ jalr(T9); 1364 __ jalr(T9);
1365 1365
1366 AddCurrentDescriptor(RawPcDescriptors::kOther, 1366 AddCurrentDescriptor(RawPcDescriptors::kOther,
1367 Thread::kNoDeoptId, token_pos); 1367 Thread::kNoDeoptId, token_pos);
1368 RecordSafepoint(locs); 1368 RecordSafepoint(locs);
1369 const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id); 1369 const intptr_t deopt_id_after = Thread::ToDeoptAfter(deopt_id);
1370 if (is_optimizing()) { 1370 if (is_optimizing()) {
1371 AddDeoptIndexAtCall(deopt_id_after); 1371 AddDeoptIndexAtCall(deopt_id_after);
1372 } else { 1372 } else {
1373 // Add deoptimization continuation point after the call and before the 1373 // Add deoptimization continuation point after the call and before the
(...skipping 557 matching lines...) Expand 10 before | Expand all | Expand 10 after
1931 __ AddImmediate(SP, kDoubleSize); 1931 __ AddImmediate(SP, kDoubleSize);
1932 } 1932 }
1933 1933
1934 1934
1935 #undef __ 1935 #undef __
1936 1936
1937 1937
1938 } // namespace dart 1938 } // namespace dart
1939 1939
1940 #endif // defined TARGET_ARCH_MIPS 1940 #endif // defined TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « runtime/vm/flow_graph_compiler_arm64.cc ('k') | runtime/vm/flow_graph_compiler_x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698