Commit 8941cff6 authored by palfia@homejinni.com's avatar palfia@homejinni.com

MIPS: Before comparing input with a constant smi in...

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
parent 84188e34
...@@ -5120,6 +5120,7 @@ static void GenerateRecordCallTarget(MacroAssembler* masm) { ...@@ -5120,6 +5120,7 @@ static void GenerateRecordCallTarget(MacroAssembler* masm) {
Handle<Object> terminal_kind_sentinel = Handle<Object> terminal_kind_sentinel =
TypeFeedbackCells::MonomorphicArraySentinel(masm->isolate(), TypeFeedbackCells::MonomorphicArraySentinel(masm->isolate(),
LAST_FAST_ELEMENTS_KIND); LAST_FAST_ELEMENTS_KIND);
__ JumpIfNotSmi(a3, &miss);
__ Branch(&miss, gt, a3, Operand(terminal_kind_sentinel)); __ Branch(&miss, gt, a3, Operand(terminal_kind_sentinel));
// Make sure the function is the Array() function // Make sure the function is the Array() function
__ LoadArrayFunction(a3); __ LoadArrayFunction(a3);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment