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

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

Issue 1899183002: [heap] Disallow allocation on the last page in address range (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: SetCC to LeaveCC on arm Created 4 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/heap/spaces.cc ('k') | src/x64/macro-assembler-x64.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 #if V8_TARGET_ARCH_IA32 5 #if V8_TARGET_ARCH_IA32
6 6
7 #include "src/base/bits.h" 7 #include "src/base/bits.h"
8 #include "src/base/division-by-constant.h" 8 #include "src/base/division-by-constant.h"
9 #include "src/bootstrapper.h" 9 #include "src/bootstrapper.h"
10 #include "src/codegen.h" 10 #include "src/codegen.h"
(...skipping 1554 matching lines...) Expand 10 before | Expand all | Expand 10 after
1565 add(result, Immediate(kDoubleSize / 2)); 1565 add(result, Immediate(kDoubleSize / 2));
1566 bind(&aligned); 1566 bind(&aligned);
1567 } 1567 }
1568 1568
1569 // Calculate new top and bail out if space is exhausted. 1569 // Calculate new top and bail out if space is exhausted.
1570 Register top_reg = result_end.is_valid() ? result_end : result; 1570 Register top_reg = result_end.is_valid() ? result_end : result;
1571 if (!top_reg.is(result)) { 1571 if (!top_reg.is(result)) {
1572 mov(top_reg, result); 1572 mov(top_reg, result);
1573 } 1573 }
1574 add(top_reg, Immediate(object_size)); 1574 add(top_reg, Immediate(object_size));
1575 j(carry, gc_required);
1576 cmp(top_reg, Operand::StaticVariable(allocation_limit)); 1575 cmp(top_reg, Operand::StaticVariable(allocation_limit));
1577 j(above, gc_required); 1576 j(above, gc_required);
1578 1577
1579 // Update allocation top. 1578 // Update allocation top.
1580 UpdateAllocationTopHelper(top_reg, scratch, flags); 1579 UpdateAllocationTopHelper(top_reg, scratch, flags);
1581 1580
1582 // Tag result if requested. 1581 // Tag result if requested.
1583 bool tag_result = (flags & TAG_OBJECT) != 0; 1582 bool tag_result = (flags & TAG_OBJECT) != 0;
1584 if (top_reg.is(result)) { 1583 if (top_reg.is(result)) {
1585 if (tag_result) { 1584 if (tag_result) {
(...skipping 1838 matching lines...) Expand 10 before | Expand all | Expand 10 after
3424 mov(eax, dividend); 3423 mov(eax, dividend);
3425 shr(eax, 31); 3424 shr(eax, 31);
3426 add(edx, eax); 3425 add(edx, eax);
3427 } 3426 }
3428 3427
3429 3428
3430 } // namespace internal 3429 } // namespace internal
3431 } // namespace v8 3430 } // namespace v8
3432 3431
3433 #endif // V8_TARGET_ARCH_IA32 3432 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/heap/spaces.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698