Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(621)

Side by Side Diff: runtime/vm/assembler_mips.cc

Issue 807593002: Merge RawICData::range_feedback_ field into RawICData::state_bits_. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « runtime/vm/assembler_ia32.cc ('k') | runtime/vm/assembler_x64.cc » ('j') | runtime/vm/object.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698