Index: src/mips/full-codegen-mips.cc |
diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc |
index 03f2774f48c359ab16ca4583c1e55706d36ffaba..361f8f7e5ee1c06d569943bfb58268731798f3a8 100644 |
--- a/src/mips/full-codegen-mips.cc |
+++ b/src/mips/full-codegen-mips.cc |
@@ -1653,8 +1653,6 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
} |
break; |
} |
- // Fall through. |
- case ObjectLiteral::Property::PROTOTYPE: |
// Duplicate receiver on stack. |
__ lw(a0, MemOperand(sp)); |
__ push(a0); |
@@ -1668,6 +1666,17 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { |
__ Drop(3); |
} |
break; |
+ case ObjectLiteral::Property::PROTOTYPE: |
+ // Duplicate receiver on stack. |
+ __ lw(a0, MemOperand(sp)); |
+ __ push(a0); |
+ VisitForStackValue(value); |
+ if (property->emit_store()) { |
+ __ CallRuntime(Runtime::kSetPrototype, 2); |
+ } else { |
+ __ Drop(2); |
+ } |
+ break; |
case ObjectLiteral::Property::GETTER: |
accessor_table.lookup(key)->second->getter = value; |
break; |