OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |