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

Unified Diff: runtime/vm/assembler_mips.cc

Issue 2132933003: VM: Remove collection of unused range feedback. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: remove comment Created 4 years, 5 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/vm/assembler_mips.h ('k') | runtime/vm/assembler_mips_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_mips.cc
diff --git a/runtime/vm/assembler_mips.cc b/runtime/vm/assembler_mips.cc
index ffd927d1c997ba0bfa741cc240dde702de05009e..f2416cb52a0f34076fb958a938ee34484a79a599 100644
--- a/runtime/vm/assembler_mips.cc
+++ b/runtime/vm/assembler_mips.cc
@@ -826,49 +826,6 @@ void Assembler::LoadTaggedClassIdMayBeSmi(Register result, Register object) {
}
-void Assembler::ComputeRange(Register result,
- Register value,
- Label* miss) {
- const Register hi = TMP;
- const Register lo = CMPRES2;
-
- Label done;
- srl(result, value, kBitsPerWord - 1);
- andi(CMPRES1, value, Immediate(kSmiTagMask));
- beq(CMPRES1, ZR, &done);
-
- LoadClassId(CMPRES1, value);
- BranchNotEqual(CMPRES1, Immediate(kMintCid), miss);
- LoadFieldFromOffset(hi, value, Mint::value_offset() + kWordSize);
- LoadFieldFromOffset(lo, value, Mint::value_offset());
- sra(lo, lo, kBitsPerWord - 1);
-
- LoadImmediate(result, ICData::kInt32RangeBit);
-
- beq(hi, lo, &done);
- delay_slot()->subu(result, result, hi);
-
- beq(hi, ZR, &done);
- delay_slot()->addiu(result, ZR, Immediate(ICData::kUint32RangeBit));
- LoadImmediate(result, ICData::kInt64RangeBit);
- Bind(&done);
-}
-
-
-void Assembler::UpdateRangeFeedback(Register value,
- intptr_t index,
- Register ic_data,
- Register scratch,
- Label* miss) {
- ASSERT(ICData::IsValidRangeFeedbackIndex(index));
- ComputeRange(scratch, value, miss);
- LoadFieldFromOffset(TMP, ic_data, ICData::state_bits_offset());
- sll(scratch, scratch, ICData::RangeFeedbackShift(index));
- or_(TMP, TMP, scratch);
- StoreFieldToOffset(TMP, ic_data, ICData::state_bits_offset());
-}
-
-
void Assembler::EnterFrame() {
ASSERT(!in_delay_slot_);
addiu(SP, SP, Immediate(-2 * kWordSize));
« no previous file with comments | « runtime/vm/assembler_mips.h ('k') | runtime/vm/assembler_mips_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698