| Index: src/interpreter/bytecode-generator.cc
|
| diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc
|
| index e2d35e4034f92eb9e99c0d92ecd6915589d5a4c1..2a28f1c08c51b821a56e7b1ff10428726106b29e 100644
|
| --- a/src/interpreter/bytecode-generator.cc
|
| +++ b/src/interpreter/bytecode-generator.cc
|
| @@ -1389,7 +1389,7 @@ void BytecodeGenerator::VisitClassLiteralProperties(ClassLiteral* expr,
|
| }
|
|
|
| VisitForAccumulatorValue(property->key());
|
| - builder()->CastAccumulatorToName().StoreAccumulatorInRegister(key);
|
| + builder()->CastAccumulatorToName(key);
|
| // The static prototype property is read only. We handle the non computed
|
| // property name case in the parser. Since this is the only case where we
|
| // need to check for an own read only property we special case this so we do
|
| @@ -1675,7 +1675,7 @@ void BytecodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
|
|
|
| builder()->MoveRegister(literal, literal_argument);
|
| VisitForAccumulatorValue(property->key());
|
| - builder()->CastAccumulatorToName().StoreAccumulatorInRegister(key);
|
| + builder()->CastAccumulatorToName(key);
|
| VisitForAccumulatorValue(property->value());
|
| builder()->StoreAccumulatorInRegister(value);
|
| VisitSetHomeObject(value, literal, property);
|
|
|