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
This commit is contained in:
parent
84188e348b
commit
8941cff652
@ -5120,6 +5120,7 @@ static void GenerateRecordCallTarget(MacroAssembler* masm) {
|
||||
Handle<Object> 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);
|
||||
|
Loading…
Reference in New Issue
Block a user