| 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 1424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1435 __ sw(reg, Address(SP, 1 * kWordSize)); | 1435 __ sw(reg, Address(SP, 1 * kWordSize)); |
| 1436 __ LoadObject(TMP, obj); | 1436 __ LoadObject(TMP, obj); |
| 1437 __ sw(TMP, Address(SP, 0 * kWordSize)); | 1437 __ sw(TMP, Address(SP, 0 * kWordSize)); |
| 1438 if (is_optimizing()) { | 1438 if (is_optimizing()) { |
| 1439 __ BranchLinkPatchable( | 1439 __ BranchLinkPatchable( |
| 1440 &StubCode::OptimizedIdenticalWithNumberCheckLabel()); | 1440 &StubCode::OptimizedIdenticalWithNumberCheckLabel()); |
| 1441 } else { | 1441 } else { |
| 1442 __ BranchLinkPatchable( | 1442 __ BranchLinkPatchable( |
| 1443 &StubCode::UnoptimizedIdenticalWithNumberCheckLabel()); | 1443 &StubCode::UnoptimizedIdenticalWithNumberCheckLabel()); |
| 1444 } | 1444 } |
| 1445 if (token_pos != Scanner::kDummyTokenIndex) { | 1445 if (token_pos != Scanner::kNoSourcePos) { |
| 1446 AddCurrentDescriptor(PcDescriptors::kRuntimeCall, | 1446 AddCurrentDescriptor(PcDescriptors::kRuntimeCall, |
| 1447 Isolate::kNoDeoptId, | 1447 Isolate::kNoDeoptId, |
| 1448 token_pos); | 1448 token_pos); |
| 1449 } | 1449 } |
| 1450 __ TraceSimMsg("EqualityRegConstCompare return"); | 1450 __ TraceSimMsg("EqualityRegConstCompare return"); |
| 1451 __ lw(reg, Address(SP, 1 * kWordSize)); // Restore 'reg'. | 1451 __ lw(reg, Address(SP, 1 * kWordSize)); // Restore 'reg'. |
| 1452 __ addiu(SP, SP, Immediate(2 * kWordSize)); // Discard constant. | 1452 __ addiu(SP, SP, Immediate(2 * kWordSize)); // Discard constant. |
| 1453 return; | 1453 return; |
| 1454 } | 1454 } |
| 1455 __ CompareObject(CMPRES1, CMPRES2, reg, obj); | 1455 __ CompareObject(CMPRES1, CMPRES2, reg, obj); |
| (...skipping 10 matching lines...) Expand all Loading... |
| 1466 __ addiu(SP, SP, Immediate(-2 * kWordSize)); | 1466 __ addiu(SP, SP, Immediate(-2 * kWordSize)); |
| 1467 __ sw(left, Address(SP, 1 * kWordSize)); | 1467 __ sw(left, Address(SP, 1 * kWordSize)); |
| 1468 __ sw(right, Address(SP, 0 * kWordSize)); | 1468 __ sw(right, Address(SP, 0 * kWordSize)); |
| 1469 if (is_optimizing()) { | 1469 if (is_optimizing()) { |
| 1470 __ BranchLinkPatchable( | 1470 __ BranchLinkPatchable( |
| 1471 &StubCode::OptimizedIdenticalWithNumberCheckLabel()); | 1471 &StubCode::OptimizedIdenticalWithNumberCheckLabel()); |
| 1472 } else { | 1472 } else { |
| 1473 __ BranchLinkPatchable( | 1473 __ BranchLinkPatchable( |
| 1474 &StubCode::UnoptimizedIdenticalWithNumberCheckLabel()); | 1474 &StubCode::UnoptimizedIdenticalWithNumberCheckLabel()); |
| 1475 } | 1475 } |
| 1476 if (token_pos != Scanner::kDummyTokenIndex) { | 1476 if (token_pos != Scanner::kNoSourcePos) { |
| 1477 AddCurrentDescriptor(PcDescriptors::kRuntimeCall, | 1477 AddCurrentDescriptor(PcDescriptors::kRuntimeCall, |
| 1478 Isolate::kNoDeoptId, | 1478 Isolate::kNoDeoptId, |
| 1479 token_pos); | 1479 token_pos); |
| 1480 } | 1480 } |
| 1481 __ TraceSimMsg("EqualityRegRegCompare return"); | 1481 __ TraceSimMsg("EqualityRegRegCompare return"); |
| 1482 // Stub returns result in CMPRES1. If it is 0, then left and right are | 1482 // Stub returns result in CMPRES1. If it is 0, then left and right are |
| 1483 // equal. | 1483 // equal. |
| 1484 __ lw(right, Address(SP, 0 * kWordSize)); | 1484 __ lw(right, Address(SP, 0 * kWordSize)); |
| 1485 __ lw(left, Address(SP, 1 * kWordSize)); | 1485 __ lw(left, Address(SP, 1 * kWordSize)); |
| 1486 __ addiu(SP, SP, Immediate(2 * kWordSize)); | 1486 __ addiu(SP, SP, Immediate(2 * kWordSize)); |
| (...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1873 __ AddImmediate(SP, kDoubleSize); | 1873 __ AddImmediate(SP, kDoubleSize); |
| 1874 } | 1874 } |
| 1875 | 1875 |
| 1876 | 1876 |
| 1877 #undef __ | 1877 #undef __ |
| 1878 | 1878 |
| 1879 | 1879 |
| 1880 } // namespace dart | 1880 } // namespace dart |
| 1881 | 1881 |
| 1882 #endif // defined TARGET_ARCH_MIPS | 1882 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |