Skip to content

Commit 29294e6

Browse files
authored
Merge pull request #1174 from NativeScript/darind/v8-6.9.427.23
Upgrade V8 to 6.9.427.23
2 parents 384f3c3 + dc35d80 commit 29294e6

File tree

104 files changed

+6351
-4685
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

104 files changed

+6351
-4685
lines changed
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"v8Version": "6.7.288.46"
2+
"v8Version": "6.9.427.23"
33
}

Diff for: package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "tns-android",
33
"description": "NativeScript Runtime for Android",
4-
"version": "4.3.0",
4+
"version": "5.0.0",
55
"repository": {
66
"type": "git",
77
"url": "https://github.com/NativeScript/android-runtime.git"
-1.03 MB
Binary file not shown.
-1.43 MB
Binary file not shown.
-1.18 MB
Binary file not shown.

Diff for: test-app/runtime/CMakeLists.txt

+1-2
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,12 @@ MESSAGE( STATUS "# CMAKE_CXX_FLAGS: " ${CMAKE_CXX_FLAGS} )
179179
# linking v8 and inspector libraries to runtime(NativeScript library)
180180
target_link_libraries( NativeScript ${PROJECT_SOURCE_DIR}/src/main/libs/${ANDROID_ABI}/libzip.a )
181181
target_link_libraries( NativeScript ${PROJECT_SOURCE_DIR}/src/main/libs/${ANDROID_ABI}/libv8_base.a )
182+
target_link_libraries( NativeScript ${PROJECT_SOURCE_DIR}/src/main/libs/${ANDROID_ABI}/libv8_snapshot.a )
182183
target_link_libraries( NativeScript ${PROJECT_SOURCE_DIR}/src/main/libs/${ANDROID_ABI}/libv8_init.a )
183184
target_link_libraries( NativeScript ${PROJECT_SOURCE_DIR}/src/main/libs/${ANDROID_ABI}/libv8_initializers.a )
184185
target_link_libraries( NativeScript ${PROJECT_SOURCE_DIR}/src/main/libs/${ANDROID_ABI}/libv8_libplatform.a )
185186
target_link_libraries( NativeScript ${PROJECT_SOURCE_DIR}/src/main/libs/${ANDROID_ABI}/libv8_libsampler.a )
186187
target_link_libraries( NativeScript ${PROJECT_SOURCE_DIR}/src/main/libs/${ANDROID_ABI}/libv8_libbase.a )
187-
target_link_libraries( NativeScript ${PROJECT_SOURCE_DIR}/src/main/libs/${ANDROID_ABI}/libv8_snapshot.a )
188188

189189
# Command info: https://cmake.org/cmake/help/v3.4/command/find_library.html
190190
# Searches for a specified prebuilt library and stores the path as a
@@ -195,7 +195,6 @@ target_link_libraries( NativeScript ${PROJECT_SOURCE_DIR}/src/main/libs/${ANDROI
195195
find_library( system-log log )
196196
find_library( system-android android )
197197
find_library( system-dl dl )
198-
find_library( system-atomic atomic ) # TODO: plamen5kov: can't be found in ndk for some reasong ... look at it later (maybe deprecated in newer NDK versions)
199198
find_library( system-z z )
200199

201200
# Command info: https://cmake.org/cmake/help/v3.4/command/target_link_libraries.html

Diff for: test-app/runtime/src/main/cpp/ObjectManager.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,8 @@ void ObjectManager::MarkReachableObjects(Isolate* isolate, const Local<Object>&
482482
}
483483

484484
auto o = top.As<Object>();
485-
if(!isInFirstRun) {
486-
uint8_t* addr = NativeScriptExtension::GetAddress(o);
485+
if (!isInFirstRun) {
486+
unsigned long addr = NativeScriptExtension::GetAddress(o);
487487
auto itFound = m_visited.find(addr);
488488
if (itFound != m_visited.end()) {
489489
continue;

Diff for: test-app/runtime/src/main/cpp/ObjectManager.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class ObjectManager {
201201

202202
PersistentObjectIdSet m_released;
203203

204-
std::set<uint8_t*> m_visited;
204+
std::set<unsigned long> m_visited;
205205

206206
LRUCache<int, jweak> m_cache;
207207

Diff for: test-app/runtime/src/main/cpp/Profiler.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,12 +82,12 @@ void Profiler::StopCPUProfilerCallbackImpl(const v8::FunctionCallbackInfo<v8::Va
8282
}
8383

8484
void Profiler::StartCPUProfiler(Isolate* isolate, const Local<String>& name) {
85-
auto v8prof = isolate->GetCpuProfiler();
85+
auto v8prof = CpuProfiler::New(isolate);
8686
v8prof->StartProfiling(name, true);
8787
}
8888

8989
bool Profiler::StopCPUProfiler(Isolate* isolate, const Local<String>& name) {
90-
auto v8prof = isolate->GetCpuProfiler();
90+
auto v8prof = CpuProfiler::New(isolate);
9191
auto cpuProfile = v8prof->StopProfiling(name);
9292

9393
auto success = false;
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,22 @@
11
#include "v8.h"
22

33
namespace v8 {
4-
5-
class NativeScriptExtension {
6-
public:
7-
static uint8_t* GetAddress(const v8::Local<v8::Object>& obj);
84

9-
static v8::Local<v8::Value>* GetClosureObjects(v8::Isolate *isolate, const v8::Local<v8::Function>& func, int *length);
5+
class NativeScriptExtension {
6+
public:
7+
static unsigned long GetAddress(const v8::Local<v8::Object>& obj);
108

11-
static void ReleaseClosureObjects(v8::Local<v8::Value>* closureObjects);
12-
13-
static void GetAssessorPair(v8::Isolate *isolate, const v8::Local<v8::Object>& obj, const v8::Local<v8::String>& propName, v8::Local<v8::Value>& getter, v8::Local<v8::Value>& setter);
9+
static v8::Local<v8::Value>* GetClosureObjects(v8::Isolate* isolate, const v8::Local<v8::Function>& func, int* length);
1410

15-
static v8::Local<v8::Array> GetPropertyKeys(v8::Isolate *isolate, const v8::Local<v8::Context>& context, const v8::Local<v8::Object>& object, bool& success);
11+
static void ReleaseClosureObjects(v8::Local<v8::Value>* closureObjects);
1612

17-
static void CpuFeaturesProbe(bool cross_compile);
18-
private:
19-
NativeScriptExtension();
13+
static void GetAssessorPair(v8::Isolate* isolate, const v8::Local<v8::Object>& obj, const v8::Local<v8::String>& propName, v8::Local<v8::Value>& getter, v8::Local<v8::Value>& setter);
2014

21-
// static v8::internal::Handle<v8::internal::FixedArray> GetEnumPropertyKeys(const v8::internal::Handle<v8::internal::JSObject>& object, bool cache_result);
22-
};
15+
static v8::Local<v8::Array> GetPropertyKeys(v8::Isolate* isolate, const v8::Local<v8::Context>& context, const v8::Local<v8::Object>& object, bool& success);
16+
17+
static void CpuFeaturesProbe(bool cross_compile);
18+
private:
19+
NativeScriptExtension();
20+
};
2321
}
22+

Diff for: test-app/runtime/src/main/cpp/include/libplatform/libplatform.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ V8_PLATFORM_EXPORT bool PumpMessageLoop(
6262
v8::Platform* platform, v8::Isolate* isolate,
6363
MessageLoopBehavior behavior = MessageLoopBehavior::kDoNotWait);
6464

65-
V8_PLATFORM_EXPORT V8_DEPRECATE_SOON(
65+
V8_PLATFORM_EXPORT V8_DEPRECATED(
6666
"This function has become obsolete and is essentially a nop",
6767
void EnsureEventLoopInitialized(v8::Platform* platform,
6868
v8::Isolate* isolate));

0 commit comments

Comments
 (0)