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

Side by Side Diff: src/mips/macro-assembler-mips.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 | « src/mark-compact.cc ('k') | src/objects.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 2826 matching lines...) Expand 10 before | Expand all | Expand 10 after
2837 JumpToHandlerEntry(); 2837 JumpToHandlerEntry();
2838 } 2838 }
2839 2839
2840 2840
2841 void MacroAssembler::Allocate(int object_size, 2841 void MacroAssembler::Allocate(int object_size,
2842 Register result, 2842 Register result,
2843 Register scratch1, 2843 Register scratch1,
2844 Register scratch2, 2844 Register scratch2,
2845 Label* gc_required, 2845 Label* gc_required,
2846 AllocationFlags flags) { 2846 AllocationFlags flags) {
2847 ASSERT(object_size <= Page::kMaxNonCodeHeapObjectSize); 2847 ASSERT(object_size <= Page::kMaxRegularHeapObjectSize);
2848 if (!FLAG_inline_new) { 2848 if (!FLAG_inline_new) {
2849 if (emit_debug_code()) { 2849 if (emit_debug_code()) {
2850 // Trash the registers to simulate an allocation failure. 2850 // Trash the registers to simulate an allocation failure.
2851 li(result, 0x7091); 2851 li(result, 0x7091);
2852 li(scratch1, 0x7191); 2852 li(scratch1, 0x7191);
2853 li(scratch2, 0x7291); 2853 li(scratch2, 0x7291);
2854 } 2854 }
2855 jmp(gc_required); 2855 jmp(gc_required);
2856 return; 2856 return;
2857 } 2857 }
(...skipping 2887 matching lines...) Expand 10 before | Expand all | Expand 10 after
5745 opcode == BGTZL); 5745 opcode == BGTZL);
5746 opcode = (cond == eq) ? BEQ : BNE; 5746 opcode = (cond == eq) ? BEQ : BNE;
5747 instr = (instr & ~kOpcodeMask) | opcode; 5747 instr = (instr & ~kOpcodeMask) | opcode;
5748 masm_.emit(instr); 5748 masm_.emit(instr);
5749 } 5749 }
5750 5750
5751 5751
5752 } } // namespace v8::internal 5752 } } // namespace v8::internal
5753 5753
5754 #endif // V8_TARGET_ARCH_MIPS 5754 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/mark-compact.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698