| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
| 2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
| 3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
| 4 // met: | 4 // met: |
| 5 // | 5 // |
| 6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
| 7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
| 8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
| 9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
| 10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
| (...skipping 7583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7594 void RecordWriteStub::InformIncrementalMarker(MacroAssembler* masm, Mode mode) { | 7594 void RecordWriteStub::InformIncrementalMarker(MacroAssembler* masm, Mode mode) { |
| 7595 regs_.SaveCallerSaveRegisters(masm, save_fp_regs_mode_); | 7595 regs_.SaveCallerSaveRegisters(masm, save_fp_regs_mode_); |
| 7596 int argument_count = 3; | 7596 int argument_count = 3; |
| 7597 __ PrepareCallCFunction(argument_count, regs_.scratch0()); | 7597 __ PrepareCallCFunction(argument_count, regs_.scratch0()); |
| 7598 Register address = | 7598 Register address = |
| 7599 a0.is(regs_.address()) ? regs_.scratch0() : regs_.address(); | 7599 a0.is(regs_.address()) ? regs_.scratch0() : regs_.address(); |
| 7600 ASSERT(!address.is(regs_.object())); | 7600 ASSERT(!address.is(regs_.object())); |
| 7601 ASSERT(!address.is(a0)); | 7601 ASSERT(!address.is(a0)); |
| 7602 __ Move(address, regs_.address()); | 7602 __ Move(address, regs_.address()); |
| 7603 __ Move(a0, regs_.object()); | 7603 __ Move(a0, regs_.object()); |
| 7604 if (mode == INCREMENTAL_COMPACTION) { | 7604 __ Move(a1, address); |
| 7605 __ Move(a1, address); | |
| 7606 } else { | |
| 7607 ASSERT(mode == INCREMENTAL); | |
| 7608 __ lw(a1, MemOperand(address, 0)); | |
| 7609 } | |
| 7610 __ li(a2, Operand(ExternalReference::isolate_address())); | 7605 __ li(a2, Operand(ExternalReference::isolate_address())); |
| 7611 | 7606 |
| 7612 AllowExternalCallThatCantCauseGC scope(masm); | 7607 AllowExternalCallThatCantCauseGC scope(masm); |
| 7613 if (mode == INCREMENTAL_COMPACTION) { | 7608 if (mode == INCREMENTAL_COMPACTION) { |
| 7614 __ CallCFunction( | 7609 __ CallCFunction( |
| 7615 ExternalReference::incremental_evacuation_record_write_function( | 7610 ExternalReference::incremental_evacuation_record_write_function( |
| 7616 masm->isolate()), | 7611 masm->isolate()), |
| 7617 argument_count); | 7612 argument_count); |
| 7618 } else { | 7613 } else { |
| 7619 ASSERT(mode == INCREMENTAL); | 7614 ASSERT(mode == INCREMENTAL); |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7835 __ Pop(ra, t1, a1); | 7830 __ Pop(ra, t1, a1); |
| 7836 __ Ret(); | 7831 __ Ret(); |
| 7837 } | 7832 } |
| 7838 | 7833 |
| 7839 | 7834 |
| 7840 #undef __ | 7835 #undef __ |
| 7841 | 7836 |
| 7842 } } // namespace v8::internal | 7837 } } // namespace v8::internal |
| 7843 | 7838 |
| 7844 #endif // V8_TARGET_ARCH_MIPS | 7839 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |