| Index: src/interpreter/bytecode-generator.cc
|
| diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc
|
| index 7130d5204fd453af6f4b6c0598ddc71f7a67455b..a2c9c82117a128782fe85564b3065b7a7e0d0435 100644
|
| --- a/src/interpreter/bytecode-generator.cc
|
| +++ b/src/interpreter/bytecode-generator.cc
|
| @@ -1591,7 +1591,7 @@ void BytecodeGenerator::VisitRegExpLiteral(RegExpLiteral* expr) {
|
| }
|
|
|
| void BytecodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
|
| - // Copy the literal boilerplate.
|
| + // Deep-copy the literal boilerplate.
|
| uint8_t flags = CreateObjectLiteralFlags::Encode(
|
| FastCloneShallowObjectStub::IsSupported(expr),
|
| FastCloneShallowObjectStub::PropertiesCount(expr->properties_count()),
|
| @@ -1769,12 +1769,8 @@ void BytecodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
|
|
|
| void BytecodeGenerator::VisitArrayLiteral(ArrayLiteral* expr) {
|
| // Deep-copy the literal boilerplate.
|
| - int runtime_flags = expr->ComputeFlags();
|
| - bool use_fast_shallow_clone =
|
| - (runtime_flags & ArrayLiteral::kShallowElements) != 0 &&
|
| - expr->values()->length() <= JSArray::kInitialMaxFastElementArray;
|
| - uint8_t flags =
|
| - CreateArrayLiteralFlags::Encode(use_fast_shallow_clone, runtime_flags);
|
| + uint8_t flags = CreateArrayLiteralFlags::Encode(
|
| + FastCloneShallowArrayStub::IsSupported(expr), expr->ComputeFlags());
|
| builder()->CreateArrayLiteral(expr->constant_elements(),
|
| expr->literal_index(), flags);
|
| Register index, literal;
|
|
|