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

Unified Diff: runtime/vm/assembler_x64.cc

Issue 2889723005: Revert "More compact string representation on 64 bit." (Closed)
Patch Set: Created 3 years, 7 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_arm64.cc ('k') | runtime/vm/clustered_snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/assembler_x64.cc
diff --git a/runtime/vm/assembler_x64.cc b/runtime/vm/assembler_x64.cc
index 24ffd1c5cab5e13a60eeda61ea605e760715a8bb..da4021a02e37d1b3bb1ba953afc69fe733d2f6ea 100644
--- a/runtime/vm/assembler_x64.cc
+++ b/runtime/vm/assembler_x64.cc
@@ -3624,12 +3624,12 @@ void Assembler::EmitGenericShift(bool wide,
void Assembler::LoadClassId(Register result, Register object) {
- ASSERT(RawObject::kClassIdTagPos == 16);
- ASSERT(RawObject::kClassIdTagSize == 16);
- ASSERT(sizeof(classid_t) == sizeof(uint16_t));
+ ASSERT(RawObject::kClassIdTagPos == kBitsPerInt32);
+ ASSERT(RawObject::kClassIdTagSize == kBitsPerInt32);
+ ASSERT(sizeof(classid_t) == sizeof(uint32_t));
const intptr_t class_id_offset =
Object::tags_offset() + RawObject::kClassIdTagPos / kBitsPerByte;
- movzxw(result, FieldAddress(object, class_id_offset));
+ movl(result, FieldAddress(object, class_id_offset));
}
@@ -3659,9 +3659,9 @@ void Assembler::SmiUntagOrCheckClass(Register object,
intptr_t class_id,
Label* is_smi) {
ASSERT(kSmiTagShift == 1);
- ASSERT(RawObject::kClassIdTagPos == 16);
- ASSERT(RawObject::kClassIdTagSize == 16);
- ASSERT(sizeof(classid_t) == sizeof(uint16_t));
+ ASSERT(RawObject::kClassIdTagPos == kBitsPerInt32);
+ ASSERT(RawObject::kClassIdTagSize == kBitsPerInt32);
+ ASSERT(sizeof(classid_t) == sizeof(uint32_t));
const intptr_t class_id_offset =
Object::tags_offset() + RawObject::kClassIdTagPos / kBitsPerByte;
@@ -3670,7 +3670,7 @@ void Assembler::SmiUntagOrCheckClass(Register object,
j(NOT_CARRY, is_smi, kNearJump);
// Load cid: can't use LoadClassId, object is untagged. Use TIMES_2 scale
// factor in the addressing mode to compensate for this.
- movzxw(TMP, Address(object, TIMES_2, class_id_offset));
+ movl(TMP, Address(object, TIMES_2, class_id_offset));
cmpl(TMP, Immediate(class_id));
}
« no previous file with comments | « runtime/vm/assembler_arm64.cc ('k') | runtime/vm/clustered_snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698