Chromium Code Reviews| Index: src/ia32/macro-assembler-ia32.cc |
| diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
| index 317a14c3ad7091f99aeec3f9b922b33cd8ad14d7..c60e1484e9a2a934f4ccf1ac3257d977d52e2f41 100644 |
| --- a/src/ia32/macro-assembler-ia32.cc |
| +++ b/src/ia32/macro-assembler-ia32.cc |
| @@ -279,6 +279,16 @@ void MacroAssembler::CmpInstanceType(Register map, InstanceType type) { |
| } |
| +void MacroAssembler::CheckFastElements(Register map, |
| + Label* fail, |
| + Label::Distance distance) { |
| + // Check the "has fast elements" bit in the receiver's map. |
|
Mads Ager (chromium)
2011/05/30 11:14:24
Remove comment here? Seems redundant with the comm
danno
2011/06/01 22:29:54
Done.
|
| + cmpb(FieldOperand(map, Map::kBitField2Offset), |
| + Map::kMaximumBitField2FastElementValue); |
| + j(above, fail, distance); |
| +} |
| + |
| + |
| void MacroAssembler::CheckMap(Register obj, |
| Handle<Map> map, |
| Label* fail, |