| 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 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 819 static void GenerateMakeCodeYoungAgainCommon(MacroAssembler* masm) { | 819 static void GenerateMakeCodeYoungAgainCommon(MacroAssembler* masm) { |
| 820 // For now, we are relying on the fact that make_code_young doesn't do any | 820 // For now, we are relying on the fact that make_code_young doesn't do any |
| 821 // garbage collection which allows us to save/restore the registers without | 821 // garbage collection which allows us to save/restore the registers without |
| 822 // worrying about which of them contain pointers. We also don't build an | 822 // worrying about which of them contain pointers. We also don't build an |
| 823 // internal frame to make the code faster, since we shouldn't have to do stack | 823 // internal frame to make the code faster, since we shouldn't have to do stack |
| 824 // crawls in MakeCodeYoung. This seems a bit fragile. | 824 // crawls in MakeCodeYoung. This seems a bit fragile. |
| 825 | 825 |
| 826 __ mov(a0, ra); | 826 __ mov(a0, ra); |
| 827 // Adjust a0 to point to the head of the PlatformCodeAge sequence | 827 // Adjust a0 to point to the head of the PlatformCodeAge sequence |
| 828 __ Subu(a0, a0, | 828 __ Subu(a0, a0, |
| 829 Operand((kNoCodeAgeSequenceLength - 1) * Assembler::kInstrSize)); | 829 Operand((kCodeAgeSequenceLength - 1) * Assembler::kInstrSize)); |
| 830 // Restore the original return address of the function | 830 // Restore the original return address of the function |
| 831 __ mov(ra, at); | 831 __ mov(ra, at); |
| 832 | 832 |
| 833 // The following registers must be saved and restored when calling through to | 833 // The following registers must be saved and restored when calling through to |
| 834 // the runtime: | 834 // the runtime: |
| 835 // a0 - contains return address (beginning of patch sequence) | 835 // a0 - contains return address (beginning of patch sequence) |
| 836 // a1 - isolate | 836 // a1 - isolate |
| 837 RegList saved_regs = | 837 RegList saved_regs = |
| 838 (a0.bit() | a1.bit() | ra.bit() | fp.bit()) & ~sp.bit(); | 838 (a0.bit() | a1.bit() | ra.bit() | fp.bit()) & ~sp.bit(); |
| 839 FrameScope scope(masm, StackFrame::MANUAL); | 839 FrameScope scope(masm, StackFrame::MANUAL); |
| (...skipping 636 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1476 __ bind(&dont_adapt_arguments); | 1476 __ bind(&dont_adapt_arguments); |
| 1477 __ Jump(a3); | 1477 __ Jump(a3); |
| 1478 } | 1478 } |
| 1479 | 1479 |
| 1480 | 1480 |
| 1481 #undef __ | 1481 #undef __ |
| 1482 | 1482 |
| 1483 } } // namespace v8::internal | 1483 } } // namespace v8::internal |
| 1484 | 1484 |
| 1485 #endif // V8_TARGET_ARCH_MIPS | 1485 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |