962 Commits

Author SHA1 Message Date
waldemar%netscape.com
fbd0c2defc Updated for recent semantic engine changes. Changed the meaning of (?= to match Perl.
git-svn-id: svn://10.0.0.236/trunk@41196 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-27 01:05:59 +00:00
waldemar%netscape.com
a4f0c9a69e Updated for recent semantic engine changes
git-svn-id: svn://10.0.0.236/trunk@41195 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-27 01:05:27 +00:00
waldemar%netscape.com
ec765d7d20 Implemented partial order for operator precedences. Removed global array functions and reformatted 'length' and 'empty' functions.
git-svn-id: svn://10.0.0.236/trunk@41194 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-27 01:03:19 +00:00
waldemar%netscape.com
ecdb80d8ef Implemented partial order for operator precedences. Removed global array functions and reformatted 'length' and 'empty' functions. Made lexer-actions into global function calls.
git-svn-id: svn://10.0.0.236/trunk@41193 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-27 01:02:21 +00:00
waldemar%netscape.com
8043665f0e Made lexer-actions into global function calls
git-svn-id: svn://10.0.0.236/trunk@41192 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-27 01:00:05 +00:00
waldemar%netscape.com
c326c80d5d Added partial order library
git-svn-id: svn://10.0.0.236/trunk@41191 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-27 00:58:44 +00:00
waldemar%netscape.com
c60aaadd1e Replaced :unit by :empty-10
git-svn-id: svn://10.0.0.236/trunk@41190 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-27 00:58:01 +00:00
waldemar%netscape.com
1ee91d2685 First Checked In.
git-svn-id: svn://10.0.0.236/trunk@41188 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-27 00:57:03 +00:00
mccabe%netscape.com
7bcedd9143 Fix code to invoke Wrapper interfaces using INVOKEINTERFACE rather than INVOKEVIRTUAL.
Thanks go to Andrew Wason <aw@softcom.com> for finding this problem and providing the patch:



If we implement a Java interface in JavaScript, and a method in that interface returns a Java object, we get a java.lang.IncompatibleClassChangeError: org/mozilla/javascript/Wrapper  exception.

We have attached a sample JavaScript file which duplicates the error.

The problem is JavaAdapter is generating an INVOKEVIRTUAL bytecode to call Wrapper.unwrap, but Wrapper is an interface and so INVOKEINTERFACE should be used instead.  As a result of this change, the IFEQ bytecode generated needs to jump more bytes.  We have attached a patch that fixes the problem.

Andrew
--
Andrew Wason
SoftCom, Inc.
aw@softcom.com


git-svn-id: svn://10.0.0.236/trunk@41131 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-26 10:45:38 +00:00
mccabe%netscape.com
a62784c47f Added NPL.
git-svn-id: svn://10.0.0.236/trunk@41130 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-26 10:41:46 +00:00
mccabe%netscape.com
19ce806d00 Comment fixes.
- normalized initial MPL comment to match the format of others in the tree, including an initial -*- Mode line.

- removed RCS $log$, etc. comments.  We use CVS, and they just make spurious changes...


git-svn-id: svn://10.0.0.236/trunk@41129 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-26 10:40:53 +00:00
brendan%mozilla.org
5f949724de Eliminate warning about unsigned/signed == comparison.
git-svn-id: svn://10.0.0.236/trunk@40868 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-23 08:25:03 +00:00
brendan%mozilla.org
e226872154 Add new flag to js_DecompileValueGenerator calls.
git-svn-id: svn://10.0.0.236/trunk@40867 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-23 08:23:13 +00:00
brendan%mozilla.org
2d15291e31 Bugs, bugs bugs:
- js_DecompileValueGenerator had rusted due to bytecode/source-note changes,
  or maybe parts of it never worked right.  Anyway, it now does not induce a
  crashing underflow in the decompiler.  As part of this fix, it now takes a
  checkStack flag telling whether to look for the jsval v argument on the JS
  stack.  The calls from ImportProperty, js_SetProperty, and js_DeleteProperty
  pass in v a jsval for the property id, which should not be sought after on
  the stack (it might happen to be there due to o['p'] = 2, but we want to
  decompile o["p"], not "p").
- js_DecompileValueGenerator would load a generating pc even if the value v
  did not match the pc's corresponding stack item!  Oops.  This lead to less
  than idea diagnostics.
- js_DecompileValueGenerator was also not mapping JSOP_TRAP to the real op at
  a sufficiently early and univeral point in its control flow.
- Fix PopOff to assert and check for stack underflow in the decompiler, and
  beef up PushOff too (it asserted, but did not check).
- js_ReportIsNotFunction now avoids JS_InternString by indexing directly into
  cx->runtime->atomState.typeAtoms with the result of JS_TypeOfValue.
- Removed unnecessary local GC root reserved by non-zero trailing member of
  obj_eval's JSFunctionSpec initializer.


git-svn-id: svn://10.0.0.236/trunk@40864 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-23 08:01:54 +00:00
mccabe%netscape.com
fb30e5c33e Fix warnings flagged by the auto-warnings page http://tinderbox.mozilla.org/SeaMonkey/warnings.html . Thanks slamm.
git-svn-id: svn://10.0.0.236/trunk@40656 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-22 10:37:35 +00:00
mccabe%netscape.com
7ce68a6276 Changes to support building on Alpha NT.
Patches courtesy bob meader <bob@guiduck.com> who seems to be working fast and furious on this port.


git-svn-id: svn://10.0.0.236/trunk@40594 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-22 03:58:51 +00:00
cbegle%netscape.com
75be2b3294 fixed a versioning problem with the tests. these should succeed now.
these files files have no impact on the mozilla build.


git-svn-id: svn://10.0.0.236/trunk@40457 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-21 19:20:02 +00:00
cbegle%netscape.com
99d5f81807 *** empty log message ***
git-svn-id: svn://10.0.0.236/trunk@40447 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-21 18:02:34 +00:00
cbegle%netscape.com
cfa114a227 update shared functions file.
this is not part of the mozilla client build, and has no effect on its
bustedness.


git-svn-id: svn://10.0.0.236/trunk@40292 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-20 18:00:13 +00:00
cbegle%netscape.com
ea666e9d1c adding file for running tests in the driver.
git-svn-id: svn://10.0.0.236/trunk@40291 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-20 17:49:01 +00:00
Jerry.Kirk%Nexwarecorp.com
e96ba2e301 Defined DASH_R for Neutrino
git-svn-id: svn://10.0.0.236/trunk@40152 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-19 21:18:19 +00:00
jband%netscape.com
7f18567e29 enabling xpconnect for Linux ARM because we now have xptcall code for Linux ARM from Stefan Hanske <sh990154@mail.uni-greifswald.de>
git-svn-id: svn://10.0.0.236/trunk@40067 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-19 02:59:21 +00:00
cbegle%netscape.com
bffa97aadc the js1.2 tests really need the version(120) called.
fix regression test for #7703.

This is not part of the mozilla build and has no effect on its bustedness.


git-svn-id: svn://10.0.0.236/trunk@39761 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-16 21:47:51 +00:00
jband%netscape.com
51cdc7ff95 adding forward declaration test
git-svn-id: svn://10.0.0.236/trunk@39745 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-16 20:38:16 +00:00
jband%netscape.com
ad651528f4 added files: mozilla/js/src/xpconnect/idl/xpctest2.idl
git-svn-id: svn://10.0.0.236/trunk@39744 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-16 20:35:58 +00:00
jband%netscape.com
ce39a4b59f adding new file for forward declaration test
git-svn-id: svn://10.0.0.236/trunk@39742 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-16 20:33:36 +00:00
jband%netscape.com
f098c00afd an inout of interface pointer test that illustrates that bug 9914 is not a bug
git-svn-id: svn://10.0.0.236/trunk@39651 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-16 04:29:49 +00:00
jband%netscape.com
de8f1c1277 make the const things const so that strict compilers don't complain
git-svn-id: svn://10.0.0.236/trunk@39650 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-16 04:23:00 +00:00
norris%netscape.com
9d998dfe27 Add new example.
git-svn-id: svn://10.0.0.236/trunk@39629 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-16 03:03:20 +00:00
cbegle%netscape.com
0caa55790d Remove more recursive calls to startTest. hm..
This is not part of the mozilla build and has no effect on its bustedness.


git-svn-id: svn://10.0.0.236/trunk@39616 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-16 01:39:07 +00:00
cbegle%netscape.com
f69fe85e9e Add a regression test case for #7224.
This is not part of the mozilla build and has no effect on build bustage.


git-svn-id: svn://10.0.0.236/trunk@39613 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-16 01:30:24 +00:00
cbegle%netscape.com
1a3771cf3b Remove a recursive call to startTest.
This file is not part of the client build.


git-svn-id: svn://10.0.0.236/trunk@39612 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-16 01:25:50 +00:00
mccabe%netscape.com
50fc06d9f7 Fix to 9523. In the javascript Date implementation, check for unsupplied date argument to new Date(year, month, date) rather than clamping it to 1 if < 1. Previously we ignored negative values for the date argument, rather than subtracting from the resulting date, as per the ECMA-262 spec. for the JavaScript language.
Thanks go to Martin Honnen <martin.honnen@sector27.de> for spotting this difference from the spec.


git-svn-id: svn://10.0.0.236/trunk@39607 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-16 00:50:11 +00:00
mccabe%netscape.com
411af70836 Fix to 9523.
Add an #if defined(__arm) check to tell jsdtoa.c about the (somewhat bizzare) endian-ness of the ARM architecture.

Thanks go to Stefan Hanske <sh990154@mail.uni-greifswald.de> for this fix.


git-svn-id: svn://10.0.0.236/trunk@39604 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-16 00:45:13 +00:00
rogerl%netscape.com
062dafad2a Fixed compile time errors + minor memory allocation problems.
git-svn-id: svn://10.0.0.236/trunk@39577 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-15 23:37:05 +00:00
cbegle%netscape.com
cd615b47ff Add a regression test case for #7635.
This file is not part of the client build.


git-svn-id: svn://10.0.0.236/trunk@39551 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-15 22:28:12 +00:00
cbegle%netscape.com
7271cc7270 New tests for the JavaScript engine.
These tests are not built and are not part of the client build.


git-svn-id: svn://10.0.0.236/trunk@39549 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-15 20:27:40 +00:00
jband%netscape.com
6166623f8e 1) added JSContextStack per thread service (with test).
2) rooted out all instances of JS_ReportErros and replaced with JS exception throwing.
3) added more exception message types.
4) Added service (also reflected into JS) for getting JS and native stack objects to be used in exceptions.
5) Fixed broken test.
6) updated TODO list.


