Commit Graph

175 Commits

Author SHA1 Message Date
fur%netscape.com
6da51e30c5 Patches from Amancio Hasty for FreeBSD. Until we can figure out otherwise,
use NSPR user-threads rather than pthreads.
1999-02-27 07:00:12 +00:00
fur%netscape.com
c9523edadb Separated x86Win32_Support.cpp into an OS-independent part x86GenStub.cpp and
x86Stub.cpp which is Win32-only.
1999-02-27 01:53:18 +00:00
fur%netscape.com
6451d16c66 Changed factoring of function declaration macros to be based on choice of
compiler rather than OS
1999-02-26 23:18:37 +00:00
fur%netscape.com
c0a678e648 Add /D GENERATE_FOR_X86 1999-02-26 23:14:31 +00:00
fur%netscape.com
a0ee7a17d7 A bunch of grunge work to reduce OS-dependent code in ElectricalFire
sources:

+ Renamed files and classes that were inappropriately named, i.e. the
  names started with 'x86Win32', but the code was for generic x86, not
  specific to Win32.

+ Segregated the 64-bit arithmetic code into an OS-independent
  x86Arith64.{cpp,h}
1999-02-26 23:12:06 +00:00
fur%netscape.com
05f642af1f Squawk if target architecture is unknown 1999-02-26 23:06:34 +00:00
fur%netscape.com
6567c4d04f x86-win32.nad ==> x86.nad 1999-02-26 23:05:58 +00:00
fur%netscape.com
5a55883add x86Win32Cpu.h ==> x86Cpu.h 1999-02-26 23:01:40 +00:00
fur%netscape.com
19aa8b74e4 x86Win32Cpu.h ==> x86Cpu.h 1999-02-26 23:00:45 +00:00
fur%netscape.com
b6f91cbeb1 A bunch of grunge work to reduce OS-dependent code in ElectricalFire
sources.

Here's a detailed list of the changes:

Renamed files and classes that were inappropriately named, i.e. the
names started with 'x86Win32', but the code was for generic x86, not
specific to Win32.

