Index: src/x64/macro-assembler-x64.cc |
diff --git a/src/x64/macro-assembler-x64.cc b/src/x64/macro-assembler-x64.cc |
index 64f42f49ee21948aae4fea68997b043461127ced..0cfec36156d1b4d13622289b8dd3882dc62f3e98 100644 |
--- a/src/x64/macro-assembler-x64.cc |
+++ b/src/x64/macro-assembler-x64.cc |
@@ -2601,6 +2601,17 @@ void MacroAssembler::ClampDoubleToUint8(XMMRegister input_reg, |
} |
+void MacroAssembler::LoadInstanceDescriptors(Register map, |
+ Register descriptors) { |
+ movq(descriptors, FieldOperand(map, |
+ Map::kInstanceDescriptorsOrBitField3Offset)); |
+ Label not_smi; |
+ JumpIfNotSmi(descriptors, ¬_smi, Label::kNear); |
+ Move(descriptors, isolate()->factory()->empty_descriptor_array()); |
+ bind(¬_smi); |
+} |
+ |
+ |
void MacroAssembler::DispatchMap(Register obj, |
Handle<Map> map, |
Handle<Code> success, |