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 5505 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5516 ExternalReference new_space_allocation_top = | 5516 ExternalReference new_space_allocation_top = |
5517 ExternalReference::new_space_allocation_top_address(isolate()); | 5517 ExternalReference::new_space_allocation_top_address(isolate()); |
5518 Addu(scratch_reg, receiver_reg, | 5518 Addu(scratch_reg, receiver_reg, |
5519 Operand(JSArray::kSize + AllocationMemento::kSize - kHeapObjectTag)); | 5519 Operand(JSArray::kSize + AllocationMemento::kSize - kHeapObjectTag)); |
5520 Branch(&no_memento_available, lt, scratch_reg, Operand(new_space_start)); | 5520 Branch(&no_memento_available, lt, scratch_reg, Operand(new_space_start)); |
5521 li(at, Operand(new_space_allocation_top)); | 5521 li(at, Operand(new_space_allocation_top)); |
5522 lw(at, MemOperand(at)); | 5522 lw(at, MemOperand(at)); |
5523 Branch(&no_memento_available, gt, scratch_reg, Operand(at)); | 5523 Branch(&no_memento_available, gt, scratch_reg, Operand(at)); |
5524 lw(scratch_reg, MemOperand(scratch_reg, -AllocationMemento::kSize)); | 5524 lw(scratch_reg, MemOperand(scratch_reg, -AllocationMemento::kSize)); |
5525 Branch(allocation_memento_present, cond, scratch_reg, | 5525 Branch(allocation_memento_present, cond, scratch_reg, |
5526 Operand(Handle<Map>(isolate()->heap()->allocation_memento_map()))); | 5526 Operand(isolate()->factory()->allocation_memento_map())); |
5527 bind(&no_memento_available); | 5527 bind(&no_memento_available); |
5528 } | 5528 } |
5529 | 5529 |
5530 | 5530 |
5531 Register GetRegisterThatIsNotOneOf(Register reg1, | 5531 Register GetRegisterThatIsNotOneOf(Register reg1, |
5532 Register reg2, | 5532 Register reg2, |
5533 Register reg3, | 5533 Register reg3, |
5534 Register reg4, | 5534 Register reg4, |
5535 Register reg5, | 5535 Register reg5, |
5536 Register reg6) { | 5536 Register reg6) { |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5612 opcode == BGTZL); | 5612 opcode == BGTZL); |
5613 opcode = (cond == eq) ? BEQ : BNE; | 5613 opcode = (cond == eq) ? BEQ : BNE; |
5614 instr = (instr & ~kOpcodeMask) | opcode; | 5614 instr = (instr & ~kOpcodeMask) | opcode; |
5615 masm_.emit(instr); | 5615 masm_.emit(instr); |
5616 } | 5616 } |
5617 | 5617 |
5618 | 5618 |
5619 } } // namespace v8::internal | 5619 } } // namespace v8::internal |
5620 | 5620 |
5621 #endif // V8_TARGET_ARCH_MIPS | 5621 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |