| Index: src/macro-assembler-ia32.cc
|
| ===================================================================
|
| --- src/macro-assembler-ia32.cc (revision 969)
|
| +++ src/macro-assembler-ia32.cc (working copy)
|
| @@ -603,22 +603,12 @@
|
| }
|
|
|
|
|
| -void MacroAssembler::NegativeZeroTest(CodeGenerator* cgen,
|
| - Register result,
|
| - Register op,
|
| - JumpTarget* then_target) {
|
| - JumpTarget ok(cgen);
|
| - test(result, Operand(result));
|
| - ok.Branch(not_zero, taken);
|
| - test(op, Operand(op));
|
| - then_target->Branch(sign, not_taken);
|
| - ok.Bind();
|
| -}
|
| -
|
| -
|
| void MacroAssembler::NegativeZeroTest(Register result,
|
| Register op,
|
| Label* then_label) {
|
| + // Because this function is called from the code generator (with its own
|
| + // register allocator), it should not use registers other than result and
|
| + // op, and should not push or pop from the stack.
|
| Label ok;
|
| test(result, Operand(result));
|
| j(not_zero, &ok, taken);
|
|
|