Changeset 64618 in webkit
- Timestamp:
- Aug 3, 2010 7:32:10 PM (14 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/ChangeLog
r64608 r64618 1 2010-08-03 Patrick Gansterer <paroga@paroga.com> 2 3 Reviewed by Gavin Barraclough. 4 5 Implement DEFINE_STUB_FUNCTION for WinCE. 6 https://bugs.webkit.org/show_bug.cgi?id=34953 7 8 * jit/JITStubs.cpp: 9 (JSC::): 10 (JSC::DEFINE_STUB_FUNCTION): 11 1 12 2010-08-02 Gavin Barraclough <barraclough@apple.com> 2 13 -
trunk/JavaScriptCore/jit/JITStubs.cpp
r64608 r64618 304 304 } 305 305 } 306 307 #elif COMPILER(MSVC) && CPU(ARM_TRADITIONAL) 308 309 #define THUNK_RETURN_ADDRESS_OFFSET 64 310 #define PRESERVEDR4_OFFSET 68 311 // See DEFINE_STUB_FUNCTION for more information. 306 312 307 313 #else … … 650 656 } 651 657 658 #elif COMPILER(MSVC) && CPU(ARM_TRADITIONAL) 659 660 #define THUNK_RETURN_ADDRESS_OFFSET 32 661 #define PRESERVEDR4_OFFSET 36 662 // See DEFINE_STUB_FUNCTION for more information. 663 652 664 #else 653 665 #error "JIT not supported on this platform." … … 1136 1148 /* Include the generated file */ 1137 1149 #include "GeneratedJITStubs_RVCT.h" 1150 1151 #elif CPU(ARM_TRADITIONAL) && COMPILER(MSVC) 1152 1153 #define DEFINE_STUB_FUNCTION(rtype, op) extern "C" rtype JITStubThunked_##op(STUB_ARGS_DECLARATION) 1154 1155 /* The following is a workaround for MSVC toolchain; inline assembler is not supported */ 1156 1157 /* The following section is a template to generate code for GeneratedJITStubs_MSVC.asm */ 1158 /* The pattern "#xxx#" will be replaced with "xxx" */ 1159 1160 /* 1161 MSVC_BEGIN( AREA Trampoline, CODE) 1162 MSVC_BEGIN() 1163 MSVC_BEGIN( EXPORT ctiTrampoline) 1164 MSVC_BEGIN( EXPORT ctiVMThrowTrampoline) 1165 MSVC_BEGIN( EXPORT ctiOpThrowNotCaught) 1166 MSVC_BEGIN() 1167 MSVC_BEGIN(ctiTrampoline PROC) 1168 MSVC_BEGIN( stmdb sp!, {r1-r3}) 1169 MSVC_BEGIN( stmdb sp!, {r4-r8, lr}) 1170 MSVC_BEGIN( sub sp, sp, ##offset#+4) 1171 MSVC_BEGIN( mov r4, r2) 1172 MSVC_BEGIN( mov r5, #512) 1173 MSVC_BEGIN( ; r0 contains the code) 1174 MSVC_BEGIN( mov lr, pc) 1175 MSVC_BEGIN( bx r0) 1176 MSVC_BEGIN( add sp, sp, ##offset#+4) 1177 MSVC_BEGIN( ldmia sp!, {r4-r8, lr}) 1178 MSVC_BEGIN( add sp, sp, #12) 1179 MSVC_BEGIN( bx lr) 1180 MSVC_BEGIN(ctiTrampoline ENDP) 1181 MSVC_BEGIN() 1182 MSVC_BEGIN(ctiVMThrowTrampoline PROC) 1183 MSVC_BEGIN( mov r0, sp) 1184 MSVC_BEGIN( mov lr, pc) 1185 MSVC_BEGIN( bl cti_vm_throw) 1186 MSVC_BEGIN(ctiOpThrowNotCaught) 1187 MSVC_BEGIN( add sp, sp, ##offset#+4) 1188 MSVC_BEGIN( ldmia sp!, {r4-r8, lr}) 1189 MSVC_BEGIN( add sp, sp, #12) 1190 MSVC_BEGIN( bx lr) 1191 MSVC_BEGIN(ctiVMThrowTrampoline ENDP) 1192 MSVC_BEGIN() 1193 1194 MSVC( EXPORT cti_#op#) 1195 MSVC( IMPORT JITStubThunked_#op#) 1196 MSVC(cti_#op# PROC) 1197 MSVC( str lr, [sp, ##offset#]) 1198 MSVC( bl JITStubThunked_#op#) 1199 MSVC( ldr lr, [sp, ##offset#]) 1200 MSVC( bx lr) 1201 MSVC(cti_#op# ENDP) 1202 MSVC() 1203 1204 MSVC_END( END) 1205 */ 1138 1206 1139 1207 #else
Note: See TracChangeset
for help on using the changeset viewer.