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

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

Issue 13866005: Activate generation of Crankshafted KeyedStores (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix tests Created 7 years, 8 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/lithium-codegen-ia32.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 5094 matching lines...) Expand 10 before | Expand all | Expand 10 after
5105 new(zone()) DeferredAllocate(this, instr); 5105 new(zone()) DeferredAllocate(this, instr);
5106 5106
5107 Register result = ToRegister(instr->result()); 5107 Register result = ToRegister(instr->result());
5108 Register temp = ToRegister(instr->temp()); 5108 Register temp = ToRegister(instr->temp());
5109 5109
5110 // Allocate memory for the object. 5110 // Allocate memory for the object.
5111 AllocationFlags flags = TAG_OBJECT; 5111 AllocationFlags flags = TAG_OBJECT;
5112 if (instr->hydrogen()->MustAllocateDoubleAligned()) { 5112 if (instr->hydrogen()->MustAllocateDoubleAligned()) {
5113 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); 5113 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT);
5114 } 5114 }
5115 if (instr->hydrogen()->CanAllocateInOldPointerSpace()) {
5116 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE);
5117 }
5115 if (instr->size()->IsConstantOperand()) { 5118 if (instr->size()->IsConstantOperand()) {
5116 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); 5119 int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
5117 if (instr->hydrogen()->CanAllocateInOldPointerSpace()) {
5118 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE);
5119 }
5120 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags); 5120 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags);
5121 } else { 5121 } else {
5122 Register size = ToRegister(instr->size()); 5122 Register size = ToRegister(instr->size());
5123 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags); 5123 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags);
5124 } 5124 }
5125 5125
5126 __ bind(deferred->exit()); 5126 __ bind(deferred->exit());
5127 } 5127 }
5128 5128
5129 5129
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
5845 FixedArray::kHeaderSize - kPointerSize)); 5845 FixedArray::kHeaderSize - kPointerSize));
5846 __ bind(&done); 5846 __ bind(&done);
5847 } 5847 }
5848 5848
5849 5849
5850 #undef __ 5850 #undef __
5851 5851
5852 } } // namespace v8::internal 5852 } } // namespace v8::internal
5853 5853
5854 #endif // V8_TARGET_ARCH_X64 5854 #endif // V8_TARGET_ARCH_X64
OLDNEW
« no previous file with comments | « src/ia32/lithium-codegen-ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698