Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
dc6fe39
Fix portability issues to Linux and FreeBSD.
matthargett Oct 4, 2018
d8d3782
Add missing includes and order by alpha
matthargett Oct 12, 2018
d419e7d
fix merge conflict by using same <climits> as upstream instead of my …
matthargett Oct 16, 2018
3ccd6ce
Merge branch 'master' of github.com:facebook/react-native into cxxrea…
matthargett Oct 16, 2018
893dd05
Merge branch 'master' of github.com:facebook/react-native into cxxrea…
matthargett Oct 18, 2018
1e1c53a
Remove new method.
matthargett Oct 18, 2018
f14d17c
Add missing include. Use folly wrapper for glog. Only use __has_built…
matthargett Oct 18, 2018
96aa4d5
Merge branch 'master' of github.com:facebook/react-native into cxxrea…
matthargett Oct 19, 2018
ef0294b
Merge branch 'master' of github.com:matthargett/react-native into cxx…
matthargett Oct 24, 2018
e2bd0c1
Merge branch 'master' of github.com:facebook/react-native into cxxrea…
matthargett Oct 26, 2018
03e5ebe
Merge branch 'master' of github.com:matthargett/react-native into cxx…
matthargett Nov 7, 2018
b557e5e
Merge branch 'master' of github.com:matthargett/react-native into cxx…
matthargett Nov 8, 2018
8f81a05
Merge branch 'master' of github.com:matthargett/react-native into cxx…
matthargett Jan 29, 2019
c4c79bb
Use glog directly sine folly-molly doesn't include the GLog.h header.
matthargett Jan 29, 2019
5f313ea
Add explicit include for stringstream, which isn't brought in transit…
matthargett Jan 29, 2019
005cb71
Eliminate unused include.
matthargett Jan 29, 2019
b47b4f1
Missed converting one of the folly/GLog includes to direct glog.
matthargett Jan 29, 2019
933253b
Dinkumware headers on some platforms doesn't allow coercing a unique_…
matthargett Jan 29, 2019
a40723f
Fix Android build by using correct namespace for make_shared.
matthargett Jan 30, 2019
ab1c79c
Go back to unique_ptr<InstanceCallback>. I was getting a deleted cons…
matthargett Jan 31, 2019
b58801b
Delete file leftover by auto-merge (I guess?).
matthargett Jan 31, 2019
e5362e5
Move iOS and Android back to unique_ptr<> now that a workaround for D…
matthargett Jan 31, 2019
8763749
Merge branch 'master' of github.com:matthargett/react-native into cxx…
matthargett Jan 31, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ void CatalystInstanceImpl::initializeBridge(
moduleMessageQueue_));

instance_->initializeBridge(
folly::make_unique<JInstanceCallback>(
std::make_unique<JInstanceCallback>(
callback,
moduleMessageQueue_),
jseh->getExecutorFactory(),
Expand Down
1 change: 0 additions & 1 deletion ReactCommon/cxxreact/Instance.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ void Instance::initializeBridge(
std::shared_ptr<ModuleRegistry> moduleRegistry) {
callback_ = std::move(callback);
moduleRegistry_ = std::move(moduleRegistry);

jsQueue->runOnQueueSync([this, &jsef, jsQueue]() mutable {
nativeToJsBridge_ = folly::make_unique<NativeToJsBridge>(
jsef.get(), moduleRegistry_, jsQueue, callback_);
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/cxxreact/JSBigString.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#pragma once

#include <fcntl.h>
#include <unistd.h>
#include <sys/mman.h>
#include <unistd.h>

Expand Down
3 changes: 1 addition & 2 deletions ReactCommon/cxxreact/JSExecutor.h
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,7 @@ class RN_EXPORT JSExecutor {
*/
virtual void invokeCallback(const double callbackId, const folly::dynamic& arguments) = 0;

virtual void setGlobalVariable(std::string propName,
std::unique_ptr<const JSBigString> jsonValue) = 0;
virtual void setGlobalVariable(std::string propName, std::unique_ptr<const JSBigString> jsonValue) = 0;

virtual void* getJavaScriptContext() {
return nullptr;
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/cxxreact/JsArgumentHelpers-inl.h
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
// LICENSE file in the root directory of this source tree.

#pragma once
#include <folly/dynamic.h>

namespace facebook {
namespace xplat {
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/cxxreact/NativeToJsBridge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ void NativeToJsBridge::loadApplication(
std::unique_ptr<RAMBundleRegistry> bundleRegistry,
std::unique_ptr<const JSBigString> startupScript,
std::string startupScriptSourceURL) {

runOnExecutorQueue(
[this,
bundleRegistryWrap=folly::makeMoveWrapper(std::move(bundleRegistry)),
Expand Down
6 changes: 5 additions & 1 deletion ReactCommon/jsi/JSCRuntime.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,11 @@ class JSCRuntime : public jsi::Runtime {
#endif
};

#if __has_builtin(__builtin_expect)
#ifndef __has_builtin
#define __has_builtin(x) 0
#endif

#if __has_builtin(__builtin_expect) || defined(__GNUC__)
#define JSC_LIKELY(EXPR) __builtin_expect((bool)(EXPR), true)
#define JSC_UNLIKELY(EXPR) __builtin_expect((bool)(EXPR), false)
#else
Expand Down
1 change: 1 addition & 0 deletions ReactCommon/jsiexecutor/jsireact/JSIExecutor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <glog/logging.h>
#include <jsi/JSIDynamic.h>

#include <sstream>
#include <stdexcept>

using namespace facebook::jsi;
Expand Down
3 changes: 2 additions & 1 deletion ReactCommon/microprofiler/MicroProfiler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
#include <algorithm>
#include <chrono>
#include <mutex>
#include <sstream>
#include <vector>
#include <time.h>

Expand All @@ -17,7 +18,7 @@
// we can get rid of this
#if defined(__APPLE__)
#define MICRO_PROFILER_STUB_IMPLEMENTATION 1
#else
#elif !defined(MICRO_PROFILER_STUB_IMPLEMENTATION)
#define MICRO_PROFILER_STUB_IMPLEMENTATION 0
#endif

Expand Down