Need earlier cell test
authoroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Apr 2014 23:14:16 +0000 (23:14 +0000)
committeroliver@apple.com <oliver@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 25 Apr 2014 23:14:16 +0000 (23:14 +0000)
commitfce20b6cc68b0b69e42259ab49e065ef3acd8db0
treed77c395af541ac06e7e81451a3ab3feff11947a4
parent7020c0d4943bc9fce9cb8b48306bac9935bfb8b1
Need earlier cell test
https://bugs.webkit.org/show_bug.cgi?id=132211

Reviewed by Mark Lam.

Source/JavaScriptCore:
Move cell test to before the function call repatch
location, as the repatch logic for 32bit assumes that the
caller will already have performed a cell check.

* jit/JITCall32_64.cpp:
(JSC::JIT::compileOpCall):

LayoutTests:
Tests

* js/regress/polymorphic-array-call-expected.txt: Added.
* js/regress/polymorphic-array-call.html: Added.
* js/regress/script-tests/polymorphic-array-call.js: Added.
(func.C.this.m):
(func.C):
(func):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@167832 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/js/regress/polymorphic-array-call-expected.txt [new file with mode: 0644]
LayoutTests/js/regress/polymorphic-array-call.html [new file with mode: 0644]
LayoutTests/js/regress/script-tests/polymorphic-array-call.js [new file with mode: 0644]
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/jit/JITCall32_64.cpp