| Index: src/interpreter/bytecode-generator.cc
|
| diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc
|
| index a4e9e1a5e8ed38920be57924c5d8f3d187da2719..270fd42712aaaba6374d0d7c633ddbcea33c3cc0 100644
|
| --- a/src/interpreter/bytecode-generator.cc
|
| +++ b/src/interpreter/bytecode-generator.cc
|
| @@ -1746,6 +1746,7 @@ void BytecodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
|
| break;
|
| }
|
| case ObjectLiteral::Property::PROTOTYPE: {
|
| + if (property->IsNullPrototype()) break;
|
| DCHECK(property->emit_store());
|
| RegisterList args = register_allocator()->NewRegisterList(2);
|
| builder()->MoveRegister(literal, args[0]);
|
| @@ -1795,7 +1796,9 @@ void BytecodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
|
| ObjectLiteral::Property* property = expr->properties()->at(property_index);
|
| RegisterAllocationScope inner_register_scope(this);
|
|
|
| - if (property->kind() == ObjectLiteral::Property::PROTOTYPE) {
|
| + if (property->IsPrototype()) {
|
| + // __proto__:null is handled by CreateObjectLiteral.
|
| + if (property->IsNullPrototype()) continue;
|
| DCHECK(property->emit_store());
|
| RegisterList args = register_allocator()->NewRegisterList(2);
|
| builder()->MoveRegister(literal, args[0]);
|
|
|