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

Side by Side Diff: src/ia32/lithium-codegen-ia32.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/flag-definitions.h ('k') | src/x64/lithium-codegen-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 5983 matching lines...) Expand 10 before | Expand all | Expand 10 after
5994 new(zone()) DeferredAllocate(this, instr); 5994 new(zone()) DeferredAllocate(this, instr);
5995 5995
5996 Register result = ToRegister(instr->result()); 5996 Register result = ToRegister(instr->result());
5997 Register temp = ToRegister(instr->temp()); 5997 Register temp = ToRegister(instr->temp());
5998 5998
5999 // Allocate memory for the object. 5999 // Allocate memory for the object.
6000 AllocationFlags flags = TAG_OBJECT; 6000 AllocationFlags flags = TAG_OBJECT;
6001 if (instr->hydrogen()->MustAllocateDoubleAligned()) { 6001 if (instr->hydrogen()->MustAllocateDoubleAligned()) {
6002 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); 6002 flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT);
6003 } 6003 }
6004 if (instr->hydrogen()->CanAllocateInOldPointerSpace()) {
6005 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE);
6006 }
6004 if (instr->size()->IsConstantOperand()) { 6007 if (instr->size()->IsConstantOperand()) {
6005 int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); 6008 int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
6006 if (instr->hydrogen()->CanAllocateInOldPointerSpace()) {
6007 flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE);
6008 }
6009 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags); 6009 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags);
6010 } else { 6010 } else {
6011 Register size = ToRegister(instr->size()); 6011 Register size = ToRegister(instr->size());
6012 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags); 6012 __ Allocate(size, result, temp, no_reg, deferred->entry(), flags);
6013 } 6013 }
6014 6014
6015 __ bind(deferred->exit()); 6015 __ bind(deferred->exit());
6016 } 6016 }
6017 6017
6018 6018
(...skipping 724 matching lines...) Expand 10 before | Expand all | Expand 10 after
6743 FixedArray::kHeaderSize - kPointerSize)); 6743 FixedArray::kHeaderSize - kPointerSize));
6744 __ bind(&done); 6744 __ bind(&done);
6745 } 6745 }
6746 6746
6747 6747
6748 #undef __ 6748 #undef __
6749 6749
6750 } } // namespace v8::internal 6750 } } // namespace v8::internal
6751 6751
6752 #endif // V8_TARGET_ARCH_IA32 6752 #endif // V8_TARGET_ARCH_IA32
OLDNEW
« no previous file with comments | « src/flag-definitions.h ('k') | src/x64/lithium-codegen-x64.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698