Index: src/objects.cc |
=================================================================== |
--- src/objects.cc (revision 10013) |
+++ src/objects.cc (working copy) |
@@ -5455,7 +5455,7 @@ |
if (!maybe_array->ToObject(&array)) return maybe_array; |
} |
result->set(kBitField3StorageIndex, Smi::FromInt(0)); |
- result->set(kContentArrayIndex, array); |
+ result->set(kContentArrayIndex, array, SKIP_WRITE_BARRIER); |
Lasse Reichstein
2011/11/18 12:26:28
Do we know that result is in NewSpace? What if it'
Erik Corry
2011/11/18 13:42:24
I reverted this part of the change.
|
result->set(kEnumerationIndexIndex, |
Smi::FromInt(PropertyDetails::kInitialIndex)); |
return result; |
@@ -9986,8 +9986,8 @@ |
set(j, temp); |
if (this != numbers) { |
temp = numbers->get(i); |
- numbers->set(i, numbers->get(j)); |
- numbers->set(j, temp); |
+ numbers->set(i, Smi::cast(numbers->get(j))); |
+ numbers->set(j, Smi::cast(temp)); |
} |
} |