Segregated the 64-bit arithmetic code into an OS-independent
x86Arith64.{cpp,h}
1999-02-26 22:45:11 +00:00
fur%netscape.com
22417b1c30 No CPU_ARCH_TAG for FreeBSD 1999-02-26 19:12:26 +00:00
fur%netscape.com
2f28d33b0c Remove C++ comment in C file. 1999-02-26 16:11:37 +00:00
fur%netscape.com
355871326e Added x86 disassembly to HTML output, courtesy of free code from CMU's
Mach project.
1999-02-26 09:10:34 +00:00
fur%netscape.com
08b949f30d Fix OBJDIR naming convention to be simpler 1999-02-26 08:48:53 +00:00
fur%netscape.com
b95d800411 libpthread must come before libnspr on the link line 1999-02-26 08:47:18 +00:00
fur%netscape.com
88038e30f8 Don't use enums with bitfield widths when running with gcc, since egcs
generates buggy code for this case and there is no way to
differentiate gcc and egcs.
1999-02-26 08:45:45 +00:00
fur%netscape.com
6aedaa14ee Fix syntax error 1999-02-26 08:44:40 +00:00
fur%netscape.com
87a55612ae Add libm 1999-02-26 08:42:30 +00:00
fur%netscape.com
f562a9ebb4 Restore building of java.security native libraries 1999-02-26 08:41:28 +00:00
fur%netscape.com
d6bbdb1a06 + Remove dead code
+ Make class initialization slightly more efficient
1999-02-26 08:40:13 +00:00
fur%netscape.com
0caa348040 Improve comment 1999-02-26 08:39:24 +00:00
fur%netscape.com
77f4f1b92d Fix library ordering problem so that pthreads appears before NSPR on
the link line.
1999-02-26 08:38:38 +00:00
fur%netscape.com
4c75e09fe9 Fix problems in which functions had 'inline' keyword in definition
but not in the corresponding declaration.
1999-02-26 08:18:38 +00:00
fur%netscape.com
9ad17c00aa Make the Linux compile-and-backpatch stub code generation be just like
Win32's, so that method-tracing works.
1999-02-26 08:17:06 +00:00
fur%netscape.com
170d7eff46 Under some circumstances, the monitor around the compiler was being
released even though it was not held.
1999-02-26 08:15:03 +00:00
fur%netscape.com
b3662a1ed6 Fix linkage problems on FreeBSD by adding -E linker option when building libPackage.so. Patch contributed by Amancio Hasty <hasty@rah.star-gate.com>. 1999-02-22 19:10:16 +00:00
fur%netscape.com
9bf4a72b6c *** empty log message *** 1999-02-09 06:47:12 +00:00
fur%netscape.com
6e52b56316 Make g++ default C++ compiler 1999-02-09 06:47:00 +00:00
fur%netscape.com
d60ecdb0f1 Remove C++ comment in C file 1999-02-09 06:46:12 +00:00
fur%netscape.com
380520243b Kill routine that has name conflict w/ libc 1999-02-09 05:47:33 +00:00
fur%netscape.com
a7adaf7126 Wrong path for Packages binaries 1999-02-09 05:46:47 +00:00
fur%netscape.com
821bb96abc Gratuitous change to work around bug that appears in egcs 1.0.3 1999-02-09 00:08:41 +00:00
fur%netscape.com
bc8b55b791 Quash egcs warning 1999-02-09 00:07:20 +00:00
fur%netscape.com
4045d5c9f6 Use OBJDIR naming scheme that is the same as NSPR's 1999-02-09 00:02:19 +00:00
fur%netscape.com
f787d50e81 mkdepend rules now work again 1999-02-09 00:01:56 +00:00
fur%netscape.com
ec688dd6fd Don't assume that gcc is C compiler when computing dependencies 1999-02-09 00:01:02 +00:00
fur%netscape.com
7d1029eedf Got rid of problematic -fexceptions flag 1999-02-08 23:59:19 +00:00
fur%netscape.com
50f767a020 Get rid of classpath during header generation. For now, depend on setting of CLASSPATH env variable. 1999-02-08 23:58:16 +00:00
fur%netscape.com
d0cdd06b65 Replaced outdated rules w/ new rules that are identical to NSPR's 1999-02-08 23:57:21 +00:00
fur%netscape.com
6d2fc0ea6e Ignore generated files. 1999-01-31 06:00:48 +00:00
fur%netscape.com
665e67cbf9 Fixed VerifyError and RuntimeError messages to be less dire. Also, don't exit
the program if an error occurs since it will be propagated to a Java caller as
an exception.
1999-01-29 05:23:06 +00:00
fur%netscape.com
cb865ea272 The -sys command-line option is now default behavior. You can disable System
class initialization with the new -nosystem option).
1999-01-29 05:21:48 +00:00
fur%netscape.com
a28eee27d1 Really this time: temporarily hard-coded y.tab.[ch] into build, instead of
generating them
1999-01-29 05:20:25 +00:00
fur%netscape.com
7030130215 Was incorrectly reporting classfile corruption when file was actually not found. 1999-01-29 05:09:46 +00:00
fur%netscape.com
d62f23151e Temporarily hard-coded y.tab.[ch] into build, instead of generating them. 1999-01-28 08:22:55 +00:00
fur%netscape.com
044c5729ed Temporarily checking in y.tab.c and y.tab.h because of yacc/bison problems. 1999-01-28 08:21:57 +00:00
fur%netscape.com
ca6e438532 Add java_lang_Thread.h 1999-01-21 01:25:12 +00:00
fur%netscape.com
7b5c6b88c2 Fix comment. 1999-01-21 00:42:03 +00:00
fur%netscape.com
65fec7605c Allow class CharToByteConverter to be initialized, since the codegen limitations
that didn't allow it to be compiled have been remedied.
1999-01-21 00:41:09 +00:00
fur%netscape.com
d84ca63910 Unicode characters are uint16, not int16. 1999-01-21 00:39:17 +00:00
fur%netscape.com
366b96e226 Added routines to handle conversion of Java strings between UTF8 and UCS2
representations.
1999-01-21 00:38:34 +00:00
fur%netscape.com
8294dd6711 Frame::getCallingJavaMethod() now takes a stack depth parameter which indicates
the number of levels to pop the stack.
1999-01-21 00:37:14 +00:00
fur%netscape.com
3ea48d26a2 Flush the log file after entry into a method is traced. 1999-01-21 00:22:22 +00:00
fur%netscape.com
6c7512d748 Unicode characters are uint16's not int16's. 1999-01-21 00:20:41 +00:00
fur%netscape.com
78937749e8 Fixes to newInstance0() method:
When checking to see if a calling method has permission to access a
class/constructor with package-level scope, walk two levels up the
stack, instead of one, since the immediate caller is always
java.lang.newInstance().

