Jump to content

SpiderMonkey update


Recommended Posts

I updated SpiderMonkey to the latest bleeding-edge version, for improved performance when we start doing more heavy calculations in JavaScript. It ought to work fine, but there's a chance it might introduce some compatibility problems - if you find any then please let me know.

One issue when updating SVN is that you might get errors running update-workspaces.sh, because of a Makefile looking for files that were deleted. If you get that, try running clean-workspaces.sh (in build/workspaces/) which should delete the outdated build files and let you start again cleanly.

Link to comment
Share on other sites

How can i run a .sh extension?

I get errors when I try to start up the game after building.

" Cant find 'entry' of procedure JS_RemoveRoot in DLL-file mozjs-ps-release.dll . ( my own translation ( error was in dutch))

''pyrogenesis.exe': Loaded

'C:\ps\binaries\system\pyrogenesis.exe', Symbols loaded.

'pyrogenesis.exe': Loaded 'C:\Windows\System32\ntdll.dll', Cannot find or open the PDB file

'pyrogenesis.exe': Loaded 'C:\Windows\System32\kernel32.dll', Cannot find or open the PDB file

'pyrogenesis.exe': Loaded 'C:\Windows\System32\KernelBase.dll', Cannot find or open the PDB file

'pyrogenesis.exe': Loaded 'C:\Windows\System32\opengl32.dll', Cannot find or open the PDB file

'pyrogenesis.exe': Loaded 'C:\Windows\System32\msvcrt.dll', Cannot find or open the PDB file

'pyrogenesis.exe': Loaded 'C:\Windows\System32\advapi32.dll', Cannot find or open the PDB file

'pyrogenesis.exe': Loaded 'C:\Windows\System32\sechost.dll', Cannot find or open the PDB file

'pyrogenesis.exe': Loaded 'C:\Windows\System32\rpcrt4.dll', Cannot find or open the PDB file

'pyrogenesis.exe': Loaded 'C:\Windows\System32\gdi32.dll', Cannot find or open the PDB file

'pyrogenesis.exe': Loaded 'C:\Windows\System32\user32.dll', Cannot find or open the PDB file

'pyrogenesis.exe': Loaded 'C:\Windows\System32\lpk.dll', Cannot find or open the PDB file

'pyrogenesis.exe': Loaded 'C:\Windows\System32\usp10.dll', Cannot find or open the PDB file

'pyrogenesis.exe': Loaded 'C:\Windows\System32\glu32.dll', Cannot find or open the PDB file

'pyrogenesis.exe': Loaded 'C:\Windows\System32\ddraw.dll', Cannot find or open the PDB file

'pyrogenesis.exe': Loaded 'C:\Windows\System32\dciman32.dll', Cannot find or open the PDB file

'pyrogenesis.exe': Loaded 'C:\Windows\System32\setupapi.dll', Cannot find or open the PDB file

'pyrogenesis.exe': Loaded 'C:\Windows\System32\cfgmgr32.dll', Cannot find or open the PDB file

'pyrogenesis.exe': Loaded 'C:\Windows\System32\oleaut32.dll', Cannot find or open the PDB file

'pyrogenesis.exe': Loaded 'C:\Windows\System32\ole32.dll', Cannot find or open the PDB file

'pyrogenesis.exe': Loaded 'C:\Windows\System32\devobj.dll', Cannot find or open the PDB file

'pyrogenesis.exe': Loaded 'C:\Windows\System32\dwmapi.dll', Cannot find or open the PDB file

'pyrogenesis.exe': Loaded 'C:\ps\binaries\system\mozjs-ps-release.dll', Binary was not built with debug information.

'pyrogenesis.exe': Loaded 'C:\Windows\System32\winmm.dll', Cannot find or open the PDB file

'pyrogenesis.exe': Loaded 'C:\Windows\winsxs\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.4927_none_d08a205e442db5b5\msvcr80.dll', Cannot find or open the PDB file

The program '[5004] pyrogenesis.exe: Native' has exited with code -1073741511 (0xc0000139).

Edited by plumo
Link to comment
Share on other sites

No, except the shootout ones which usually seem pretty broken because they're not using comparably optimised algorithms for everything. The results vary hugely depending on exactly what benchmark you run - it's probably hard to be more specific than saying SM is several times faster (maybe 10x or so) than interpreters for other scripting languages (Perl, CPython, etc) and a bit slower than LuaJIT (which has a much simpler language to compile) and a bit more slower than Java/C#/C++/etc.

Link to comment
Share on other sites

Hey Ykkrosh, i'm not sure that my problem is connected with your spidermonkey update but I got this error on update-workspaces.sh. I'm sorry If i made my post in a wrong thread.

My os is archlinux, i've installed all dependencies(I guess).


jsanalyze.cpp
c++ -o jsanalyze.o -c -I./dist/system_wrappers_js -include ../config/gcc_hidden.h -DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -DEXPORT_JS_API -D__STDC_LIMIT_MACROS -I.. -I. -I./dist/include -I./dist/include/nsprpub -I.. -I../assembler -I../yarr -fPIC -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -pedantic -Wno-long-long -fno-strict-aliasing -pthread -pipe -DDEBUG -D_DEBUG -DTRACING -g -DUSE_SYSTEM_MALLOC=1 -DENABLE_ASSEMBLER=1 -DENABLE_JIT=1 -DMOZILLA_CLIENT -include ./js-confdefs.h -MD -MF .deps/jsanalyze.pp ../jsanalyze.cpp
File "../imacro_asm.py", line 459
print "usage: python imacro_asm.py infile.jsasm outfile.c.out"
^
SyntaxError: invalid syntax
make[1]: *** [/media/disk/workspace/0ad/libraries/spidermonkey-tip/src/build-debug/imacros.c.out] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/media/disk/workspace/0ad/libraries/spidermonkey-tip/src/build-debug'
make: *** [default] Error 2
ERROR: SpiderMonkey build failed
jsanalyze.cpp
c++ -o jsanalyze.o -c -I./dist/system_wrappers_js -include ../config/gcc_hidden.h -DOSTYPE=\"Linux2.6\" -DOSARCH=Linux -DEXPORT_JS_API -D__STDC_LIMIT_MACROS -I.. -I. -I./dist/include -I./dist/include/nsprpub -I.. -I../assembler -I../yarr -fPIC -fno-rtti -fno-exceptions -Wall -Wpointer-arith -Woverloaded-virtual -Wsynth -Wno-ctor-dtor-privacy -Wno-non-virtual-dtor -Wcast-align -Wno-invalid-offsetof -Wno-variadic-macros -Werror=return-type -pedantic -Wno-long-long -fno-strict-aliasing -pthread -pipe -DDEBUG -D_DEBUG -DTRACING -g -DUSE_SYSTEM_MALLOC=1 -DENABLE_ASSEMBLER=1 -DENABLE_JIT=1 -DMOZILLA_CLIENT -include ./js-confdefs.h -MD -MF .deps/jsanalyze.pp ../jsanalyze.cpp
File "../imacro_asm.py", line 459
print "usage: python imacro_asm.py infile.jsasm outfile.c.out"
^
SyntaxError: invalid syntax
make[1]: *** [/media/disk/workspace/0ad/libraries/spidermonkey-tip/src/build-debug/imacros.c.out] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/media/disk/workspace/0ad/libraries/spidermonkey-tip/src/build-debug'
make: *** [default] Error 2
ERROR: SpiderMonkey build failed

and yes, I did clean-workspaces.sh. It doesnt help anyway

Edited by gavlig
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...