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 5552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5563 bind(&in_bounds); | 5563 bind(&in_bounds); |
5564 cvt_w_d(temp_double_reg, input_reg); | 5564 cvt_w_d(temp_double_reg, input_reg); |
5565 mfc1(result_reg, temp_double_reg); | 5565 mfc1(result_reg, temp_double_reg); |
5566 bind(&done); | 5566 bind(&done); |
5567 } | 5567 } |
5568 | 5568 |
5569 | 5569 |
5570 void MacroAssembler::TestJSArrayForAllocationMemento( | 5570 void MacroAssembler::TestJSArrayForAllocationMemento( |
5571 Register receiver_reg, | 5571 Register receiver_reg, |
5572 Register scratch_reg, | 5572 Register scratch_reg, |
| 5573 Label* no_memento_found, |
5573 Condition cond, | 5574 Condition cond, |
5574 Label* allocation_memento_present) { | 5575 Label* allocation_memento_present) { |
5575 Label no_memento_available; | |
5576 ExternalReference new_space_start = | 5576 ExternalReference new_space_start = |
5577 ExternalReference::new_space_start(isolate()); | 5577 ExternalReference::new_space_start(isolate()); |
5578 ExternalReference new_space_allocation_top = | 5578 ExternalReference new_space_allocation_top = |
5579 ExternalReference::new_space_allocation_top_address(isolate()); | 5579 ExternalReference::new_space_allocation_top_address(isolate()); |
5580 Addu(scratch_reg, receiver_reg, | 5580 Addu(scratch_reg, receiver_reg, |
5581 Operand(JSArray::kSize + AllocationMemento::kSize - kHeapObjectTag)); | 5581 Operand(JSArray::kSize + AllocationMemento::kSize - kHeapObjectTag)); |
5582 Branch(&no_memento_available, lt, scratch_reg, Operand(new_space_start)); | 5582 Branch(no_memento_found, lt, scratch_reg, Operand(new_space_start)); |
5583 li(at, Operand(new_space_allocation_top)); | 5583 li(at, Operand(new_space_allocation_top)); |
5584 lw(at, MemOperand(at)); | 5584 lw(at, MemOperand(at)); |
5585 Branch(&no_memento_available, gt, scratch_reg, Operand(at)); | 5585 Branch(no_memento_found, gt, scratch_reg, Operand(at)); |
5586 lw(scratch_reg, MemOperand(scratch_reg, -AllocationMemento::kSize)); | 5586 lw(scratch_reg, MemOperand(scratch_reg, -AllocationMemento::kSize)); |
5587 Branch(allocation_memento_present, cond, scratch_reg, | 5587 if (allocation_memento_present) { |
5588 Operand(isolate()->factory()->allocation_memento_map())); | 5588 Branch(allocation_memento_present, cond, scratch_reg, |
5589 bind(&no_memento_available); | 5589 Operand(isolate()->factory()->allocation_memento_map())); |
| 5590 } |
5590 } | 5591 } |
5591 | 5592 |
5592 | 5593 |
5593 Register GetRegisterThatIsNotOneOf(Register reg1, | 5594 Register GetRegisterThatIsNotOneOf(Register reg1, |
5594 Register reg2, | 5595 Register reg2, |
5595 Register reg3, | 5596 Register reg3, |
5596 Register reg4, | 5597 Register reg4, |
5597 Register reg5, | 5598 Register reg5, |
5598 Register reg6) { | 5599 Register reg6) { |
5599 RegList regs = 0; | 5600 RegList regs = 0; |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5674 opcode == BGTZL); | 5675 opcode == BGTZL); |
5675 opcode = (cond == eq) ? BEQ : BNE; | 5676 opcode = (cond == eq) ? BEQ : BNE; |
5676 instr = (instr & ~kOpcodeMask) | opcode; | 5677 instr = (instr & ~kOpcodeMask) | opcode; |
5677 masm_.emit(instr); | 5678 masm_.emit(instr); |
5678 } | 5679 } |
5679 | 5680 |
5680 | 5681 |
5681 } } // namespace v8::internal | 5682 } } // namespace v8::internal |
5682 | 5683 |
5683 #endif // V8_TARGET_ARCH_MIPS | 5684 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |