Index: src/ia32/macro-assembler-ia32.cc |
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
index 047236f43d8f3bd324b80c70e4f01584ed26d574..6c02ce48329b4d71dbae2a75f50559cd31813035 100644 |
--- a/src/ia32/macro-assembler-ia32.cc |
+++ b/src/ia32/macro-assembler-ia32.cc |
@@ -1974,6 +1974,17 @@ void MacroAssembler::Abort(const char* msg) { |
} |
+void MacroAssembler::LoadInstanceDescriptors(Register map, |
+ Register descriptors) { |
+ mov(descriptors, |
+ FieldOperand(map, Map::kInstanceDescriptorsOrBitField3Offset)); |
+ Label not_smi; |
+ JumpIfNotSmi(descriptors, ¬_smi); |
+ mov(descriptors, isolate()->factory()->empty_descriptor_array()); |
+ bind(¬_smi); |
+} |
+ |
+ |
void MacroAssembler::LoadPowerOf2(XMMRegister dst, |
Register scratch, |
int power) { |