OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 2855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2866 li(scratch1, 0x7191); | 2866 li(scratch1, 0x7191); |
2867 li(scratch2, 0x7291); | 2867 li(scratch2, 0x7291); |
2868 } | 2868 } |
2869 jmp(gc_required); | 2869 jmp(gc_required); |
2870 return; | 2870 return; |
2871 } | 2871 } |
2872 | 2872 |
2873 ASSERT(!result.is(scratch1)); | 2873 ASSERT(!result.is(scratch1)); |
2874 ASSERT(!result.is(scratch2)); | 2874 ASSERT(!result.is(scratch2)); |
2875 ASSERT(!scratch1.is(scratch2)); | 2875 ASSERT(!scratch1.is(scratch2)); |
| 2876 ASSERT(!object_size.is(t9)); |
2876 ASSERT(!scratch1.is(t9) && !scratch2.is(t9) && !result.is(t9)); | 2877 ASSERT(!scratch1.is(t9) && !scratch2.is(t9) && !result.is(t9)); |
2877 | 2878 |
2878 // Check relative positions of allocation top and limit addresses. | 2879 // Check relative positions of allocation top and limit addresses. |
2879 // ARM adds additional checks to make sure the ldm instruction can be | 2880 // ARM adds additional checks to make sure the ldm instruction can be |
2880 // used. On MIPS we don't have ldm so we don't need additional checks either. | 2881 // used. On MIPS we don't have ldm so we don't need additional checks either. |
2881 ExternalReference new_space_allocation_top = | 2882 ExternalReference new_space_allocation_top = |
2882 ExternalReference::new_space_allocation_top_address(isolate()); | 2883 ExternalReference::new_space_allocation_top_address(isolate()); |
2883 ExternalReference new_space_allocation_limit = | 2884 ExternalReference new_space_allocation_limit = |
2884 ExternalReference::new_space_allocation_limit_address(isolate()); | 2885 ExternalReference::new_space_allocation_limit_address(isolate()); |
2885 intptr_t top = | 2886 intptr_t top = |
(...skipping 2249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5135 opcode == BGTZL); | 5136 opcode == BGTZL); |
5136 opcode = (cond == eq) ? BEQ : BNE; | 5137 opcode = (cond == eq) ? BEQ : BNE; |
5137 instr = (instr & ~kOpcodeMask) | opcode; | 5138 instr = (instr & ~kOpcodeMask) | opcode; |
5138 masm_.emit(instr); | 5139 masm_.emit(instr); |
5139 } | 5140 } |
5140 | 5141 |
5141 | 5142 |
5142 } } // namespace v8::internal | 5143 } } // namespace v8::internal |
5143 | 5144 |
5144 #endif // V8_TARGET_ARCH_MIPS | 5145 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |