| 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" | 5 #include "vm/globals.h" |
| 6 #if defined(TARGET_ARCH_MIPS) | 6 #if defined(TARGET_ARCH_MIPS) |
| 7 | 7 |
| 8 #include "vm/assembler.h" | 8 #include "vm/assembler.h" |
| 9 #include "vm/longjump.h" | 9 #include "vm/longjump.h" |
| 10 #include "vm/runtime_entry.h" | 10 #include "vm/runtime_entry.h" |
| (...skipping 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 513 slt(rd2, TMP, rn); | 513 slt(rd2, TMP, rn); |
| 514 } | 514 } |
| 515 | 515 |
| 516 | 516 |
| 517 // Preserves object and value registers. | 517 // Preserves object and value registers. |
| 518 void Assembler::StoreIntoObjectFilterNoSmi(Register object, | 518 void Assembler::StoreIntoObjectFilterNoSmi(Register object, |
| 519 Register value, | 519 Register value, |
| 520 Label* no_update) { | 520 Label* no_update) { |
| 521 ASSERT(!in_delay_slot_); | 521 ASSERT(!in_delay_slot_); |
| 522 COMPILE_ASSERT((kNewObjectAlignmentOffset == kWordSize) && | 522 COMPILE_ASSERT((kNewObjectAlignmentOffset == kWordSize) && |
| 523 (kOldObjectAlignmentOffset == 0), young_alignment); | 523 (kOldObjectAlignmentOffset == 0)); |
| 524 | 524 |
| 525 // Write-barrier triggers if the value is in the new space (has bit set) and | 525 // Write-barrier triggers if the value is in the new space (has bit set) and |
| 526 // the object is in the old space (has bit cleared). | 526 // the object is in the old space (has bit cleared). |
| 527 // To check that, we compute value & ~object and skip the write barrier | 527 // To check that, we compute value & ~object and skip the write barrier |
| 528 // if the bit is not set. We can't destroy the object. | 528 // if the bit is not set. We can't destroy the object. |
| 529 nor(TMP, ZR, object); | 529 nor(TMP, ZR, object); |
| 530 and_(TMP, value, TMP); | 530 and_(TMP, value, TMP); |
| 531 andi(CMPRES1, TMP, Immediate(kNewObjectAlignmentOffset)); | 531 andi(CMPRES1, TMP, Immediate(kNewObjectAlignmentOffset)); |
| 532 beq(CMPRES1, ZR, no_update); | 532 beq(CMPRES1, ZR, no_update); |
| 533 } | 533 } |
| (...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1090 Emit(reinterpret_cast<int32_t>(message)); | 1090 Emit(reinterpret_cast<int32_t>(message)); |
| 1091 Bind(&msg); | 1091 Bind(&msg); |
| 1092 break_(Instr::kMsgMessageCode); | 1092 break_(Instr::kMsgMessageCode); |
| 1093 } | 1093 } |
| 1094 #endif | 1094 #endif |
| 1095 } | 1095 } |
| 1096 | 1096 |
| 1097 } // namespace dart | 1097 } // namespace dart |
| 1098 | 1098 |
| 1099 #endif // defined TARGET_ARCH_MIPS | 1099 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |