[v8-users] ‘v8::Value’ to ‘v8::String conversion error

2015-02-24 Thread jency
I am trying to read a javascript function written in a file and retrieve it using the following code and convert it to a script .But i am getting conversion error The code I'm using is std::ifstream file("sum.js"); std::string str; std::string file_contents; while (std::getline(file, str)) { f

[v8-users] Linking external object file/library during v8 build

2015-02-24 Thread Malek Musleh
Hi, I am trying to instrument the v8 source code with callable functions defined in a separate (external library). Specifically, I am inserting these instrumentation function calls in ./src/ic/arm/ic-arm.cc Is the main Makefile (v8/Makefile) the best place to include a link against my external

[v8-users] Huge libv8_base.a (over 250Mb) when building for x64.release

2015-02-24 Thread Jean-Philippe Déry
Hello everyone, I'm currently trying to build V8 as a static library for Android. I was able to build for the ARM architecture using this patch: http://stackoverflow.com/questions/24279237/android-ndk-linking-v8-static-library-cannot-find-symbols-but-they-are-there. However, when I build for x

[v8-users] calling an external java script function

2015-02-24 Thread jency
I am new to v8. I am trying to execute a JavaScript function written in an external file.I am trying to call the function through another java script function written in v8 and pass the argument from the main program.But i have no clue how to retrieve the function like a script. we are only ab