From 8941cff652ecce704fad61a3ba7d791c34704579 Mon Sep 17 00:00:00 2001 From: "palfia@homejinni.com" Date: Fri, 3 May 2013 23:51:25 +0000 Subject: [PATCH] MIPS: Before comparing input with a constant smi in GenerateRecordCallTarget(), make sure the input register is actually a smi. Port r14547 (a2e764c7) BUG= Review URL: https://codereview.chromium.org/14597006 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@14548 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- src/mips/code-stubs-mips.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc index a81c072..20d89a6 100644 --- a/src/mips/code-stubs-mips.cc +++ b/src/mips/code-stubs-mips.cc @@ -5120,6 +5120,7 @@ static void GenerateRecordCallTarget(MacroAssembler* masm) { Handle terminal_kind_sentinel = TypeFeedbackCells::MonomorphicArraySentinel(masm->isolate(), LAST_FAST_ELEMENTS_KIND); + __ JumpIfNotSmi(a3, &miss); __ Branch(&miss, gt, a3, Operand(terminal_kind_sentinel)); // Make sure the function is the Array() function __ LoadArrayFunction(a3); -- 2.7.4