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

Side by Side Diff: src/mips/lithium-codegen-mips.cc

Issue 12855004: MIPS: Generalizing remaining Allocate functions in the macro assemblers used in pretenuring. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years, 9 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/mips/codegen-mips.cc ('k') | src/mips/macro-assembler-mips.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 5333 matching lines...) Expand 10 before | Expand all | Expand 10 after
5344 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); 5344 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT);
5345 } 5345 }
5346 if (instr->size()->IsConstantOperand()) { 5346 if (instr->size()->IsConstantOperand()) {
5347 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); 5347 int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
5348 if (instr->hydrogen()->CanAllocateInOldPointerSpace()) { 5348 if (instr->hydrogen()->CanAllocateInOldPointerSpace()) {
5349 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); 5349 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE);
5350 } 5350 }
5351 __ Allocate(size, result, scratch, scratch2, deferred->entry(), flags); 5351 __ Allocate(size, result, scratch, scratch2, deferred->entry(), flags);
5352 } else { 5352 } else {
5353 Register size = ToRegister(instr->size()); 5353 Register size = ToRegister(instr->size());
5354 __ AllocateInNewSpace(size, 5354 __ Allocate(size,
5355 result, 5355 result,
5356 scratch, 5356 scratch,
5357 scratch2, 5357 scratch2,
5358 deferred->entry(), 5358 deferred->entry(),
5359 flags); 5359 flags);
5360 } 5360 }
5361 5361
5362 __ bind(deferred->exit()); 5362 __ bind(deferred->exit());
5363 } 5363 }
5364 5364
5365 5365
5366 void LCodeGen::DoDeferredAllocate(LAllocate* instr) { 5366 void LCodeGen::DoDeferredAllocate(LAllocate* instr) {
5367 Register size = ToRegister(instr->size()); 5367 Register size = ToRegister(instr->size());
5368 Register result = ToRegister(instr->result()); 5368 Register result = ToRegister(instr->result());
5369 5369
(...skipping 738 matching lines...) Expand 10 before | Expand all | Expand 10 after
6108 __ Subu(scratch, result, scratch); 6108 __ Subu(scratch, result, scratch);
6109 __ lw(result, FieldMemOperand(scratch, 6109 __ lw(result, FieldMemOperand(scratch,
6110 FixedArray::kHeaderSize - kPointerSize)); 6110 FixedArray::kHeaderSize - kPointerSize));
6111 __ bind(&done); 6111 __ bind(&done);
6112 } 6112 }
6113 6113
6114 6114
6115 #undef __ 6115 #undef __
6116 6116
6117 } } // namespace v8::internal 6117 } } // namespace v8::internal
OLDNEW
« no previous file with comments | « src/mips/codegen-mips.cc ('k') | src/mips/macro-assembler-mips.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698