| Index: src/interpreter/bytecode-generator.cc
|
| diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc
|
| index 6c51499740581ec24bd49806ee881bdf76d08d6b..d3fc6800bdccf48ef5c805862e4fc0343650ed0b 100644
|
| --- a/src/interpreter/bytecode-generator.cc
|
| +++ b/src/interpreter/bytecode-generator.cc
|
| @@ -1388,7 +1388,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
|
| @@ -1674,7 +1674,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);
|
|
|