Index: src/macro-assembler-arm.cc |
=================================================================== |
--- src/macro-assembler-arm.cc (revision 311) |
+++ src/macro-assembler-arm.cc (working copy) |
@@ -299,7 +299,16 @@ |
definitely_matches = true; |
} else { |
mov(r0, Operand(actual.immediate())); |
- mov(r2, Operand(expected.immediate())); |
+ const int sentinel = SharedFunctionInfo::kDontAdaptArgumentsSentinel; |
+ if (expected.immediate() == sentinel) { |
+ // Don't worry about adapting arguments for builtins that |
+ // don't want that done. Skip adaption code by making it look |
+ // like we have a match between expected and actual number of |
+ // arguments. |
+ definitely_matches = true; |
+ } else { |
+ mov(r2, Operand(expected.immediate())); |
+ } |
} |
} else { |
if (actual.is_immediate()) { |