From 9440ed3e988206c9d00f80611229e82ee7bdf6ce Mon Sep 17 00:00:00 2001 From: "palfia@homejinni.com" Date: Mon, 7 Jul 2014 20:28:05 +0000 Subject: [PATCH] MIPS: Fix computed properties on object literals with a double as propertyname. Port r22255 (cf84805) BUG=390732 LOG=y R=palfia@homejinni.com Review URL: https://codereview.chromium.org/370363002 Patch from Balazs Kilvady . git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@22256 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/mips/full-codegen-mips.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mips/full-codegen-mips.cc b/src/mips/full-codegen-mips.cc index 31df789f57..11a67b7adb 100644 --- a/src/mips/full-codegen-mips.cc +++ b/src/mips/full-codegen-mips.cc @@ -1705,9 +1705,9 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) { VisitForStackValue(key); VisitForStackValue(value); if (property->emit_store()) { - __ li(a0, Operand(Smi::FromInt(NONE))); // PropertyAttributes. + __ li(a0, Operand(Smi::FromInt(SLOPPY))); // PropertyAttributes. __ push(a0); - __ CallRuntime(Runtime::kAddProperty, 4); + __ CallRuntime(Runtime::kSetProperty, 4); } else { __ Drop(3); }