Don't rely on fixed offsets to patch method checks
authorbarraclough@apple.com <barraclough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Apr 2012 23:44:25 +0000 (23:44 +0000)
committerbarraclough@apple.com <barraclough@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 13 Apr 2012 23:44:25 +0000 (23:44 +0000)
commit26677c3d52db4aaba25f52e4d5f970232aa68061
treec2e1d0321c317bd76d95b598da490417ae7c0c59
parentfcb024c42c5a914f4da8591f12bdd4e6965c76a8
Don't rely on fixed offsets to patch method checks
https://bugs.webkit.org/show_bug.cgi?id=83958

Reviewed by Oliver Hunt.

* bytecode/StructureStubInfo.h:
    - Add fields for the method check info.
* jit/JIT.cpp:
(JSC::PropertyStubCompilationInfo::copyToStubInfo):
    - Store the offsets on the stub info, instead of asserting.
* jit/JIT.h:
    - Delete all the method check related offsets.
* jit/JITPropertyAccess.cpp:
(JSC::JIT::patchMethodCallProto):
    - Use the offset from the stubInfo.
* jit/JITStubs.cpp:
(JSC::DEFINE_STUB_FUNCTION):
    - Pass the stubInfo to patchMethodCallProto.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@114183 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/bytecode/StructureStubInfo.h
Source/JavaScriptCore/jit/JIT.cpp
Source/JavaScriptCore/jit/JIT.h
Source/JavaScriptCore/jit/JITPropertyAccess.cpp
Source/JavaScriptCore/jit/JITStubs.cpp