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

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

Issue 19934006: Simplified large object allocation strategy. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 5 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 1607 matching lines...) Expand 10 before | Expand all | Expand 10 after
1618 ldr(result, FieldMemOperand(t2, kValueOffset)); 1618 ldr(result, FieldMemOperand(t2, kValueOffset));
1619 } 1619 }
1620 1620
1621 1621
1622 void MacroAssembler::Allocate(int object_size, 1622 void MacroAssembler::Allocate(int object_size,
1623 Register result, 1623 Register result,
1624 Register scratch1, 1624 Register scratch1,
1625 Register scratch2, 1625 Register scratch2,
1626 Label* gc_required, 1626 Label* gc_required,
1627 AllocationFlags flags) { 1627 AllocationFlags flags) {
1628 ASSERT(object_size <= Page::kMaxNonCodeHeapObjectSize);
1628 if (!FLAG_inline_new) { 1629 if (!FLAG_inline_new) {
1629 if (emit_debug_code()) { 1630 if (emit_debug_code()) {
1630 // Trash the registers to simulate an allocation failure. 1631 // Trash the registers to simulate an allocation failure.
1631 mov(result, Operand(0x7091)); 1632 mov(result, Operand(0x7091));
1632 mov(scratch1, Operand(0x7191)); 1633 mov(scratch1, Operand(0x7191));
1633 mov(scratch2, Operand(0x7291)); 1634 mov(scratch2, Operand(0x7291));
1634 } 1635 }
1635 jmp(gc_required); 1636 jmp(gc_required);
1636 return; 1637 return;
1637 } 1638 }
(...skipping 2195 matching lines...) Expand 10 before | Expand all | Expand 10 after
3833 void CodePatcher::EmitCondition(Condition cond) { 3834 void CodePatcher::EmitCondition(Condition cond) {
3834 Instr instr = Assembler::instr_at(masm_.pc_); 3835 Instr instr = Assembler::instr_at(masm_.pc_);
3835 instr = (instr & ~kCondMask) | cond; 3836 instr = (instr & ~kCondMask) | cond;
3836 masm_.emit(instr); 3837 masm_.emit(instr);
3837 } 3838 }
3838 3839
3839 3840
3840 } } // namespace v8::internal 3841 } } // namespace v8::internal
3841 3842
3842 #endif // V8_TARGET_ARCH_ARM 3843 #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