From: yangguo@chromium.org Date: Tue, 13 Aug 2013 16:58:14 +0000 (+0000) Subject: Use Cell instead of PropertyCell in DoCheckFunction (in case of new space object). X-Git-Tag: upstream/4.7.83~12957 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1041f58e8f244011c4c692fd6dc5d25cdc9b305c;p=platform%2Fupstream%2Fv8.git Use Cell instead of PropertyCell in DoCheckFunction (in case of new space object). R=danno@chromium.org BUG= Review URL: https://codereview.chromium.org/23036004 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@16175 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/arm/lithium-codegen-arm.cc b/src/arm/lithium-codegen-arm.cc index 19bfecc..83567e9 100644 --- a/src/arm/lithium-codegen-arm.cc +++ b/src/arm/lithium-codegen-arm.cc @@ -5150,7 +5150,7 @@ void LCodeGen::DoCheckFunction(LCheckFunction* instr) { AllowDeferredHandleDereference smi_check; if (isolate()->heap()->InNewSpace(*target)) { Register reg = ToRegister(instr->value()); - Handle cell = isolate()->factory()->NewPropertyCell(target); + Handle cell = isolate()->factory()->NewCell(target); __ mov(ip, Operand(Handle(cell))); __ ldr(ip, FieldMemOperand(ip, Cell::kValueOffset)); __ cmp(reg, ip); diff --git a/src/mips/lithium-codegen-mips.cc b/src/mips/lithium-codegen-mips.cc index b1ca965..34ff1fa 100644 --- a/src/mips/lithium-codegen-mips.cc +++ b/src/mips/lithium-codegen-mips.cc @@ -5121,7 +5121,7 @@ void LCodeGen::DoCheckFunction(LCheckFunction* instr) { AllowDeferredHandleDereference smi_check; if (isolate()->heap()->InNewSpace(*target)) { Register reg = ToRegister(instr->value()); - Handle cell = isolate()->factory()->NewPropertyCell(target); + Handle cell = isolate()->factory()->NewCell(target); __ li(at, Operand(Handle(cell))); __ lw(at, FieldMemOperand(at, Cell::kValueOffset)); DeoptimizeIf(ne, instr->environment(), reg,