Chromium Code Reviews| Index: src/arm/stub-cache-arm.cc |
| =================================================================== |
| --- src/arm/stub-cache-arm.cc (revision 4445) |
| +++ src/arm/stub-cache-arm.cc (working copy) |
| @@ -1420,6 +1420,10 @@ |
| // Load receiver. |
| __ ldr(r0, MemOperand(sp, 0)); |
| + // Check that receiver is not a smi. |
| + __ tst(r0, Operand(kSmiTagMask)); |
| + __ b(eq, &miss); |
|
antonm
2010/04/20 11:28:38
drive by comment: there is BranchOnSmi macro
|
| + |
| // Check the maps of the full prototype chain. |
| CheckPrototypes(object, r0, last, r3, r1, name, &miss); |