Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1880)

Side by Side Diff: src/mips/code-stubs-mips.cc

Issue 1010803012: Merge cellspace into old pointer space (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/mips64/code-stubs-mips64.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_MIPS 7 #if V8_TARGET_ARCH_MIPS
8 8
9 #include "src/base/bits.h" 9 #include "src/base/bits.h"
10 #include "src/bootstrapper.h" 10 #include "src/bootstrapper.h"
(...skipping 1441 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 t0 safepoint slot. 1455 // The offset was stored in t0 safepoint slot.
1456 // (See LCodeGen::DoDeferredLInstanceOfKnownGlobal). 1456 // (See LCodeGen::DoDeferredLInstanceOfKnownGlobal).
1457 __ LoadFromSafepointRegisterSlot(scratch, t0); 1457 __ LoadFromSafepointRegisterSlot(scratch, t0);
1458 __ Subu(inline_site, ra, scratch); 1458 __ Subu(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 __ sw(map, FieldMemOperand(scratch, Cell::kValueOffset)); 1461 __ sw(map, FieldMemOperand(scratch, Cell::kValueOffset));
1462
1463 __ mov(t4, map);
1464 // Scratch points at the cell payload. Calculate the start of the object.
1465 __ Subu(scratch, scratch, Operand(Cell::kValueOffset - 1));
1466 __ RecordWriteField(scratch, Cell::kValueOffset, t4, function,
1467 kRAHasNotBeenSaved, kDontSaveFPRegs,
1468 OMIT_REMEMBERED_SET, OMIT_SMI_CHECK);
1462 } 1469 }
1463 1470
1464 // Register mapping: a3 is object map and t0 is function prototype. 1471 // Register mapping: a3 is object map and t0 is function prototype.
1465 // Get prototype of object into a2. 1472 // Get prototype of object into a2.
1466 __ lw(scratch, FieldMemOperand(map, Map::kPrototypeOffset)); 1473 __ lw(scratch, FieldMemOperand(map, Map::kPrototypeOffset));
1467 1474
1468 // We don't need map any more. Use it as a scratch register. 1475 // We don't need map any more. Use it as a scratch register.
1469 Register scratch2 = map; 1476 Register scratch2 = map;
1470 map = no_reg; 1477 map = no_reg;
1471 1478
(...skipping 4031 matching lines...) Expand 10 before | Expand all | Expand 10 after
5503 kStackUnwindSpace, kInvalidStackOffset, 5510 kStackUnwindSpace, kInvalidStackOffset,
5504 MemOperand(fp, 6 * kPointerSize), NULL); 5511 MemOperand(fp, 6 * kPointerSize), NULL);
5505 } 5512 }
5506 5513
5507 5514
5508 #undef __ 5515 #undef __
5509 5516
5510 } } // namespace v8::internal 5517 } } // namespace v8::internal
5511 5518
5512 #endif // V8_TARGET_ARCH_MIPS 5519 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/code-stubs-ia32.cc ('k') | src/mips64/code-stubs-mips64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698