OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "src/v8.h" | 5 #include "src/v8.h" |
6 | 6 |
7 #if V8_TARGET_ARCH_MIPS64 | 7 #if V8_TARGET_ARCH_MIPS64 |
8 | 8 |
9 #include "src/bootstrapper.h" | 9 #include "src/bootstrapper.h" |
10 #include "src/code-stubs.h" | 10 #include "src/code-stubs.h" |
(...skipping 1441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1452 DCHECK(HasArgsInRegisters()); | 1452 DCHECK(HasArgsInRegisters()); |
1453 // Patch the (relocated) inlined map check. | 1453 // Patch the (relocated) inlined map check. |
1454 | 1454 |
1455 // The offset was stored in a4 safepoint slot. | 1455 // The offset was stored in a4 safepoint slot. |
1456 // (See LCodeGen::DoDeferredLInstanceOfKnownGlobal). | 1456 // (See LCodeGen::DoDeferredLInstanceOfKnownGlobal). |
1457 __ LoadFromSafepointRegisterSlot(scratch, a4); | 1457 __ LoadFromSafepointRegisterSlot(scratch, a4); |
1458 __ Dsubu(inline_site, ra, scratch); | 1458 __ Dsubu(inline_site, ra, scratch); |
1459 // Get the map location in scratch and patch it. | 1459 // Get the map location in scratch and patch it. |
1460 __ GetRelocatedValue(inline_site, scratch, v1); // v1 used as scratch. | 1460 __ GetRelocatedValue(inline_site, scratch, v1); // v1 used as scratch. |
1461 __ sd(map, FieldMemOperand(scratch, Cell::kValueOffset)); | 1461 __ sd(map, FieldMemOperand(scratch, Cell::kValueOffset)); |
| 1462 |
| 1463 __ mov(t0, map); |
| 1464 // |scratch| points at the beginning of the cell. Calculate the |
| 1465 // field containing the map. |
| 1466 __ Daddu(function, scratch, Operand(Cell::kValueOffset - 1)); |
| 1467 __ RecordWriteField(scratch, Cell::kValueOffset, t0, function, |
| 1468 kRAHasNotBeenSaved, kDontSaveFPRegs, |
| 1469 OMIT_REMEMBERED_SET, OMIT_SMI_CHECK); |
1462 } | 1470 } |
1463 | 1471 |
1464 // Register mapping: a3 is object map and a4 is function prototype. | 1472 // Register mapping: a3 is object map and a4 is function prototype. |
1465 // Get prototype of object into a2. | 1473 // Get prototype of object into a2. |
1466 __ ld(scratch, FieldMemOperand(map, Map::kPrototypeOffset)); | 1474 __ ld(scratch, FieldMemOperand(map, Map::kPrototypeOffset)); |
1467 | 1475 |
1468 // We don't need map any more. Use it as a scratch register. | 1476 // We don't need map any more. Use it as a scratch register. |
1469 Register scratch2 = map; | 1477 Register scratch2 = map; |
1470 map = no_reg; | 1478 map = no_reg; |
1471 | 1479 |
(...skipping 4076 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5548 kStackUnwindSpace, kInvalidStackOffset, | 5556 kStackUnwindSpace, kInvalidStackOffset, |
5549 MemOperand(fp, 6 * kPointerSize), NULL); | 5557 MemOperand(fp, 6 * kPointerSize), NULL); |
5550 } | 5558 } |
5551 | 5559 |
5552 | 5560 |
5553 #undef __ | 5561 #undef __ |
5554 | 5562 |
5555 } } // namespace v8::internal | 5563 } } // namespace v8::internal |
5556 | 5564 |
5557 #endif // V8_TARGET_ARCH_MIPS64 | 5565 #endif // V8_TARGET_ARCH_MIPS64 |
OLD | NEW |