| Index: src/x64/macro-assembler-x64.cc
|
| ===================================================================
|
| --- src/x64/macro-assembler-x64.cc (revision 5232)
|
| +++ src/x64/macro-assembler-x64.cc (working copy)
|
| @@ -1978,10 +1978,17 @@
|
| }
|
|
|
|
|
| +void MacroAssembler::AbortIfSmi(Register object) {
|
| + Label ok;
|
| + Condition is_smi = CheckSmi(object);
|
| + Assert(NegateCondition(is_smi), "Operand is a smi");
|
| +}
|
| +
|
| +
|
| void MacroAssembler::AbortIfNotSmi(Register object) {
|
| Label ok;
|
| Condition is_smi = CheckSmi(object);
|
| - Assert(is_smi, "Operand not a smi");
|
| + Assert(is_smi, "Operand is not a smi");
|
| }
|
|
|
|
|
|
|