Skip to content

Commit c237e39

Browse files
authored
Merge pull request #1188 from NativeScript/darind/v8-6.9-revert
Revert back to v8 6.7.288.46
2 parents 2bb64de + 899afff commit c237e39

File tree

104 files changed

+4685
-6351
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

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

package.json

Lines changed: 1 addition & 1 deletion
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": "5.0.0",
4+
"version": "4.3.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.

test-app/runtime/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
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 )
183182
target_link_libraries( NativeScript ${PROJECT_SOURCE_DIR}/src/main/libs/${ANDROID_ABI}/libv8_init.a )
184183
target_link_libraries( NativeScript ${PROJECT_SOURCE_DIR}/src/main/libs/${ANDROID_ABI}/libv8_initializers.a )
185184
target_link_libraries( NativeScript ${PROJECT_SOURCE_DIR}/src/main/libs/${ANDROID_ABI}/libv8_libplatform.a )
186185
target_link_libraries( NativeScript ${PROJECT_SOURCE_DIR}/src/main/libs/${ANDROID_ABI}/libv8_libsampler.a )
187186
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,6 +195,7 @@ 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)
198199
find_library( system-z z )
199200

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

test-app/runtime/src/main/cpp/ObjectManager.cpp

Lines changed: 2 additions & 2 deletions
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-
unsigned long addr = NativeScriptExtension::GetAddress(o);
485+
if(!isInFirstRun) {
486+
uint8_t* addr = NativeScriptExtension::GetAddress(o);
487487
auto itFound = m_visited.find(addr);
488488
if (itFound != m_visited.end()) {
489489
continue;

test-app/runtime/src/main/cpp/ObjectManager.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class ObjectManager {
201201

202202
PersistentObjectIdSet m_released;
203203

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

206206
LRUCache<int, jweak> m_cache;
207207

test-app/runtime/src/main/cpp/Profiler.cpp

Lines changed: 2 additions & 2 deletions
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 = CpuProfiler::New(isolate);
85+
auto v8prof = isolate->GetCpuProfiler();
8686
v8prof->StartProfiling(name, true);
8787
}
8888

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

9393
auto success = false;

test-app/runtime/src/main/cpp/include/V8NativeScriptExtension.h

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,23 @@
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);
48

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

9-
static v8::Local<v8::Value>* GetClosureObjects(v8::Isolate* isolate, const v8::Local<v8::Function>& func, int* length);
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);
1014

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

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);
17+
static void CpuFeaturesProbe(bool cross_compile);
18+
private:
19+
NativeScriptExtension();
1420

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-
};
21+
// static v8::internal::Handle<v8::internal::FixedArray> GetEnumPropertyKeys(const v8::internal::Handle<v8::internal::JSObject>& object, bool cache_result);
22+
};
2123
}
22-

0 commit comments

Comments
 (0)