jband%netscape.com
a49977b549
updating readme. Not part of build
2000-07-02 19:37:57 +00:00
cls%seawood.org
e1e6c5760f
Removed obsolete REQUIRES variable from every Makefile.in/makefile.win
2000-06-30 08:08:04 +00:00
jband%netscape.com
9ec0b005fc
Fix dogfood/crash bugs: 42750, 39858 and fix 43897 and improve JS/XPConnect error reporting to help with crasher 40792. r=mccabe@netscape.com.
2000-06-30 04:04:46 +00:00
beard%netscape.com
ae75194337
Fix build bustage.
2000-06-29 18:40:58 +00:00
rogerl%netscape.com
289a28647c
use handleDot for call, too.
2000-06-29 18:30:47 +00:00
beard%netscape.com
14a33e366c
delete property support.
2000-06-29 18:14:14 +00:00
beard%netscape.com
6cbfacc80c
DELETE_PROP
2000-06-29 18:13:46 +00:00
beard%netscape.com
9d7d45fa72
DELETE_PROP
2000-06-29 17:14:56 +00:00
beard%netscape.com
b713041cec
added DELETE_PROP instruction to implement the "delete" operation.
2000-06-29 17:11:50 +00:00
beard%netscape.com
9a805c2a95
unused parameter warning
2000-06-29 05:48:09 +00:00
beard%netscape.com
cbf9cb60d0
complementary operator delete(void*, JSClass*).
2000-06-29 05:46:36 +00:00
beard%netscape.com
b3c8568faa
some classes to test js2 with.
2000-06-29 04:49:48 +00:00
beard%netscape.com
4db6e8e886
updated dependencies
2000-06-29 04:25:10 +00:00
beard%netscape.com
ac2fd0c4c1
Changed StaticCall to use static slot.
2000-06-29 04:23:56 +00:00
beard%netscape.com
5cfc10557a
Fixing static dotted expressions.
2000-06-29 04:23:20 +00:00
beard%netscape.com
aef07e6b97
now uses conditional compilation #if defined(OPCODE_NAMES), so that a simple "icode.h" can be included by vmtypes.h and vmtypes.cpp.
2000-06-29 04:21:00 +00:00
beard%netscape.com
d059b655ef
moved all machine generated classes, etc. to icode.h.
2000-06-29 04:19:19 +00:00
beard%netscape.com
da44337f32
Generated by tools/gencode.pl.
2000-06-29 04:18:16 +00:00
beard%netscape.com
ea4574b835
fixed static calls.
2000-06-29 03:15:52 +00:00
rogerl%netscape.com
8d0b4fe645
Implicit this and class lookup stuff.
2000-06-29 01:21:41 +00:00
cls%seawood.org
d7e09e3e95
wrap ifndef XPCONNECT_STANDALONE around xpconnect test components that require external interfaces. Thanks to Mark Adams <madams@janna.com> for the patch. Bug 42026
2000-06-28 22:53:55 +00:00
beard%netscape.com
6df39dd186
implemented JSClass::printProperties().
2000-06-28 19:46:13 +00:00
beard%netscape.com
3436603e6b
Enhanced printing of types.
2000-06-28 19:45:44 +00:00
beard%netscape.com
d2acc1ba67
Type of a JSType* is Type_Type (wow, recursive). Changed mBaseType to be JSType* instead of const JSType*.
2000-06-28 19:45:09 +00:00
rogerl%netscape.com
b5f49320b8
First set of unified 'dot' handling changes for statics.
2000-06-28 18:41:30 +00:00
beard%netscape.com
a18901a26b
added jsclasses.h
2000-06-28 18:10:04 +00:00
beard%netscape.com
c1a38ed9f4
Fix string <.
2000-06-28 16:38:20 +00:00
beard%netscape.com
9be70600fd
Fixed dynamic lookup of static slots. Added code to compare strings.
2000-06-28 16:32:52 +00:00
beard%netscape.com
33919341f2
GET_STATIC/SET_STATIC/STATIC_XCR now use an index rather than a name. Implemented GET_PROP/SET_PROP for class objects (looks up slot dynamically, etc.)
2000-06-28 16:15:06 +00:00
beard%netscape.com
c9b03781ae
GET_STATIC/SET_STATIC/STATIC_XCR now use an index rather than a name. Now using JSClass::hasStatic() rather than looking up statics in class' scope.
2000-06-28 16:14:18 +00:00
beard%netscape.com
9755202d7e
GET_STATIC/SET_STATIC/STATIC_XCR now use an index rather than a name.
2000-06-28 16:13:12 +00:00
beard%netscape.com
b3b52a1138
Static slots.
2000-06-28 16:11:54 +00:00
cls%seawood.org
8e8437f9fd
Tweaks to build xpconnect standalone. Bug #42024 . Thanks to Mark Adams <madams@janna.com> for the patches.
2000-06-28 07:03:13 +00:00
beard%netscape.com
b76277c865
Win-specific operator== noise.
2000-06-27 03:52:56 +00:00
beard%netscape.com
42f735d5df
Fixed unitialized static class members.
2000-06-27 03:43:40 +00:00
beard%netscape.com
cda9175d80
addSlot -> defineSlot, added defineStatic.
2000-06-27 03:42:42 +00:00
brendan%mozilla.org
a17ba70026
Not again\!
2000-06-27 03:29:49 +00:00
beard%netscape.com
6bc554cd25
Fixed type management.
2000-06-27 03:21:33 +00:00
brendan%mozilla.org
326fe4c9b8
Fix my stupid missing comma bustage.
2000-06-27 03:17:47 +00:00
rogerl%netscape.com
b3fecb38fa
lots of stuff me and Patrick did
2000-06-27 02:39:32 +00:00
brendan%mozilla.org
1a3dbef568
Fix JS_SetPrototype and __proto__ setting to deal with shared scopes; use JSObjectOps for setProto and setParent operations, and add spare op slots (41126, r=shaver@mozilla.org,pschwartau@netscape.com).
2000-06-27 02:37:25 +00:00
beard%netscape.com
b3158ce94f
JSValue::operator==: added CASE(type) to fix warning.
2000-06-26 17:47:07 +00:00
beard%netscape.com
5c98bc5892
added JSObject::deleteProperty(), and changed mName in JSType to be a JSString. Need to revisit other uses of String soon.
2000-06-26 17:42:20 +00:00
beard%netscape.com
f7dd6dbe83
simplified string addition
2000-06-26 17:25:25 +00:00
beard%netscape.com
65ba0e5b4c
defined JSStringBase, and constructors from in JSString
2000-06-26 17:24:57 +00:00
beard%netscape.com
6a014e14e7
String addition: don't share structure with LHS.
2000-06-26 17:09:27 +00:00
beard%netscape.com
8df08ef410
added constructor from JSString&.
2000-06-26 16:55:01 +00:00
beard%netscape.com
ef32468a54
Reset register usage after generating each initializer statement.
2000-06-26 15:19:45 +00:00
beard%netscape.com
0b99360f25
Simplified NEW_CLASS, using a single do .. while loop, introducing nextPC instruction iterator to simplify initial case. now calls all defined constructors.
2000-06-26 15:06:36 +00:00
beard%netscape.com
75649210c7
Only call non-null constructors.
2000-06-25 17:04:38 +00:00
beard%netscape.com
d02dfb7e9d
Conditionally set constructor, if it has any instructions.
2000-06-25 17:04:01 +00:00
beard%netscape.com
1ad57a537f
updated dependencies
2000-06-25 16:44:29 +00:00
beard%netscape.com
26e7244738
check for non-null superClass
2000-06-25 16:43:25 +00:00
beard%netscape.com
85c8c4b500
hooked up superClass' scope as the prototype of a class's scope, to do method inheritance, removed bogus JSInstance::getSlotCount(), which overcounted slots.
2000-06-25 16:35:33 +00:00
beard%netscape.com
c06681035f
Added calls to superClass constructors.
2000-06-24 22:42:43 +00:00
beard%netscape.com
7b4f21e16e
JSInstance::getSlotCount() no longer recursive.
2000-06-24 22:42:15 +00:00
beard%netscape.com
8127cef905
Beginning support for superclass slots.
2000-06-24 22:07:00 +00:00
beard%netscape.com
c8cdd76d90
Added emptyArgs, removed unused return value in readEvalFile
2000-06-24 05:42:51 +00:00
beard%netscape.com
196dfcb773
enable RTTI
2000-06-24 05:36:52 +00:00
beard%netscape.com
0dcdb5889f
VC++ doesn't like local classes in templates.
2000-06-24 05:36:09 +00:00
beard%netscape.com
5d6bcd66f6
major surgery to enable the "load()" native function.
2000-06-24 05:25:33 +00:00
beard%netscape.com
7b61502b1e
Experiment with looking up methods in the prototype chain.
2000-06-24 05:22:23 +00:00
beard%netscape.com
d16865cfcb
Always use the target object, regardless of where a method property is found along the prototype chain.
2000-06-24 05:21:49 +00:00
beard%netscape.com
b8667057a3
When generating a reference to "this" use the current code generator's mClass when appropriate.
2000-06-24 05:21:03 +00:00
rginda%netscape.com
5159f8b51d
fixing source stepping (opcode stepping to come back later)
...
debugger is now quiet by default.
2000-06-24 02:53:29 +00:00
beard%netscape.com
6519ffb31d
Removed JSType::isClassType().
2000-06-24 02:51:34 +00:00
beard%netscape.com
be1f23517c
Added JSClass::get/setConstructor().
2000-06-24 02:51:03 +00:00
beard%netscape.com
83ca8f326d
Added call to constructor when executing NEW_CLASS.
2000-06-24 02:50:23 +00:00
beard%netscape.com
cb43927903
Generating default constructor to run slot initializers.
2000-06-24 02:49:45 +00:00
beard%netscape.com
db5e4eeed7
testCompile() is static
2000-06-24 01:04:58 +00:00
rogerl%netscape.com
1f65c8a44c
typing 'this'
2000-06-24 01:02:34 +00:00
rogerl%netscape.com
ac7b311416
Got newClass working, added printProperties for instances, some slot
...
stuff is happening.
2000-06-24 00:50:59 +00:00
beard%netscape.com
69d8a01263
added NEW_CLASS instruction, to instantiate classes.
2000-06-23 23:49:48 +00:00
beard%netscape.com
24a81ca7ca
added NEW_CLASS instruction.
2000-06-23 23:49:17 +00:00
rogerl%netscape.com
3930dfffb9
Adding slot handling to code gen.
2000-06-23 23:43:24 +00:00
beard%netscape.com
2be0b299fc
added NEW_CLASS instruction.
2000-06-23 23:41:27 +00:00
beard%netscape.com
a313672e06
Added JSClass::hasSlot, getSlotCount(), and JSInstance.
2000-06-23 23:25:55 +00:00
beard%netscape.com
8132a040d4
JSValue::type now JSType* instead of const JSType*, all predefined JSType objects no longer const as well.
2000-06-23 23:25:14 +00:00
rogerl%netscape.com
9d4fb54c88
Removed FUNCTION instruction, other class related junk.
2000-06-23 22:53:09 +00:00
rginda%netscape.com
b4077ed50c
Added debugger opcode, change InstructionMap to a std::map, print source lines while tracing
2000-06-23 22:27:17 +00:00
rogerl%netscape.com
a03db28a3b
Add return statement if the function doesn't end with one
2000-06-23 21:20:03 +00:00
beard%netscape.com
0b87b860eb
added assertion to ensure that mPC is always valid before fetching the next instruction.
2000-06-23 06:10:14 +00:00
beard%netscape.com
107dbc95b6
Additional JSClass processing: defining slots, generating methods.
2000-06-23 05:13:04 +00:00
beard%netscape.com
ff711f4a8f
When using a JSScope that has a parent scope, don't bother defining the standard properties, they will be shared.
2000-06-23 05:10:46 +00:00
beard%netscape.com
03ee321bef
A JSClass is a JSType now, and has a JSScope. Added addSlot, getSlot, getScope.
2000-06-23 05:09:37 +00:00
beard%netscape.com
e03ab761d7
remove unused file.
2000-06-23 04:10:04 +00:00
drapeau%eng.sun.com
72597d4d70
Two main things:
...
1) Fix for 23775 (three files changed for this)
2) Many OJI unit tests added.
2000-06-23 02:28:31 +00:00
beard%netscape.com
585fef1917
putting the JSClass* in the current global scope, and looking up superclass rereferences.
2000-06-23 02:22:55 +00:00
rogerl%netscape.com
1a2c265dd0
Added support for 'debugger' as a statement. (Rob made me)
2000-06-23 00:08:10 +00:00
beard%netscape.com
0d1c72d6a6
JSClass support.
2000-06-21 23:58:17 +00:00
beard%netscape.com
d193ec4ea0
initial checkin, starting on a representation for JS2 classes.
2000-06-21 23:57:09 +00:00
rogerl%netscape.com
3783f2c99e
Work to support 'this'.
2000-06-21 22:32:21 +00:00
nboyd%atg.com
2640d85998
Fix javadoc warning
2000-06-21 15:49:14 +00:00
rogerl%netscape.com
0bb6f588ba
Changed use of Register to TypedRegister throughout.
2000-06-20 22:45:45 +00:00
rogerl%netscape.com
c23aa15cea
Support for TypedRegister
2000-06-20 22:44:46 +00:00
pavel%gingerall.cz
f21b6d3d1a
- workaround of -rdynamic (JS_PERLCONNECT only)
2000-06-16 08:56:03 +00:00
brendan%mozilla.org
b07fc1d1bb
sfraser@netscape.com's fine GC_MARK_DEBUG enhancement for XPConnect.
2000-06-16 04:34:00 +00:00
rogerl%netscape.com
a0ca8346b0
Added tests for scripts as strings.
2000-06-16 01:37:47 +00:00
rogerl%netscape.com
63047e7baf
Mucking about with operator overlaoding plus initializing global context
...
- beginning type stuff.
2000-06-16 01:36:59 +00:00
rogerl%netscape.com
c36f967be2
Fixed spelling.
2000-06-16 01:35:25 +00:00
rogerl%netscape.com
2e3359c741
Added op= support.
2000-06-15 16:03:54 +00:00
nboyd%atg.com
813e60ba07
Wrapping a class produces a NativeJavaClass.
2000-06-15 14:00:31 +00:00
rogerl%netscape.com
22b93140d6
Mark top-level execution as 'script' rather than function - to handle
...
vars correctly.
2000-06-14 23:28:38 +00:00
rogerl%netscape.com
f32f769135
Added 'Function' instruction, plus suppresses class output if there is
...
no super specified. (ok it's a hack, but it works)
2000-06-14 23:27:28 +00:00
rogerl%netscape.com
dae9b1607b
Adding support for Functions and Vars, preXcrement, object literals.
2000-06-14 23:26:15 +00:00
nboyd%atg.com
94e1edf2e9
Fix bug 42097
2000-06-14 13:39:44 +00:00
pavel%gingerall.cz
34337bd829
- fixes in original version of perlconnect (JSVALToSV SVToJSVAL etc.)
...
- object delegation (like JSCreateObject) Perl->JS
- ParlValue handles PerlObject correctly
- undef values handled correctly (in both directions)
- JS arrays may be tied to perl arrays
- error handlers supported on Perl side
- no globals
- several minor fixes
2000-06-14 07:23:58 +00:00
pavel%gingerall.cz
122e709f36
- minor change of jsperl.h inclusion, matters for perlconnect build only
2000-06-14 07:18:41 +00:00
rginda%netscape.com
b135be69a0
-- NOT PART OF THE BUILD --
...
Conditionally build lcshell w/ jdk 1.1.8 or 1.2.2 on windows
2000-06-14 00:14:56 +00:00
mkaply%us.ibm.com
739f68cd6d
# 37239
...
r = mccabe, a = brendan
OS/2 bring-up - PR_CALLBACK for VisualAge
2000-06-14 00:07:08 +00:00
mccabe%netscape.com
9eeb8e5a67
First part of fix for 38495, support for exposing plugin methods to JavaScript.
...
This patch teaches XPConnected objects to look in their JavaScript __proto__ chain for any names they can't resolve themselves. The rest of the fix to this bug sets the original DOM node object as the prototype of a new xpconnect-exposed plugin object, so javascript accesses will see names from both objects.
r=jst,brendan
a=beard
2000-06-13 23:18:21 +00:00
nboyd%atg.com
a56f1e6373
Begin 1.5R2 effort.
...
Commit the following contributions:
* Andi Vajda's changes to allow embedders to capture the generated bytecode (and thus control
generated class names).
* Marshall Cline's changes to allow embedders to override the default Java object wrapping
behavior
* Kurt Westerfeld's change to handle calling static methods better
2000-06-13 14:33:54 +00:00
scc%mozilla.org
55650a35b3
fix type equivalence between |PRUnichar| and |jschar| now that |PRUnchar| may be |wchar_t| on select platforms
2000-06-12 23:52:31 +00:00
rogerl%netscape.com
76fb0716ce
Added check for FORMAT characters in new unicode cr/lf handling code.
2000-06-12 17:56:05 +00:00
brendan%mozilla.org
c01c46739f
Comply with weird ECMA nit: call (o.f)() (note parens around the function expression) must bind 'this' to the global object, not to o\! (41864, r=shaver).
2000-06-08 06:46:18 +00:00
nboyd%atg.com
6d2408fa37
Fix formatting.
2000-06-07 14:51:08 +00:00
nboyd%atg.com
9cb3a95e5d
Fix the following problem:
...
Subject:
Odd behaviour on placement of .jar files?!
Date:
Mon, 05 Jun 2000 10:46:08 -0700
From:
John Raykowski <xski@xski.org>
To:
nboyd@atg.com
Hello,
I didn't want to post this directly as a rhino bug 'coz I think it may
be more of a JDK thing, but I thought I'd toss it to you as well.
The goal is to create a JavaScript object that implements a Java
interface. Straightforward enough and the example on the page using
ActionListener works without a hitch. However, when I try to do the
same with my own interface, I get an error message: error instantiating
({0}): class {1} is interface or abstract (coming from
NativeJavaClass.construct).
Here's where it gets a bit strange. Normally, I run with the jar files
in jre/lib/ext. When I remove the rhino files from jre/lib/ext and
reference them explicitly on the commandline with the -cp option, it
works as expected and my script can implement the interface just fine.
Go figure.
Anyhoo, there ya go. Like I said, I think its a JDK issue, but I
thought you'd be interested. The attached zipfile contains a set of
sample code to demonstrate this problem.
Thanks heaps,
-jmr
2000-06-07 14:50:47 +00:00
brendan%mozilla.org
71d336d3a2
Use localizable error message for out of memory.
2000-06-06 04:54:04 +00:00
brendan%mozilla.org
254d95a427
Better fix, really (r=shaver for sure).
2000-06-06 04:41:05 +00:00
brendan%mozilla.org
53389789d1
Better control flow for catch clause code generation (r=shaver).
2000-06-06 04:27:37 +00:00
mccabe%netscape.com
95640360aa
Fix to potential leak introduced with fix to 40406.
...
Be conservative in handling the lifetime of the safe context created by XPConnect to execute JS Components, and save it off to be destroyed at cleanup time, even if some other safe context is registered with XPConnect via SetSafeJSContext.
r=vishy, a=brendan
2000-06-06 00:01:25 +00:00
brendan%mozilla.org
25b2dee02f
Fix missing $ bug when testing test_dir.
2000-06-03 19:20:03 +00:00
brendan%mozilla.org
a6d231a46a
Avoid zero-length malloc (and assertbotch) in array_sort, just return true early\!
2000-06-03 19:00:28 +00:00
warren%netscape.com
958ed96edd
Renaming nsIAllocator to nsIMemory (and nsAllocator to nsMemory). API cleanup/freeze. Bug #18433
2000-06-03 09:46:12 +00:00
waldemar%netscape.com
2c96ad5323
Added parsing and printing of classes, interfaces, and namespaces
2000-06-02 04:35:44 +00:00
brendan%mozilla.org
a9f1d30ada
Fix ECMA DontDelete compliance problems, which create getter/setter security holes (40760, r=shaver).
2000-06-02 00:02:46 +00:00
nboyd%atg.com
5580e3ec96
Fix "in" operator for compiled mode.
2000-06-01 23:40:29 +00:00
nboyd%atg.com
cce820de9c
Add column number and line source information to the EcmaError object.
2000-06-01 17:30:28 +00:00
mkaply%us.ibm.com
c99a5a0599
# 40177
...
r = leaf, a = brendan
Fix tab in makefile
2000-06-01 14:15:39 +00:00
waldemar%netscape.com
7812dc9a8e
Widened default line width to 30
2000-06-01 03:31:17 +00:00
waldemar%netscape.com
4fc6a829b4
Added function and constructor parsing and printing; fixed printing of blocks, compound statements, and ::
2000-06-01 03:30:58 +00:00
waldemar%netscape.com
17668e8a07
Added two-argument linearBreak
2000-06-01 03:30:19 +00:00
brendan%mozilla.org
fae789131e
Use JS_ValueToId to go from user to internal property id, for integer-id optimality (40731, r=shaver).
2000-05-31 22:10:53 +00:00
brendan%mozilla.org
5cad625cd0
Make JS_ExecuteScriptPart call the debugger hooks (41066, r=MyNGs@HotMail.com).
2000-05-31 21:57:46 +00:00
nboyd%atg.com
156c349f5c
check for null scope
2000-05-30 21:50:44 +00:00
nboyd%atg.com
52cdcf4338
Fix bug 40844
2000-05-29 16:57:13 +00:00
nboyd%atg.com
b0072ff365
Fix bug 39906
2000-05-28 19:01:24 +00:00
nboyd%atg.com
9c618cc232
Remove tests obsoleted by the change that access to nonexistent properties of Java objects
...
returns undefined rather than causing an error
2000-05-28 18:50:58 +00:00
nboyd%atg.com
53971d9482
for Java methods, print the signatures of the overloaded methods in a comment when
...
the JavaScript function wrapper's toString method is called
2000-05-28 04:25:07 +00:00
brendan%mozilla.org
eda440d4f6
Fix unreviewed changes made to fix 'Uninitialized variable compiler warnings'.
2000-05-28 00:02:26 +00:00
jst%netscape.com
1065a83626
Fixing bustage on solaris native builds. reported and reviewed by Tomi.Leppikangas@oulu.fi
2000-05-27 13:14:31 +00:00
edburns%acm.org
3d7b682c98
r=brendan
...
a=brendan
bug: 27362
This fix makes it so nsCLiveconnect.cpp doesn't #include
files within an extern "C" {} block. To make this work, I
simply moved the extern "C" {} to the minimum necessary
range. This required placing an "ifdef __cplusplus extern "C""
block in jsj_private.h, since nsCLiveconnect.cpp is the only
c++ file that includes jsj_private.h.
2000-05-27 01:12:40 +00:00
rogerl%netscape.com
6e0db88822
Removed old branches, changed offset printing to handle NULL operand.
2000-05-26 22:35:36 +00:00
rogerl%netscape.com
7535f22230
Update to new icg constructor etc.
2000-05-26 22:34:42 +00:00
rogerl%netscape.com
a7d428fee6
Statement fun
2000-05-26 22:33:05 +00:00
waldemar%netscape.com
fe2b190592
Added var, const, and for statements
2000-05-26 06:20:11 +00:00
shaver%mozilla.org
d7e842a0c5
use NS_METHOD for register/unregister callback, for Win32
2000-05-26 05:55:00 +00:00
shaver%mozilla.org
5cab829a39
fix build bustage -- I'm an ass
2000-05-26 05:18:31 +00:00
shaver%mozilla.org
c681e00cf1
remove useless nsIModule paste ( #22922 ), add debug() for JS components, use categories for component loaders, XPCONNECT_STANDALONE ( #39875 ), r=dp,waterson a=brendan
2000-05-26 04:56:23 +00:00
mkaply%us.ibm.com
2609bf3c3a
# 34106
...
r = leaf, a = brendan
Mistake was made with an earlier makefile checkin - removing double definition of EXTRA_DSO_OPTS
2000-05-25 14:25:04 +00:00