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

Side by Side Diff: src/mips/macro-assembler-mips.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 | « src/ia32/macro-assembler-ia32.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 // 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 2864 matching lines...) Expand 10 before | Expand all | Expand 10 after
2875 JumpToHandlerEntry(); 2875 JumpToHandlerEntry();
2876 } 2876 }
2877 2877
2878 2878
2879 void MacroAssembler::Allocate(int object_size, 2879 void MacroAssembler::Allocate(int object_size,
2880 Register result, 2880 Register result,
2881 Register scratch1, 2881 Register scratch1,
2882 Register scratch2, 2882 Register scratch2,
2883 Label* gc_required, 2883 Label* gc_required,
2884 AllocationFlags flags) { 2884 AllocationFlags flags) {
2885 ASSERT(object_size <= Page::kMaxNonCodeHeapObjectSize);
2885 if (!FLAG_inline_new) { 2886 if (!FLAG_inline_new) {
2886 if (emit_debug_code()) { 2887 if (emit_debug_code()) {
2887 // Trash the registers to simulate an allocation failure. 2888 // Trash the registers to simulate an allocation failure.
2888 li(result, 0x7091); 2889 li(result, 0x7091);
2889 li(scratch1, 0x7191); 2890 li(scratch1, 0x7191);
2890 li(scratch2, 0x7291); 2891 li(scratch2, 0x7291);
2891 } 2892 }
2892 jmp(gc_required); 2893 jmp(gc_required);
2893 return; 2894 return;
2894 } 2895 }
(...skipping 2672 matching lines...) Expand 10 before | Expand all | Expand 10 after
5567 opcode == BGTZL); 5568 opcode == BGTZL);
5568 opcode = (cond == eq) ? BEQ : BNE; 5569 opcode = (cond == eq) ? BEQ : BNE;
5569 instr = (instr & ~kOpcodeMask) | opcode; 5570 instr = (instr & ~kOpcodeMask) | opcode;
5570 masm_.emit(instr); 5571 masm_.emit(instr);
5571 } 5572 }
5572 5573
5573 5574
5574 } } // namespace v8::internal 5575 } } // namespace v8::internal
5575 5576
5576 #endif // V8_TARGET_ARCH_MIPS 5577 #endif // V8_TARGET_ARCH_MIPS
OLDNEW
« no previous file with comments | « src/ia32/macro-assembler-ia32.cc ('k') | src/x64/macro-assembler-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698