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

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

Issue 12440041: 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
OLDNEW
1 // Copyright 2013 the V8 project authors. All rights reserved. 1 // Copyright 2013 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 5111 matching lines...) Expand 10 before | Expand all | Expand 10 after
5122 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); 5122 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT);
5123 } 5123 }
5124 if (instr->size()->IsConstantOperand()) { 5124 if (instr->size()->IsConstantOperand()) {
5125 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); 5125 int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
5126 if (instr->hydrogen()->CanAllocateInOldPointerSpace()) { 5126 if (instr->hydrogen()->CanAllocateInOldPointerSpace()) {
5127 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); 5127 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE);
5128 } 5128 }
5129 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags); 5129 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags);
5130 } else { 5130 } else {
5131 Register size = ToRegister(instr->size()); 5131 Register size = ToRegister(instr->size());
5132 __ AllocateInNewSpace(size, result, temp, no_reg, deferred->entry(), flags); 5132 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags);
5133 } 5133 }
5134 5134
5135 __ bind(deferred->exit()); 5135 __ bind(deferred->exit());
5136 } 5136 }
5137 5137
5138 5138
5139 void LCodeGen::DoDeferredAllocate(LAllocate* instr) { 5139 void LCodeGen::DoDeferredAllocate(LAllocate* instr) {
5140 Register size = ToRegister(instr->size()); 5140 Register size = ToRegister(instr->size());
5141 Register result = ToRegister(instr->result()); 5141 Register result = ToRegister(instr->result());
5142 5142
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
5848 FixedArray::kHeaderSize - kPointerSize)); 5848 FixedArray::kHeaderSize - kPointerSize));
5849 __ bind(&done); 5849 __ bind(&done);
5850 } 5850 }
5851 5851
5852 5852
5853 #undef __ 5853 #undef __
5854 5854
5855 } } // namespace v8::internal 5855 } } // namespace v8::internal
5856 5856
5857 #endif // V8_TARGET_ARCH_X64 5857 #endif // V8_TARGET_ARCH_X64
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698