Comment #4 on issue 2338 by [email protected]: V8 engine embedded in a DLL doesn't work when using the V8/javascript debug system
http://code.google.com/p/v8/issues/detail?id=2338
When a C++ exe file uses an dynamic library, it too doesn't change the FPU control word before the call. It's too hard to tell in which compiler the destination function was compiled with.
Even so, the configuration it's not compiler-dependent. This configuration of the FPU word control it's a well known and documented parameter of execution of the FPU (IA-32). This parameter can be changed even in C/C++ (visual c++: unit <float.h>, function _controlfp_s).
For some reason, the Delphi believes that the default behaviour should not allow the division by zero. ("Mathematicaly" speaking, it's impossible to divide by zero), and C/C++ believes that default behaviour should allow the division by zero.
But, both Delphi and C++ provide an easy mechanism to change the default behaviour.
That's why I truly believes that is not a bug comming from Delphi's compiler.
-- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
