| 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" // NOLINT | 5 #include "vm/globals.h" // NOLINT |
| 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 720 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 731 } | 731 } |
| 732 | 732 |
| 733 | 733 |
| 734 void Assembler::UpdateRangeFeedback(Register value, | 734 void Assembler::UpdateRangeFeedback(Register value, |
| 735 intptr_t index, | 735 intptr_t index, |
| 736 Register ic_data, | 736 Register ic_data, |
| 737 Register scratch, | 737 Register scratch, |
| 738 Label* miss) { | 738 Label* miss) { |
| 739 ASSERT(ICData::IsValidRangeFeedbackIndex(index)); | 739 ASSERT(ICData::IsValidRangeFeedbackIndex(index)); |
| 740 ComputeRange(scratch, value, miss); | 740 ComputeRange(scratch, value, miss); |
| 741 LoadFieldFromOffset(TMP, ic_data, ICData::range_feedback_offset()); | 741 LoadFieldFromOffset(TMP, ic_data, ICData::state_bits_offset()); |
| 742 if (index != 0) { | 742 sll(scratch, scratch, ICData::RangeFeedbackShift(index)); |
| 743 sll(scratch, scratch, ICData::kBitsPerRangeFeedback * index); | |
| 744 } | |
| 745 or_(TMP, TMP, scratch); | 743 or_(TMP, TMP, scratch); |
| 746 StoreFieldToOffset(TMP, ic_data, ICData::range_feedback_offset()); | 744 StoreFieldToOffset(TMP, ic_data, ICData::state_bits_offset()); |
| 747 } | 745 } |
| 748 | 746 |
| 749 | 747 |
| 750 void Assembler::EnterFrame() { | 748 void Assembler::EnterFrame() { |
| 751 ASSERT(!in_delay_slot_); | 749 ASSERT(!in_delay_slot_); |
| 752 addiu(SP, SP, Immediate(-2 * kWordSize)); | 750 addiu(SP, SP, Immediate(-2 * kWordSize)); |
| 753 sw(RA, Address(SP, 1 * kWordSize)); | 751 sw(RA, Address(SP, 1 * kWordSize)); |
| 754 sw(FP, Address(SP, 0 * kWordSize)); | 752 sw(FP, Address(SP, 0 * kWordSize)); |
| 755 mov(FP, SP); | 753 mov(FP, SP); |
| 756 } | 754 } |
| (...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1273 Emit(reinterpret_cast<int32_t>(message)); | 1271 Emit(reinterpret_cast<int32_t>(message)); |
| 1274 Bind(&msg); | 1272 Bind(&msg); |
| 1275 break_(Instr::kSimulatorMessageCode); | 1273 break_(Instr::kSimulatorMessageCode); |
| 1276 } | 1274 } |
| 1277 #endif | 1275 #endif |
| 1278 } | 1276 } |
| 1279 | 1277 |
| 1280 } // namespace dart | 1278 } // namespace dart |
| 1281 | 1279 |
| 1282 #endif // defined TARGET_ARCH_MIPS | 1280 #endif // defined TARGET_ARCH_MIPS |
| OLD | NEW |