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

Unified Diff: src/arm64/macro-assembler-arm64-inl.h

Issue 376553006: Revert "ARM64: Use UntagSmi helpers and clean up assertions." (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | « src/arm64/lithium-codegen-arm64.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/arm64/macro-assembler-arm64-inl.h
diff --git a/src/arm64/macro-assembler-arm64-inl.h b/src/arm64/macro-assembler-arm64-inl.h
index b2aaea2c788c6113bac118e820087c13626d088f..3ce4855b8a1b004065acc93553fa33f42ef1291b 100644
--- a/src/arm64/macro-assembler-arm64-inl.h
+++ b/src/arm64/macro-assembler-arm64-inl.h
@@ -1308,7 +1308,6 @@ void MacroAssembler::InitializeRootRegister() {
void MacroAssembler::SmiTag(Register dst, Register src) {
- STATIC_ASSERT(kSmiValueSize + kSmiShift == kXRegSizeInBits);
ASSERT(dst.Is64Bits() && src.Is64Bits());
Lsl(dst, src, kSmiShift);
}
@@ -1318,7 +1317,6 @@ void MacroAssembler::SmiTag(Register smi) { SmiTag(smi, smi); }
void MacroAssembler::SmiUntag(Register dst, Register src) {
- STATIC_ASSERT(kSmiValueSize + kSmiShift == kXRegSizeInBits);
ASSERT(dst.Is64Bits() && src.Is64Bits());
if (FLAG_enable_slow_asserts) {
AssertSmi(src);
@@ -1353,17 +1351,13 @@ void MacroAssembler::SmiUntagToFloat(FPRegister dst,
void MacroAssembler::SmiTagAndPush(Register src) {
- STATIC_ASSERT((kSmiShift == kWRegSizeInBits) &&
- (kSmiValueSize == kWRegSizeInBits) &&
- (kSmiTag == 0));
+ STATIC_ASSERT((kSmiShift == 32) && (kSmiTag == 0));
Push(src.W(), wzr);
}
void MacroAssembler::SmiTagAndPush(Register src1, Register src2) {
- STATIC_ASSERT((kSmiShift == kWRegSizeInBits) &&
- (kSmiValueSize == kWRegSizeInBits) &&
- (kSmiTag == 0));
+ STATIC_ASSERT((kSmiShift == 32) && (kSmiTag == 0));
Push(src1.W(), wzr, src2.W(), wzr);
}
« no previous file with comments | « src/arm64/lithium-codegen-arm64.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698