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

Side by Side Diff: src/ppc/macro-assembler-ppc.cc

Issue 999983005: PPC: Merge old data and pointer space. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 9 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 the V8 project authors. All rights reserved. 1 // Copyright 2014 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 <assert.h> // For assert 5 #include <assert.h> // For assert
6 #include <limits.h> // For LONG_MIN, LONG_MAX. 6 #include <limits.h> // For LONG_MIN, LONG_MAX.
7 7
8 #include "src/v8.h" 8 #include "src/v8.h"
9 9
10 #if V8_TARGET_ARCH_PPC 10 #if V8_TARGET_ARCH_PPC
(...skipping 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after
1374 cmp(result, ip); 1374 cmp(result, ip);
1375 Check(eq, kUnexpectedAllocationTop); 1375 Check(eq, kUnexpectedAllocationTop);
1376 } 1376 }
1377 // Load allocation limit into ip. Result already contains allocation top. 1377 // Load allocation limit into ip. Result already contains allocation top.
1378 LoadP(ip, MemOperand(topaddr, limit - top), r0); 1378 LoadP(ip, MemOperand(topaddr, limit - top), r0);
1379 } 1379 }
1380 1380
1381 if ((flags & DOUBLE_ALIGNMENT) != 0) { 1381 if ((flags & DOUBLE_ALIGNMENT) != 0) {
1382 // Align the next allocation. Storing the filler map without checking top is 1382 // Align the next allocation. Storing the filler map without checking top is
1383 // safe in new-space because the limit of the heap is aligned there. 1383 // safe in new-space because the limit of the heap is aligned there.
1384 DCHECK((flags & PRETENURE_OLD_POINTER_SPACE) == 0);
1385 #if V8_TARGET_ARCH_PPC64 1384 #if V8_TARGET_ARCH_PPC64
1386 STATIC_ASSERT(kPointerAlignment == kDoubleAlignment); 1385 STATIC_ASSERT(kPointerAlignment == kDoubleAlignment);
1387 #else 1386 #else
1388 STATIC_ASSERT(kPointerAlignment * 2 == kDoubleAlignment); 1387 STATIC_ASSERT(kPointerAlignment * 2 == kDoubleAlignment);
1389 andi(scratch2, result, Operand(kDoubleAlignmentMask)); 1388 andi(scratch2, result, Operand(kDoubleAlignmentMask));
1390 Label aligned; 1389 Label aligned;
1391 beq(&aligned, cr0); 1390 beq(&aligned, cr0);
1392 if ((flags & PRETENURE_OLD_DATA_SPACE) != 0) { 1391 if ((flags & PRETENURE_OLD_DATA_SPACE) != 0) {
1393 cmpl(result, ip); 1392 cmpl(result, ip);
1394 bge(gc_required); 1393 bge(gc_required);
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
1473 cmp(result, ip); 1472 cmp(result, ip);
1474 Check(eq, kUnexpectedAllocationTop); 1473 Check(eq, kUnexpectedAllocationTop);
1475 } 1474 }
1476 // Load allocation limit into ip. Result already contains allocation top. 1475 // Load allocation limit into ip. Result already contains allocation top.
1477 LoadP(ip, MemOperand(topaddr, limit - top)); 1476 LoadP(ip, MemOperand(topaddr, limit - top));
1478 } 1477 }
1479 1478
1480 if ((flags & DOUBLE_ALIGNMENT) != 0) { 1479 if ((flags & DOUBLE_ALIGNMENT) != 0) {
1481 // Align the next allocation. Storing the filler map without checking top is 1480 // Align the next allocation. Storing the filler map without checking top is
1482 // safe in new-space because the limit of the heap is aligned there. 1481 // safe in new-space because the limit of the heap is aligned there.
1483 DCHECK((flags & PRETENURE_OLD_POINTER_SPACE) == 0);
1484 #if V8_TARGET_ARCH_PPC64 1482 #if V8_TARGET_ARCH_PPC64
1485 STATIC_ASSERT(kPointerAlignment == kDoubleAlignment); 1483 STATIC_ASSERT(kPointerAlignment == kDoubleAlignment);
1486 #else 1484 #else
1487 STATIC_ASSERT(kPointerAlignment * 2 == kDoubleAlignment); 1485 STATIC_ASSERT(kPointerAlignment * 2 == kDoubleAlignment);
1488 andi(scratch2, result, Operand(kDoubleAlignmentMask)); 1486 andi(scratch2, result, Operand(kDoubleAlignmentMask));
1489 Label aligned; 1487 Label aligned;
1490 beq(&aligned, cr0); 1488 beq(&aligned, cr0);
1491 if ((flags & PRETENURE_OLD_DATA_SPACE) != 0) { 1489 if ((flags & PRETENURE_OLD_DATA_SPACE) != 0) {
1492 cmpl(result, ip); 1490 cmpl(result, ip);
1493 bge(gc_required); 1491 bge(gc_required);
(...skipping 3045 matching lines...) Expand 10 before | Expand all | Expand 10 after
4539 } 4537 }
4540 if (mag.shift > 0) srawi(result, result, mag.shift); 4538 if (mag.shift > 0) srawi(result, result, mag.shift);
4541 ExtractBit(r0, dividend, 31); 4539 ExtractBit(r0, dividend, 31);
4542 add(result, result, r0); 4540 add(result, result, r0);
4543 } 4541 }
4544 4542
4545 } // namespace internal 4543 } // namespace internal
4546 } // namespace v8 4544 } // namespace v8
4547 4545
4548 #endif // V8_TARGET_ARCH_PPC 4546 #endif // V8_TARGET_ARCH_PPC
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698