Index: src/x64/macro-assembler-x64.cc |
=================================================================== |
--- src/x64/macro-assembler-x64.cc (revision 8174) |
+++ src/x64/macro-assembler-x64.cc (working copy) |
@@ -2558,6 +2558,16 @@ |
} |
+void MacroAssembler::CheckFastElements(Register map, |
+ Label* fail, |
+ Label::Distance distance) { |
+ STATIC_ASSERT(JSObject::FAST_ELEMENTS == 0); |
+ cmpb(FieldOperand(map, Map::kBitField2Offset), |
+ Immediate(Map::kMaximumBitField2FastElementValue)); |
+ j(above, fail, distance); |
+} |
+ |
+ |
void MacroAssembler::CheckMap(Register obj, |
Handle<Map> map, |
Label* fail, |