mirror of
https://github.com/status-im/react-native.git
synced 2025-02-26 16:10:58 +00:00
Revert FBReactKit: use indirect jumps to external functions
Reviewed By: rnystrom Differential Revision: D3117661 fb-gh-sync-id: 05b7f796b58656aa13e4be78a562e07d18cf9488 fbshipit-source-id: 05b7f796b58656aa13e4be78a562e07d18cf9488
This commit is contained in:
parent
d3b8846400
commit
9d49cf095b
@ -35,10 +35,7 @@ SYMBOL_NAME(RCTProfileTrampoline):
|
|||||||
* profile
|
* profile
|
||||||
*/
|
*/
|
||||||
mov r0, #0xc
|
mov r0, #0xc
|
||||||
|
bl SYMBOL_NAME(malloc)
|
||||||
ldr ip, LCPI_malloc
|
|
||||||
blx ip
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* r4 is the callee saved register we'll use to refer to the allocated memory,
|
* r4 is the callee saved register we'll use to refer to the allocated memory,
|
||||||
* store its initial value, so we can restore it later
|
* store its initial value, so we can restore it later
|
||||||
@ -90,20 +87,10 @@ SYMBOL_NAME(RCTProfileTrampoline):
|
|||||||
ldr r1, [r4, #0x8]
|
ldr r1, [r4, #0x8]
|
||||||
ldr r4, [r4]
|
ldr r4, [r4]
|
||||||
push {r1} // save the caller on the stack
|
push {r1} // save the caller on the stack
|
||||||
|
bl SYMBOL_NAME(free)
|
||||||
ldr ip, LCPI_free
|
|
||||||
blx ip
|
|
||||||
|
|
||||||
pop {lr} // pop the caller
|
pop {lr} // pop the caller
|
||||||
pop {r0} // pop the return value
|
pop {r0} // pop the return value
|
||||||
bx lr // jump to the calleer
|
bx lr // jump to the calleer
|
||||||
|
|
||||||
trap
|
|
||||||
|
|
||||||
.p2align 2
|
|
||||||
LCPI_malloc:
|
|
||||||
.long SYMBOL_NAME(malloc)
|
|
||||||
LCPI_free:
|
|
||||||
.long SYMBOL_NAME(free)
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user