| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 Register src1, const Operand& src2) { | 78 Register src1, const Operand& src2) { |
| 79 Branch(2, NegateCondition(cond), src1, src2); | 79 Branch(2, NegateCondition(cond), src1, src2); |
| 80 sw(source, MemOperand(s6, index << kPointerSizeLog2)); | 80 sw(source, MemOperand(s6, index << kPointerSizeLog2)); |
| 81 } | 81 } |
| 82 | 82 |
| 83 | 83 |
| 84 void MacroAssembler::LoadHeapObject(Register result, | 84 void MacroAssembler::LoadHeapObject(Register result, |
| 85 Handle<HeapObject> object) { | 85 Handle<HeapObject> object) { |
| 86 AllowDeferredHandleDereference using_raw_address; | 86 AllowDeferredHandleDereference using_raw_address; |
| 87 if (isolate()->heap()->InNewSpace(*object)) { | 87 if (isolate()->heap()->InNewSpace(*object)) { |
| 88 Handle<JSGlobalPropertyCell> cell = | 88 Handle<Cell> cell = isolate()->factory()->NewCell(object); |
| 89 isolate()->factory()->NewJSGlobalPropertyCell(object); | |
| 90 li(result, Operand(cell)); | 89 li(result, Operand(cell)); |
| 91 lw(result, FieldMemOperand(result, JSGlobalPropertyCell::kValueOffset)); | 90 lw(result, FieldMemOperand(result, Cell::kValueOffset)); |
| 92 } else { | 91 } else { |
| 93 li(result, Operand(object)); | 92 li(result, Operand(object)); |
| 94 } | 93 } |
| 95 } | 94 } |
| 96 | 95 |
| 97 | 96 |
| 98 // Push and pop all registers that can hold pointers. | 97 // Push and pop all registers that can hold pointers. |
| 99 void MacroAssembler::PushSafepointRegisters() { | 98 void MacroAssembler::PushSafepointRegisters() { |
| 100 // Safepoints expect a block of kNumSafepointRegisters values on the | 99 // Safepoints expect a block of kNumSafepointRegisters values on the |
| 101 // stack, so adjust the stack for unsaved registers. | 100 // stack, so adjust the stack for unsaved registers. |
| (...skipping 5425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5527 opcode == BGTZL); | 5526 opcode == BGTZL); |
| 5528 opcode = (cond == eq) ? BEQ : BNE; | 5527 opcode = (cond == eq) ? BEQ : BNE; |
| 5529 instr = (instr & ~kOpcodeMask) | opcode; | 5528 instr = (instr & ~kOpcodeMask) | opcode; |
| 5530 masm_.emit(instr); | 5529 masm_.emit(instr); |
| 5531 } | 5530 } |
| 5532 | 5531 |
| 5533 | 5532 |
| 5534 } } // namespace v8::internal | 5533 } } // namespace v8::internal |
| 5535 | 5534 |
| 5536 #endif // V8_TARGET_ARCH_MIPS | 5535 #endif // V8_TARGET_ARCH_MIPS |
| OLD | NEW |