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<PropertyCell> cell = |
89 isolate()->factory()->NewJSGlobalPropertyCell(object); | 89 isolate()->factory()->NewPropertyCell(object); |
90 li(result, Operand(cell)); | 90 li(result, Operand(cell)); |
91 lw(result, FieldMemOperand(result, JSGlobalPropertyCell::kValueOffset)); | 91 lw(result, FieldMemOperand(result, JSGlobalPropertyCell::kValueOffset)); |
92 } else { | 92 } else { |
93 li(result, Operand(object)); | 93 li(result, Operand(object)); |
94 } | 94 } |
95 } | 95 } |
96 | 96 |
97 | 97 |
98 // Push and pop all registers that can hold pointers. | 98 // Push and pop all registers that can hold pointers. |
99 void MacroAssembler::PushSafepointRegisters() { | 99 void MacroAssembler::PushSafepointRegisters() { |
(...skipping 5427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5527 opcode == BGTZL); | 5527 opcode == BGTZL); |
5528 opcode = (cond == eq) ? BEQ : BNE; | 5528 opcode = (cond == eq) ? BEQ : BNE; |
5529 instr = (instr & ~kOpcodeMask) | opcode; | 5529 instr = (instr & ~kOpcodeMask) | opcode; |
5530 masm_.emit(instr); | 5530 masm_.emit(instr); |
5531 } | 5531 } |
5532 | 5532 |
5533 | 5533 |
5534 } } // namespace v8::internal | 5534 } } // namespace v8::internal |
5535 | 5535 |
5536 #endif // V8_TARGET_ARCH_MIPS | 5536 #endif // V8_TARGET_ARCH_MIPS |
OLD | NEW |