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

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

Issue 141653016: Remove Heap::MaxRegularSpaceAllocationSize and use Page::MaxRegularHeapObjectSize instead. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/heap.h » ('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 // 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 1621 matching lines...) Expand 10 before | Expand all | Expand 10 after
1632 ldr(result, FieldMemOperand(t2, kValueOffset)); 1632 ldr(result, FieldMemOperand(t2, kValueOffset));
1633 } 1633 }
1634 1634
1635 1635
1636 void MacroAssembler::Allocate(int object_size, 1636 void MacroAssembler::Allocate(int object_size,
1637 Register result, 1637 Register result,
1638 Register scratch1, 1638 Register scratch1,
1639 Register scratch2, 1639 Register scratch2,
1640 Label* gc_required, 1640 Label* gc_required,
1641 AllocationFlags flags) { 1641 AllocationFlags flags) {
1642 ASSERT(object_size <= Page::kMaxNonCodeHeapObjectSize); 1642 ASSERT(object_size <= Page::kMaxRegularHeapObjectSize);
1643 if (!FLAG_inline_new) { 1643 if (!FLAG_inline_new) {
1644 if (emit_debug_code()) { 1644 if (emit_debug_code()) {
1645 // Trash the registers to simulate an allocation failure. 1645 // Trash the registers to simulate an allocation failure.
1646 mov(result, Operand(0x7091)); 1646 mov(result, Operand(0x7091));
1647 mov(scratch1, Operand(0x7191)); 1647 mov(scratch1, Operand(0x7191));
1648 mov(scratch2, Operand(0x7291)); 1648 mov(scratch2, Operand(0x7291));
1649 } 1649 }
1650 jmp(gc_required); 1650 jmp(gc_required);
1651 return; 1651 return;
1652 } 1652 }
(...skipping 2424 matching lines...) Expand 10 before | Expand all | Expand 10 after
4077 void CodePatcher::EmitCondition(Condition cond) { 4077 void CodePatcher::EmitCondition(Condition cond) {
4078 Instr instr = Assembler::instr_at(masm_.pc_); 4078 Instr instr = Assembler::instr_at(masm_.pc_);
4079 instr = (instr & ~kCondMask) | cond; 4079 instr = (instr & ~kCondMask) | cond;
4080 masm_.emit(instr); 4080 masm_.emit(instr);
4081 } 4081 }
4082 4082
4083 4083
4084 } } // namespace v8::internal 4084 } } // namespace v8::internal
4085 4085
4086 #endif // V8_TARGET_ARCH_ARM 4086 #endif // V8_TARGET_ARCH_ARM
OLDNEW
« no previous file with comments | « no previous file | src/heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698