| 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 2826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2837 JumpToHandlerEntry(); | 2837 JumpToHandlerEntry(); |
| 2838 } | 2838 } |
| 2839 | 2839 |
| 2840 | 2840 |
| 2841 void MacroAssembler::Allocate(int object_size, | 2841 void MacroAssembler::Allocate(int object_size, |
| 2842 Register result, | 2842 Register result, |
| 2843 Register scratch1, | 2843 Register scratch1, |
| 2844 Register scratch2, | 2844 Register scratch2, |
| 2845 Label* gc_required, | 2845 Label* gc_required, |
| 2846 AllocationFlags flags) { | 2846 AllocationFlags flags) { |
| 2847 ASSERT(object_size <= Page::kMaxNonCodeHeapObjectSize); | 2847 ASSERT(object_size <= Page::kMaxRegularHeapObjectSize); |
| 2848 if (!FLAG_inline_new) { | 2848 if (!FLAG_inline_new) { |
| 2849 if (emit_debug_code()) { | 2849 if (emit_debug_code()) { |
| 2850 // Trash the registers to simulate an allocation failure. | 2850 // Trash the registers to simulate an allocation failure. |
| 2851 li(result, 0x7091); | 2851 li(result, 0x7091); |
| 2852 li(scratch1, 0x7191); | 2852 li(scratch1, 0x7191); |
| 2853 li(scratch2, 0x7291); | 2853 li(scratch2, 0x7291); |
| 2854 } | 2854 } |
| 2855 jmp(gc_required); | 2855 jmp(gc_required); |
| 2856 return; | 2856 return; |
| 2857 } | 2857 } |
| (...skipping 2887 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5745 opcode == BGTZL); | 5745 opcode == BGTZL); |
| 5746 opcode = (cond == eq) ? BEQ : BNE; | 5746 opcode = (cond == eq) ? BEQ : BNE; |
| 5747 instr = (instr & ~kOpcodeMask) | opcode; | 5747 instr = (instr & ~kOpcodeMask) | opcode; |
| 5748 masm_.emit(instr); | 5748 masm_.emit(instr); |
| 5749 } | 5749 } |
| 5750 | 5750 |
| 5751 | 5751 |
| 5752 } } // namespace v8::internal | 5752 } } // namespace v8::internal |
| 5753 | 5753 |
| 5754 #endif // V8_TARGET_ARCH_MIPS | 5754 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |