Commit 008e73d6 authored by danno@chromium.org's avatar danno@chromium.org

Activate generation of Crankshafted KeyedStores

R=mvstanton@chromium.org

Review URL: https://codereview.chromium.org/13866005

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14186 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent 9f77ba9f
...@@ -5477,11 +5477,11 @@ void LCodeGen::DoAllocate(LAllocate* instr) { ...@@ -5477,11 +5477,11 @@ void LCodeGen::DoAllocate(LAllocate* instr) {
if (instr->hydrogen()->MustAllocateDoubleAligned()) { if (instr->hydrogen()->MustAllocateDoubleAligned()) {
flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT);
} }
if (instr->hydrogen()->CanAllocateInOldPointerSpace()) {
flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE);
}
if (instr->size()->IsConstantOperand()) { if (instr->size()->IsConstantOperand()) {
int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
if (instr->hydrogen()->CanAllocateInOldPointerSpace()) {
flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE);
}
__ Allocate(size, result, scratch, scratch2, deferred->entry(), flags); __ Allocate(size, result, scratch, scratch2, deferred->entry(), flags);
} else { } else {
Register size = ToRegister(instr->size()); Register size = ToRegister(instr->size());
......
...@@ -168,7 +168,7 @@ DEFINE_bool(packed_arrays, true, "optimizes arrays that have no holes") ...@@ -168,7 +168,7 @@ DEFINE_bool(packed_arrays, true, "optimizes arrays that have no holes")
DEFINE_bool(smi_only_arrays, true, "tracks arrays with only smi values") DEFINE_bool(smi_only_arrays, true, "tracks arrays with only smi values")
DEFINE_bool(compiled_transitions, false, "use optimizing compiler to " DEFINE_bool(compiled_transitions, false, "use optimizing compiler to "
"generate array elements transition stubs") "generate array elements transition stubs")
DEFINE_bool(compiled_keyed_stores, false, "use optimizing compiler to " DEFINE_bool(compiled_keyed_stores, true, "use optimizing compiler to "
"generate keyed store stubs") "generate keyed store stubs")
DEFINE_bool(clever_optimizations, DEFINE_bool(clever_optimizations,
true, true,
......
...@@ -6001,11 +6001,11 @@ void LCodeGen::DoAllocate(LAllocate* instr) { ...@@ -6001,11 +6001,11 @@ void LCodeGen::DoAllocate(LAllocate* instr) {
if (instr->hydrogen()->MustAllocateDoubleAligned()) { if (instr->hydrogen()->MustAllocateDoubleAligned()) {
flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT);
} }
if (instr->hydrogen()->CanAllocateInOldPointerSpace()) {
flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE);
}
if (instr->size()->IsConstantOperand()) { if (instr->size()->IsConstantOperand()) {
int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
if (instr->hydrogen()->CanAllocateInOldPointerSpace()) {
flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE);
}
__ Allocate(size, result, temp, no_reg, deferred->entry(), flags); __ Allocate(size, result, temp, no_reg, deferred->entry(), flags);
} else { } else {
Register size = ToRegister(instr->size()); Register size = ToRegister(instr->size());
......
...@@ -5112,11 +5112,11 @@ void LCodeGen::DoAllocate(LAllocate* instr) { ...@@ -5112,11 +5112,11 @@ void LCodeGen::DoAllocate(LAllocate* instr) {
if (instr->hydrogen()->MustAllocateDoubleAligned()) { if (instr->hydrogen()->MustAllocateDoubleAligned()) {
flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT);
} }
if (instr->hydrogen()->CanAllocateInOldPointerSpace()) {
flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE);
}
if (instr->size()->IsConstantOperand()) { if (instr->size()->IsConstantOperand()) {
int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
if (instr->hydrogen()->CanAllocateInOldPointerSpace()) {
flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE);
}
__ Allocate(size, result, temp, no_reg, deferred->entry(), flags); __ Allocate(size, result, temp, no_reg, deferred->entry(), flags);
} else { } else {
Register size = ToRegister(instr->size()); Register size = ToRegister(instr->size());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment