Chromium Code Reviews| 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 4594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 4605 // Pre-age the code. | 4605 // Pre-age the code. |
| 4606 Code* stub = Code::GetPreAgedCodeAgeStub(isolate()); | 4606 Code* stub = Code::GetPreAgedCodeAgeStub(isolate()); |
| 4607 nop(Assembler::CODE_AGE_MARKER_NOP); | 4607 nop(Assembler::CODE_AGE_MARKER_NOP); |
| 4608 // Save the function's original return address | 4608 // Save the function's original return address |
| 4609 // (it will be clobbered by Call(t9)) | 4609 // (it will be clobbered by Call(t9)) |
| 4610 mov(at, ra); | 4610 mov(at, ra); |
| 4611 // Load the stub address to t9 and call it | 4611 // Load the stub address to t9 and call it |
| 4612 li(t9, | 4612 li(t9, |
| 4613 Operand(reinterpret_cast<uint32_t>(stub->instruction_start()))); | 4613 Operand(reinterpret_cast<uint32_t>(stub->instruction_start()))); |
| 4614 Call(t9); | 4614 Call(t9); |
| 4615 // Record the stub address in the empty space for GetCodeAgeAndParity() | 4615 // Record the stub address in the empty space for GetCodeAgeAndParity() |
|
Paul Lind
2013/11/05 20:42:09
Nit: add periods to this comment, and the two comm
| |
| 4616 dd(reinterpret_cast<uint32_t>(stub->instruction_start())); | 4616 emit_code_stub_address(stub); |
| 4617 } else { | 4617 } else { |
| 4618 Push(ra, fp, cp, a1); | 4618 Push(ra, fp, cp, a1); |
| 4619 nop(Assembler::CODE_AGE_SEQUENCE_NOP); | 4619 nop(Assembler::CODE_AGE_SEQUENCE_NOP); |
| 4620 // Adjust fp to point to caller's fp. | 4620 // Adjust fp to point to caller's fp. |
| 4621 Addu(fp, sp, Operand(2 * kPointerSize)); | 4621 Addu(fp, sp, Operand(2 * kPointerSize)); |
| 4622 } | 4622 } |
| 4623 } | 4623 } |
| 4624 } | 4624 } |
| 4625 | 4625 |
| 4626 | 4626 |
| (...skipping 1087 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 5714 opcode == BGTZL); | 5714 opcode == BGTZL); |
| 5715 opcode = (cond == eq) ? BEQ : BNE; | 5715 opcode = (cond == eq) ? BEQ : BNE; |
| 5716 instr = (instr & ~kOpcodeMask) | opcode; | 5716 instr = (instr & ~kOpcodeMask) | opcode; |
| 5717 masm_.emit(instr); | 5717 masm_.emit(instr); |
| 5718 } | 5718 } |
| 5719 | 5719 |
| 5720 | 5720 |
| 5721 } } // namespace v8::internal | 5721 } } // namespace v8::internal |
| 5722 | 5722 |
| 5723 #endif // V8_TARGET_ARCH_MIPS | 5723 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |