react-native/React
Robert Payne c91e2eb567 Use JSC C API for better invocation speed
Summary:
This converts the existing JSEvaluateScript call for `require('<ModuleName>').<MethodName>.apply(null, <args>);` to native JSC C API methods which shaves off about 10-15% of invocation time on average, I used pretty primitive profiling methods to track the minimum, maximum and average invocation time so would appreciate any extra eyes on the performance.

If the argument count is zero the method is invoked directly with no arguments, if the argument count is 1 it's invoked directly with just that argument. If there is more than 1 argument then apply is used and the arguments are passed as the second parameter.

Ensured all existing tests pass and instruments leaks shows nothing is leaking.
Closes https://github.com/facebook/react-native/pull/1037
Github Author: Robert Payne <robertpayne@me.com>

Test Plan: Imported from GitHub, without a `Test Plan:` line.
2015-05-22 19:37:18 -08:00
..
Base Optimised blending for translucent images with opaque background color + fixed cropping for images in cover/contain mode. 2015-05-22 07:19:06 -08:00
Executors Use JSC C API for better invocation speed 2015-05-22 19:37:18 -08:00
Layout Fixed layout bug 2015-05-13 13:24:36 -07:00
Modules Observing "MemoryWarningNotification" and proxying it up to the DeviceEventEmitter 2015-05-22 13:09:56 -08:00
React.xcodeproj [ReactNative] Add fps monitor 2015-05-20 18:26:36 -08:00
Views Eliminated redundant border drawing 2015-05-20 12:19:24 -08:00