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