In addition to creating the object, invoke it's zero-argument constructor.
1999-01-21 00:19:56 +00:00
fur%netscape.com
ba8baa29ab Added do-nothing stub for registerNatives(). 1999-01-21 00:16:40 +00:00
fur%netscape.com
a45dd92751 Implement doPrivileged() method in a trivial way, such that privileges are
not actually checked or set.
1999-01-21 00:15:55 +00:00
fur%netscape.com
21d5ff5438 Don't add a thread-id or a newline to each logfile output line, at least not
in the default case.
1999-01-21 00:12:46 +00:00
fur%netscape.com
e6989dcc0d Ensure that log-file flushing occurs even if the default log file is being used. 1999-01-21 00:11:55 +00:00
fur%netscape.com
d92b51d33f Work in progress 1999-01-18 06:22:14 +00:00
fur%netscape.com
0e1d9dbd8d + Flush HTML method dump file after writing it. Otherwise, the file is
truncated if EF dies while compiling.

+ Print a placeholder disassembled instruction rather than assert-botching,
  so that the -html option still works.
1998-12-23 20:21:58 +00:00
fur%netscape.com
6125a49b1a Flush HTML method dump file after writing it. Otherwise, the file is truncated
if EF dies while compiling.
1998-12-23 20:19:49 +00:00
fur%netscape.com
74590617a8 Eliminate double declaration of variable 1998-12-23 20:15:57 +00:00
fur%netscape.com
9006576ab5 Do classname-mangling correctly (or at least closer to correct, since
the code still does not handle unicode characters).
1998-12-23 20:15:07 +00:00
fur%netscape.com
78f477adcf Added stubs for missing native methods. 1998-12-23 20:14:13 +00:00
fur%netscape.com
4eb7a05540 Closer to building packages again in the new mozilla world. 1998-12-23 20:12:59 +00:00
fur%netscape.com
e3d43ac36b Check-in rth's support for 64-bit arithmetic, with a few mods to make it build
on Win32.
1998-12-23 20:11:59 +00:00
fur%netscape.com
31ffa9b84f Fixed incorrect assumption that the extra_field_length value in the central
directory record  was the same as the extra_field_length in the corresponding
local file header record.
1998-12-22 18:01:28 +00:00
fur%netscape.com
4a6bd744a3 Adding SportModel, Warren Harris' partially complete garbage collector
code for the ElectricalFire JIT.
1998-12-17 07:00:17 +00:00
fur%netscape.com
fc8d514fb4 Added Todd Proebsting's BURG to the tree, now that it's in the public domain. 1998-12-17 06:36:50 +00:00
toshok%hungry.com
4182e3c193 (at least for GNUC platforms) don't rely on nasty division-by-zero tricks to generate +-inf and nan. instead borrow the bitlevel twiddling javascript uses. I would imagine that this would work for all platforms that use IEEE floats (which is necessarily all platforms for which EF will work), but someone else needs to figure out if windows will work with this code. 1998-12-16 01:38:18 +00:00
toshok%hungry.com
7c1fe1e23b clear up screw up in previous commit. 1998-12-16 01:30:14 +00:00
toshok%hungry.com
024f7c420c install shared libs in dist/ARCH/bin, not dist/ARCH/lib - following the same convention as the mozilla tree. 1998-12-16 01:28:17 +00:00
toshok%hungry.com
17f97dc512 build shared libs with CC instead of LD. 1998-12-16 01:26:49 +00:00
toshok%hungry.com
ff3a41c05a dist is not one directory higher than ef. 1998-12-16 01:13:05 +00:00
rth%cygnus.com
a3d3a0db9e Detect and handle overloaded methods. 1998-12-12 08:21:25 +00:00
rth%cygnus.com
e75b2e9f3c Re-implement for your legal protection. 1998-12-12 08:20:30 +00:00
rth%cygnus.com
41389ffd04 Add missing java class include files. 1998-12-12 08:18:07 +00:00
rth%cygnus.com
5ca08c04d2 Insert directory entries into a SortedTree for searching. 1998-12-12 05:23:36 +00:00
rth%cygnus.com
4f1d3174f2 (EF_LIBS): Add DebuggerChannel and EFDisassemble.
(JAVAH): Set LD_LIBRARY_PATH.
1998-12-12 04:10:43 +00:00
rth%cygnus.com
9c6669247a (MKSHLIB): Must use gcc, not ld, to create shared libraries w/ constructors.
(NSPR_THREAD_LIBS): New.
1998-12-12 04:09:28 +00:00
rth%cygnus.com
d6850523df (LIBRARY_NAME): Change to EFDisassemble. 1998-12-12 04:08:12 +00:00
rth%cygnus.com
abc0c157c6 (DIRS): Wildcard on the cpu, so that processors that do not have
disassemblers can still build.
1998-12-12 04:07:44 +00:00
rth%cygnus.com
81be5b69a8 Use local labels as needed. 1998-12-12 04:06:58 +00:00
rth%cygnus.com
472f7014a7 (GetPassedException): Abort. The existing "mov ecx,E" thing can not work.
Plus it generated invalid assembly.
1998-12-12 04:06:26 +00:00
rth%cygnus.com
d1e33853f7 Streamline INLINE_GET_EBP.
Error if this file is used on anything except x86.
1998-12-12 04:04:01 +00:00
rth%cygnus.com
79c51fc35c ANSI C++ disallows reinterpret_cast between objects and functions. 1998-12-12 04:02:56 +00:00
rth%cygnus.com
a5d91840f3 Make sure nsinstall gets built before make export tries to use it. 1998-12-12 04:02:05 +00:00
rth%cygnus.com
29108aacac The arch bits call for Linux{ver} not LinuxELF{ver}. 1998-12-11 18:49:27 +00:00
rth%cygnus.com
2ed6644e55 Re-implement for your legal protection. 1998-12-11 18:37:20 +00:00
rth%cygnus.com
37151cfd16 Use a proper sigcontext for Linux, just as is done for BSD. 1998-12-11 18:35:52 +00:00
rth%cygnus.com
111dcdf731 Fix bogus gcc x86 asms. 1998-12-11 18:33:48 +00:00
toshok%hungry.com
a8ef75c191 we need to fix this, but to get things building i've made the copy constructors public and provided an implementation of them that just PR_ASSERT(0)'s. 1998-12-11 04:41:05 +00:00
toshok%hungry.com
6487ac2934 anything greater than gcc 2.8 should have terminate already. 1998-12-11 04:10:21 +00:00
toshok%hungry.com
a7ad97fa3a XDisAsmTable.c is not included in the distribution (for licensing reasons.) don't reference it in the Makefile. 1998-12-11 04:04:19 +00:00
toshok%hungry.com
7d1687c62f add freebsd support. 1998-12-11 04:03:33 +00:00
toshok%hungry.com
3358bcb0a5 allow building without jvmdi 1998-12-11 04:03:13 +00:00
toshok%hungry.com
93b9d0abc5 add FreeBSD support. 1998-12-11 04:01:07 +00:00
toshok%hungry.com
6d0004f661 cleanup 1998-12-11 04:00:52 +00:00
toshok%hungry.com
67caadc4ac always turn on BATCH_COMPILATION (ef won't build without it.) and allow building without jvmdi support. to enable jvmdi support, install the jvmdi.h file in ef/Debugger and setenv USE_JVMDI 1 1998-12-11 04:00:14 +00:00