git-svn-id: svn://10.0.0.236/trunk@39511 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-15 05:42:53 +00:00
mcafee%netscape.com
a954f31869 Fixing linux warning
git-svn-id: svn://10.0.0.236/trunk@39497 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-15 03:02:44 +00:00
jband%netscape.com
933d7a92a1 added files: mozilla/js/src/xpconnect/src/xpcstack.cpp
git-svn-id: svn://10.0.0.236/trunk@39495 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-15 03:00:55 +00:00
jband%netscape.com
f29f3ee526 adding placeholder file - soon to be used
git-svn-id: svn://10.0.0.236/trunk@39492 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-15 02:59:43 +00:00
jband%netscape.com
9d7b7a0664 added files: mozilla/js/src/xpconnect/idl/xpcexception.idl
git-svn-id: svn://10.0.0.236/trunk@39488 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-15 02:50:47 +00:00
jband%netscape.com
db27dd4816 adding file - soon to be used
git-svn-id: svn://10.0.0.236/trunk@39487 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-15 02:48:07 +00:00
brendan%mozilla.org
0f4a73b10e Warning abatement.
git-svn-id: svn://10.0.0.236/trunk@39486 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-15 02:47:06 +00:00
brendan%mozilla.org
b80a05e8e8 - Fix for..in bug where ECMA 12.6.3 steps 5 and 6 are reversed: the effect was
to define an unbound global variable used to enumerate an empty object, when
  the standard says no variable should be defined.
- Clean up minor nits, make comment style match prevailing, tighten up for..in
  element-indexing special case comments.
- Fix js_Invoke to take CONSTRUCT and INTERNAL flags arg instead of a construct
  boolean arg and the JSStackFrame internalCall mis-located boolean non-arg.
  Use these flags correctly in all calls (previous version failed to set the
  bogus frame.internalCall around js_Invoke calls from jsfun.c and jsstr.c).


git-svn-id: svn://10.0.0.236/trunk@39473 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-15 02:24:23 +00:00
cbegle%netscape.com
3ac50bf444 add a regression test for bug #9802
git-svn-id: svn://10.0.0.236/trunk@39364 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-14 20:26:27 +00:00
cbegle%netscape.com
7a753ae6ce correct the naming of these tests. negative tests have an -n.js filename
extension.


git-svn-id: svn://10.0.0.236/trunk@39325 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-14 18:12:11 +00:00
cbegle%netscape.com
8b6cd6ca7f allow command line option to specify the full path to the js executable.
git-svn-id: svn://10.0.0.236/trunk@39324 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-14 18:11:22 +00:00
jdunn%netscape.com
6f015e5979 Need to put libxpconnect.so in components for AIX
git-svn-id: svn://10.0.0.236/trunk@39284 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-14 16:36:16 +00:00
norris%netscape.com
de48106c8f Report errors for incorrect usages of varargs forms.
git-svn-id: svn://10.0.0.236/trunk@38798 18797224-902f-48f8-a5cc-f745e15eee43
1999-07-08 16:32:51 +00:00