| Index: src/ia32/macro-assembler-ia32.h
|
| diff --git a/src/ia32/macro-assembler-ia32.h b/src/ia32/macro-assembler-ia32.h
|
| index 2e5dec442ee00b24e35ebbfd3bb090bcdebcfced..1843850b6ab31822c7a8c9af1d4c7688ace9f346 100644
|
| --- a/src/ia32/macro-assembler-ia32.h
|
| +++ b/src/ia32/macro-assembler-ia32.h
|
| @@ -79,14 +79,6 @@ class MacroAssembler: public Assembler {
|
| Register scratch,
|
| SaveFPRegsMode save_fp);
|
|
|
| - // Check if object is in new space.
|
| - // scratch can be object itself, but it will be clobbered.
|
| - template <typename LabelType>
|
| - void InNewSpace(Register object,
|
| - Register scratch,
|
| - Condition cc, // equal for new space, not_equal otherwise.
|
| - LabelType* branch);
|
| -
|
| template<typename LabelType>
|
| void CheckPageFlag(Register object,
|
| Register scratch,
|
| @@ -793,37 +785,6 @@ class MacroAssembler: public Assembler {
|
| };
|
|
|
|
|
| -template <typename LabelType>
|
| -void MacroAssembler::InNewSpace(Register object,
|
| - Register scratch,
|
| - Condition cc,
|
| - LabelType* branch) {
|
| - ASSERT(cc == equal || cc == not_equal);
|
| - if (Serializer::enabled()) {
|
| - // Can't do arithmetic on external references if it might get serialized.
|
| - Move(scratch, object);
|
| - // The mask isn't really an address. We load it as an external reference in
|
| - // case the size of the new space is different between the snapshot maker
|
| - // and the running system.
|
| - and_(Operand(scratch),
|
| - Immediate(ExternalReference::new_space_mask(isolate())));
|
| - cmp(Operand(scratch),
|
| - Immediate(ExternalReference::new_space_start(isolate())));
|
| - j(cc, branch);
|
| - } else {
|
| - int32_t new_space_start = reinterpret_cast<int32_t>(
|
| - ExternalReference::new_space_start(isolate()).address());
|
| - if (object.is(scratch)) {
|
| - sub(Operand(scratch), Immediate(new_space_start));
|
| - } else {
|
| - lea(scratch, Operand(object, -new_space_start));
|
| - }
|
| - and_(scratch, isolate()->heap()->NewSpaceMask());
|
| - j(cc, branch);
|
| - }
|
| -}
|
| -
|
| -
|
| // The code patcher is used to patch (typically) small parts of code e.g. for
|
| // debugging and other types of instrumentation. When using the code patcher
|
| // the exact number of bytes specified must be emitted. Is not legal to emit
|
|
|