| 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 1305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1316 | 1316 |
| 1317 __ Bind(&call_target_function); | 1317 __ Bind(&call_target_function); |
| 1318 // Call the target found in the cache. For a class id match, this is a | 1318 // Call the target found in the cache. For a class id match, this is a |
| 1319 // proper target for the given name and arguments descriptor. If the | 1319 // proper target for the given name and arguments descriptor. If the |
| 1320 // illegal class id was found, the target is a cache miss handler that can | 1320 // illegal class id was found, the target is a cache miss handler that can |
| 1321 // be invoked as a normal Dart function. | 1321 // be invoked as a normal Dart function. |
| 1322 __ sll(T1, T3, 2); | 1322 __ sll(T1, T3, 2); |
| 1323 __ addu(T1, T2, T1); | 1323 __ addu(T1, T2, T1); |
| 1324 __ lw(T0, FieldAddress(T1, base + kWordSize)); | 1324 __ lw(T0, FieldAddress(T1, base + kWordSize)); |
| 1325 | 1325 |
| 1326 __ lw(T1, FieldAddress(T0, Function::code_offset())); | 1326 __ lw(T1, FieldAddress(T0, Function::instructions_offset())); |
| 1327 __ lw(T1, FieldAddress(T1, Code::instructions_offset())); | |
| 1328 __ LoadObject(S5, ic_data); | 1327 __ LoadObject(S5, ic_data); |
| 1329 __ LoadObject(S4, arguments_descriptor); | 1328 __ LoadObject(S4, arguments_descriptor); |
| 1330 __ AddImmediate(T1, Instructions::HeaderSize() - kHeapObjectTag); | 1329 __ AddImmediate(T1, Instructions::HeaderSize() - kHeapObjectTag); |
| 1331 __ jalr(T1); | 1330 __ jalr(T1); |
| 1332 AddCurrentDescriptor(PcDescriptors::kOther, Isolate::kNoDeoptId, token_pos); | 1331 AddCurrentDescriptor(PcDescriptors::kOther, Isolate::kNoDeoptId, token_pos); |
| 1333 RecordSafepoint(locs); | 1332 RecordSafepoint(locs); |
| 1334 AddDeoptIndexAtCall(Isolate::ToDeoptAfter(deopt_id), token_pos); | 1333 AddDeoptIndexAtCall(Isolate::ToDeoptAfter(deopt_id), token_pos); |
| 1335 __ Drop(argument_count); | 1334 __ Drop(argument_count); |
| 1336 } | 1335 } |
| 1337 | 1336 |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1820 __ AddImmediate(SP, kDoubleSize); | 1819 __ AddImmediate(SP, kDoubleSize); |
| 1821 } | 1820 } |
| 1822 | 1821 |
| 1823 | 1822 |
| 1824 #undef __ | 1823 #undef __ |
| 1825 | 1824 |
| 1826 | 1825 |
| 1827 } // namespace dart | 1826 } // namespace dart |
| 1828 | 1827 |
| 1829 #endif // defined TARGET_ARCH_MIPS | 1828 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |