So it's only for internal usage? Maybe it's exposed to js land somehow? Maybe any similar replacement for this?
вторник, 27 ноября 2012 г., 16:15:53 UTC+7 пользователь Ben Noordhuis написал: > > On Tue, Nov 27, 2012 at 10:11 AM, Alexey Kupershtokh > <[email protected] <javascript:>> wrote: > > Dear v8 gurus, please help. > > I see that there's a useful class v8::internal::ObjectHashTable that I > could > > use instead of the stacks to handle circular references. > > But when I'm adding #include <objects.h> in my clone.cc file: > > #define BUILDING_NODE_EXTENSION > > #include <node.h> > > #include <objects.h> > > > > using namespace v8; > > > > Handle<Value> Clone(const Arguments& args) { > > > > node-gyp fails with this error: > > wicked@wicked-desktop:~/Alawar/node-v8-clone$ node-gyp rebuild > > gyp info it worked if it ends with ok > > gyp info using [email protected] > > gyp info using [email protected] | linux | ia32 > > gyp info spawn python > > gyp info spawn args [ '/home/wicked/.node-gyp/0.8.15/tools/gyp/gyp', > > gyp info spawn args 'binding.gyp', > > gyp info spawn args '-f', > > gyp info spawn args 'make', > > gyp info spawn args '-I', > > gyp info spawn args > '/home/wicked/Alawar/node-v8-clone/build/config.gypi', > > gyp info spawn args '-I', > > gyp info spawn args '/usr/lib/node_modules/node-gyp/addon.gypi', > > gyp info spawn args '-I', > > gyp info spawn args '/home/wicked/.node-gyp/0.8.15/common.gypi', > > gyp info spawn args '-Dlibrary=shared_library', > > gyp info spawn args '-Dvisibility=default', > > gyp info spawn args '-Dnode_root_dir=/home/wicked/.node-gyp/0.8.15', > > gyp info spawn args > '-Dmodule_root_dir=/home/wicked/Alawar/node-v8-clone', > > gyp info spawn args '--depth=.', > > gyp info spawn args '--generator-output', > > gyp info spawn args 'build', > > gyp info spawn args '-Goutput_dir=.' ] > > gyp info spawn make > > gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] > > make: Entering directory `/home/wicked/Alawar/node-v8-clone/build' > > CXX(target) Release/obj.target/clone/src/clone.o > > ../src/clone.cc:1:0: warning: "BUILDING_NODE_EXTENSION" redefined > > <command-line>:0:0: note: this is the location of the previous > definition > > ../src/clone.cc:3:21: fatal error: objects.h: No such file or directory > > compilation terminated. > > make: *** [Release/obj.target/clone/src/clone.o] Error 1 > > make: Leaving directory `/home/wicked/Alawar/node-v8-clone/build' > > gyp ERR! build error > > gyp ERR! stack Error: `make` failed with exit code: 2 > > gyp ERR! stack at ChildProcess.onExit > > (/usr/lib/node_modules/node-gyp/lib/build.js:232:23) > > gyp ERR! stack at ChildProcess.EventEmitter.emit (events.js:99:17) > > gyp ERR! stack at Process._handle.onexit (child_process.js:678:10) > > gyp ERR! System Linux 2.6.38-16-generic-pae > > gyp ERR! command "node" "/usr/bin/node-gyp" "rebuild" > > gyp ERR! cwd /home/wicked/Alawar/node-v8-clone > > gyp ERR! node -v v0.8.15 > > gyp ERR! node-gyp -v v0.7.3 > > gyp ERR! not ok > > > > Please help! What am I doing wrong? > > The fact that it's in the v8::internal namespace should be a clue. :-) > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en
