Граф коммитов

4759 Коммитов

Автор SHA1 Сообщение Дата
alecf%netscape.com 04309b9a82 remove JSLoader.xml as its no longer part of the build 2002-09-27 18:33:38 +00:00
alecf%netscape.com 6d569ff270 fix for bug 79175, merge jsloader into xpconnect
r=dbradley, sr=brendan
2002-09-27 18:33:02 +00:00
igor%mir2.org 735058d371 Add isGeneratedScript to DebuggableScript and its implementations to allow debuger to distinguish between scripts and functions coming from external files or ones defined vvia exec or new Function() 2002-09-26 20:19:39 +00:00
igor%mir2.org 32cc308b30 Fixing 169830: I replaced in jsFunction_concat calls to hasLengthPropert by ScriptRuntime.instanceOf and as hasLengthPropert is no longer used, I removed it as well. 2002-09-24 15:57:58 +00:00
igor%mir2.org fcaecf752d In newObject pass top level scope to the constructor, not ctor.getParentScope() to take into account hasCompileFunctionsWithDynamicScope() 2002-09-24 14:14:00 +00:00
igor%mir2.org 772d42aff7 In getClassPrototype replace ScriptRuntime.getTopLevelProp by getProperty to avoid double call to getTopLevelScope 2002-09-24 14:10:53 +00:00
igor%mir2.org 0e22f177f1 In jsFunction_concat inline ScriptRuntime.newObject to throw JavaScriptException if array constructor throws one and avoid double call to ScriptableObject.getTopLevelScope() 2002-09-24 14:08:22 +00:00
igor%mir2.org 0b6e1ef741 Change ScriptRuntime.getTopLevelPropery to call ScriptableObject.getProperty in place of explicit loop over the prototype chain. It makes sure that all Scriptable.get(property, start) on the prototype chain are called with a proper start value.
Add getExistingCtor to get existing constructor property or throw an exception.
2002-09-24 14:05:24 +00:00
igor%mir2.org 846c9cdfd3 Remove the minimalAllocation field and instead pre-allocate data array in the constructor if necessary. 2002-09-24 11:21:19 +00:00
igor%mir2.org 11edce55c2 Change NativeArray.getLengthProperty to return long instead of double as its results are always uint32 and adjust its usage accordingly . Fix Context.getElements documentation to state that it returns empty array, not null, if object does not have a reasonable length property. 2002-09-24 09:29:27 +00:00
brendan%mozilla.org 59d108da82 - String.prototype.match, .search, and .replace all use match_or_replace as
a common subroutine, but only replace might need to dereference the regexp
  created from a non-regexp-type argument, which is converted to string and
  compiled into a regexp data struct unowned by any rooted object.  This case
  was broken: a dangling GlobData.regexp pointer could be dereferenced in the
  "lambda replace" code under str_replace, in find_replen, *after* the call
  to match_or_replace had destroyed the regexp and returned to str_replace.
  Bug 167658 reported the symptoms.
- Consolidate GlobData members into a flags word, avoiding yet another ad hoc
  paramter to m_or_r (forceFlat).
- Use a local root in str_match to avoid adding and removing a global root.
2002-09-23 18:33:17 +00:00
pschwartau%netscape.com 4b80eca043 Initial add. Regression test for bug 170193. 2002-09-22 22:11:40 +00:00
brendan%mozilla.org 08cc28881a Fix middle-delete-function-with-duplicate-formals (170193, r=shaver). 2002-09-22 19:34:07 +00:00
pschwartau%netscape.com 84e53d1eff Initial add. Regression test for bug 169534. 2002-09-21 03:17:25 +00:00
brendan%mozilla.org a96179b15f Fix Array.prototype.concat to special-case and flatten Array arguments (including |this|) only, not any object with array-like .length (169795, r=rogerl, who fixed my tired morning patch). 2002-09-20 18:45:05 +00:00
pschwartau%netscape.com 581d06bb3b Adding two new sections by igor@icesoft.no. 2002-09-20 17:43:16 +00:00
pschwartau%netscape.com 7c133e48e5 Fixing typos. 2002-09-20 17:04:08 +00:00
seawood%netscape.com 3a6afee554 Adding placeholders to silence cvs warnings 2002-09-20 09:14:42 +00:00
pschwartau%netscape.com a631b00772 Initial add. Tests ECMA-262 Edition 3 Section 15.4.4.4. See bug 169795. 2002-09-20 03:35:24 +00:00
pschwartau%netscape.com 4541940e34 Initial add. Regression test for bug 169497. 2002-09-19 01:24:45 +00:00
brendan%mozilla.org 8439ac2b0f Cosmetic nit-picks: respect 80-column limit, use NULL, not 0, for ptr init. 2002-09-18 18:44:47 +00:00
caillon%returnzero.com 8413e578a9 Bug 169321 - Passing strings generated by .match or .substr into Components.lookupMethod() was throwing exceptions because those strings
are not atomized.
Checking in for Johnny Stenback <jst@netscape.com>
r=dbradley@netscape.com, jaggernaut@netscape.com
sr=brendan@mozilla.org
2002-09-18 13:44:43 +00:00
igor%mir2.org 6bd97db281 Reduce "new X" usage by inlining few classes or packing their members into long field 2002-09-18 12:57:09 +00:00
igor%mir2.org bfc5c0bbee C relics removal: no need to check for null after "new X" 2002-09-18 12:50:51 +00:00
brendan%mozilla.org 399042088f Fix blunder in obj_propertyIsEnumerable from last checkin (156354, r=shaver). 2002-09-16 23:00:03 +00:00
pschwartau%netscape.com 63bee85c59 Initial add. Regression test for bug 156354. 2002-09-16 22:24:42 +00:00
pschwartau%netscape.com 6b8bdd0bc3 Moving all comments to the top of the file. 2002-09-16 19:13:43 +00:00
pschwartau%netscape.com 40023632cf Trivial change: more efficiency in detecting Rhino shell. 2002-09-16 18:57:22 +00:00
brendan%mozilla.org 3f993ab41a Better macro name, nit-pick on last checkin. 2002-09-14 06:40:59 +00:00
pschwartau%netscape.com 9a56211808 Initial add. Regression test for bug 168347. 2002-09-14 00:12:25 +00:00
brendan%mozilla.org c34626f1b7 Followup fix for 168347, r=rogerl: avoid temporary bloat due to QuoteString without sprinter offset retract. 2002-09-13 22:40:27 +00:00
brendan%mozilla.org 63f9f09b0c Restore correct form of assertion removed by last rev. 2002-09-13 22:32:59 +00:00
brendan%mozilla.org 83b1687bf5 Reorder QuoteString calls added for bug 58274 to avoid overwriting just-popped strings in the string-stack (168347, r=shaver). 2002-09-13 06:58:24 +00:00
brendan%mozilla.org 3d40b744cb Followup fix to op vs. implicit JSOP_GETELEM blunder in last checkin (168302, r=sspitzer). 2002-09-12 21:38:07 +00:00
brendan%mozilla.org 9de5f0f245 Restore enumeable, permanent, readonly single-char elements to string objects; fix propertyIsEnumerable to work with shared permanent proto-properties (167910, r=rogerl). 2002-09-12 19:34:59 +00:00
brendan%mozilla.org be47a7caf5 Limit code generator recursion using iterative techniques; also limit js_EmitTree frame size using arena allocation of cg2 (96526, r=shaver). 2002-09-12 07:56:35 +00:00
brendan%mozilla.org 98f420cadc Remove unused variable left from last checkin (not part of build). 2002-09-09 23:24:48 +00:00
pschwartau%netscape.com 9366f6f27f Initial add. Tests ECMA-262 Edition 3 Section 8.6.2.6 (default value of objects). See bug 167325. 2002-09-09 21:14:28 +00:00
brendan%mozilla.org 4780c89ee1 Fix old bogus error reporting suppression around shell's implicit ToString on command result values, and clean up related #if 0 cruft after it (167325, not part of default build). 2002-09-08 21:46:13 +00:00
dougt%netscape.com c5e8f896cd 166917. Clean up xpcom SDK includes. r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com 2002-09-07 17:13:19 +00:00
dougt%netscape.com d94b37c68a Fixes up the timer interface. b157136, r=rpotts@netscape.com, sr=alecf@netscape.com, a=rjesup@wgate.com 2002-09-07 05:38:16 +00:00
brendan%mozilla.org e6a03af4bf Fix error.stack computation to avoid toString as well as toSource on objects (166743, r=rginda, a=rjesup). 2002-09-05 22:25:48 +00:00
pschwartau%netscape.com 04e3f9898b Have factored skip regress-96526.js into three separate tests. Skip them. 2002-09-04 22:56:39 +00:00
pschwartau%netscape.com 4d99a3eadb Breaking up test regress-96526.js into separate testcases - 2002-09-04 21:56:13 +00:00
pschwartau%netscape.com 05ee55776f Removing this test to break it up into three separate tests: regress-96526-001.js, -002.js, -003.js 2002-09-04 21:53:40 +00:00
igor%mir2.org 1748a34490 Store line number and operation type as int field instead of wrapping them into Integer; use Node subclass for nodes with string data; add few explicit checks about node structure assumptions. 2002-09-04 09:28:58 +00:00
brendan%mozilla.org 146f65e998 Checking in rogerl's patch for 141078, to restore pre-ECMA perl-ish octal escape sequences in regexps (r=me). 2002-09-04 06:05:56 +00:00
dougt%netscape.com c1b9f8114d Move FROZEN ContractID into nsXPCOM.h and define r=rpotts, sr=alec, b=166426 2002-09-03 23:36:13 +00:00
igor%mir2.org 2647231ce4 Use Node subclass to represent number literals to avoid creation of Double object. 2002-09-03 12:34:56 +00:00
brendan%mozilla.org 1059f1372b Store lastIndex in a reserved slot in each regexp instance, mapped by a shared singleton property in RegExp.prototype, for ultimate thread-safety and best sharing (76717, r=rogerl [NB: SpiderMonkey is now a restricted module, a la NSPR]). 2002-09-01 19:57:50 +00:00
bryner%netscape.com 39ed63d1de Use -mdynamic-no-pic when building non-PIC code with gcc 3.1 on MacOS 10.2 (bug 165851). r=cls. 2002-08-31 04:33:02 +00:00
pschwartau%netscape.com 6429b5c681 Whitespace fix. 2002-08-31 01:20:40 +00:00
pschwartau%netscape.com ba24308ef8 Initial add. Regression test for bug 165353. 2002-08-31 01:05:09 +00:00
brendan%mozilla.org 15c11e55a7 Disable new fp->objAtomMap code to relieve blocker bug 165201. 2002-08-28 18:53:25 +00:00
brendan%mozilla.org 8d9d0a0155 Fix for embeddings that precompile and execute using different globals/standard-classes: clone regexp objects at runtime, on demand, to have the right parentage (164697, r=rogerl, sr=shaver). 2002-08-27 23:28:59 +00:00
igor%mir2.org eeb5fecca0 Workaround in JS Math.pow implementation for java.lang.Math.pow brokeness in some JVM. 2002-08-27 08:14:49 +00:00
igor%mir2.org b1503f7570 Fixing a bug reported by Steven Beal where Interpreter.icodeTokenLength() and In
terpreter.dumpICode() used wrong size for CLOSURE opcode arguments.
2002-08-27 08:12:25 +00:00
seawood%netscape.com a4259a9c83 Use $(patsubst) instead of $(shell echo | sed) to force certain files to be built with a specific optimization level. This avoids potential bustage arising from certain characters not being properly escaped when the commandline flags are evaluated multiple times.
Fixing Irix tinderbox bustage.
2002-08-27 01:37:52 +00:00
dougt%netscape.com d0dc56776f exports frozen interface to dist/sdk using new SDK variable. 164717. r=cls, sr=alec 2002-08-27 01:05:21 +00:00
alecf%netscape.com 5d2a2e5fef bug 157624 - freeze nsISupportsPrimitives, which includes changing nsISupport[C]String over to using A[C]String and fixing consumers
r=dougt, sr=darin
2002-08-26 21:20:34 +00:00
dougt%netscape.com d9188b4471 Freezes the nsIProperties interface. 162114. r=ccarlen, sr=alecf. Freezes the mozIJSSubScriptLoader interface. 157136. r=rginda, sr=alec. 2002-08-26 20:36:44 +00:00
rogerl%netscape.com f770dea458 Bug 58274. Support double byte characters for toSource identifiers.
r=khanson, sr=brendan.
2002-08-26 20:07:58 +00:00
igor%mir2.org bc8622a010 Fixing a bug reported by Steven Beal where Interpreter.icodeTokenLength() and Interpreter.dumpICode() used wrong size for REGEXP opcode arguments. 2002-08-26 09:11:54 +00:00
igor%mir2.org db9026be35 Renaming the TokenStream.OBJECT constant to TokenStream.REGEXP for better reflection of semantics. 2002-08-26 08:06:27 +00:00
brendan%mozilla.org c0e5a5c192 One-character fix to a comment, use modulus with %, not mask. 2002-08-24 22:14:15 +00:00
pschwartau%netscape.com ec7e89fcd8 Removing this testcase from skip list; I have adapted it to run in Rhino. 2002-08-23 22:52:20 +00:00
pschwartau%netscape.com 77e0403675 Editing comments. 2002-08-23 22:48:38 +00:00
pschwartau%netscape.com 039932d264 Rhino can't seem to handle the largest array, so we'll skip this case in Rhino - 2002-08-23 22:38:45 +00:00
pschwartau%netscape.com 51db817c7b Re-ordering the sections to try the largest possible array first. 2002-08-23 22:12:12 +00:00
pschwartau%netscape.com ee72b003cc Editing comments in the test. 2002-08-23 21:56:21 +00:00
pschwartau%netscape.com 647d7d20c4 Removing two extraneous lines. 2002-08-23 21:47:05 +00:00
pschwartau%netscape.com 37ee97b3e3 Adapted the test to run in Rhino. 2002-08-23 21:42:32 +00:00
brendan%mozilla.org 536fe0ae9f My tweaks on top of a patch from Mark Hawlitzeck <mhawlitzeck1@earthlink.net> to avoid last-ditch gc failure (162779, sr=jband/shaver). 2002-08-23 07:56:11 +00:00
dbradley%netscape.com a73b830e87 Bug 160602 - Patch sets FPU precision to 53 bit mantissa. r=khanson, sr=brendan 2002-08-20 12:56:30 +00:00
pschwartau%netscape.com c932714aab Re-factoring for greater clarity. 2002-08-20 04:42:33 +00:00
pschwartau%netscape.com 1da0b578de Modifying test to handle Function.prototype.toString() output whether it is escaped or not. 2002-08-20 01:57:55 +00:00
pschwartau%netscape.com 6158fbb29b Adding a comment. 2002-08-19 21:46:26 +00:00
igor%mir2.org 2809a2cb52 Fixing line number generation for the empty return statement which was reported by Steven Beal. It was caused by missed update of lineno in statementHelper when dealing with return;. 2002-08-16 06:42:27 +00:00
rginda%netscape.com 4a1468f8c2 apply scole@planetweb.com's fix for JS_InitClass (bug 162946) 2002-08-16 05:11:36 +00:00
igor%mir2.org 89b8e4b265 Fixing ArrayIndexOutOfBoundsException reported by Steven Beal caused by broken code to setup endLine in SourceInfo.updateLineInfo. 2002-08-15 06:42:45 +00:00
brendan%mozilla.org 27130503a6 Avoid reloading rt->interruptHandler on each cycle of the bytecode interpreter (121414, r=rginda, sr=jband). 2002-08-14 00:17:27 +00:00
pschwartau%netscape.com 7ff3de2b85 Amending testcase to expect a run-time "out of memory" error. Still tests that we don't crash. 2002-08-14 00:12:54 +00:00
seawood%netscape.com 8ae6c40f5d Removing old nmake build makefiles. Bug #158528 r=pavlov 2002-08-10 07:55:43 +00:00
timeless%mac.com 3b73ee86f9 sorting pure js engine includes alphabetically to match js engine prevailing style
rs=brendan
2002-08-09 00:49:44 +00:00
timeless%mac.com 705f6bfa75 ### Building "Viper1-Disk:Source Tree:mozilla:js:macbuild:_JavaScript.mcp" (Thu Aug 8 15:19:17 2002)
Error   : function has no prototype
jslock.c line 854   js_FinishDtoa();
adding an include and hoping it works
2002-08-08 22:36:15 +00:00
brendan%mozilla.org 217cf61257 Fix js_NewObject not to share proto's map if proto and obj don't have the same number of reserved slots (112974, r=rogerl, sr=jband). 2002-08-08 21:51:54 +00:00
seawood%netscape.com 4b567239da Misc build cleanup v1:
Cleanup win32 configure output. Remove EMACS
Bug #161461 r=bryner
2002-08-08 21:35:45 +00:00
timeless%mac.com 772ebc1aeb Bug 148171 js_FinishDtoa() not called unless JS_THREADSAFE is set
patch by scole@planetweb.com r=khanson sr=shaver
2002-08-08 20:53:14 +00:00
jdunn%netscape.com 4353c8997d fixing AIX optimization issue with jsatom.c
# 161542
r=cls@seawood.org
submitted by pkw@austin.ibm.com, checking in for khanson@netscape.com
2002-08-08 13:22:51 +00:00
brendan%mozilla.org 8f14f961d9 Fix a couple of jsemit.h glitches, and a benign but confusing hard case to do with extended switch jumps in jsemit.c's OptimizeSpanDeps (158382, r=khanson, sr=shaver). 2002-08-08 00:30:20 +00:00
dbradley%netscape.com 317ebffa27 Bug 159667 - xpconnect needs support for finding *real* wrapped native methods. r=dbradley, sr=jst patch=jband 2002-08-07 23:39:11 +00:00
brendan%mozilla.org bfcad6929a Fix a macro name (LIMIT, not MAX -- fencepost, not maximum value; r=lumpy, sr=jack). 2002-08-07 20:22:38 +00:00
seawood%netscape.com fdafe18afe Remove unused defines:
_IMPL_NS_HTML
_IMPL_NS_RDF
_IMPL_NS_WEB
USE_NSREG

Patches for removing above defines contributed by Stephen Walker <walk84@yahoo.com>.
Bug #125118 r=cls sr=bryner
Bug #160397 r=cls sr=bryner
Bug #160628 r=cls
Bug #160451 r=cls sr=bryner

_IMPL_NS_VIEW

Patches for removing above define contributed by Brian Ryner <bryner@netscape.com>
Bug #160416 r=cls
2002-08-07 06:08:00 +00:00
alecf%netscape.com 3703f3c61b bug 157624 - prep for freezing nsISupports* primitives by renaming the string classes appropriately
nsISupportsString  -> nsISupportsCString
nsISupportsWString -> nsISupportsString
r=dougt, sr=jag
2002-08-06 00:53:19 +00:00
pschwartau%netscape.com 8e001f3cf3 Correcting a mistake in the test. 2002-08-02 22:01:35 +00:00
pschwartau%netscape.com 8ee7b9ec81 Initial add. Testing regexps containing octal escape sequences. See bug 141078. 2002-08-02 21:27:12 +00:00
brendan%mozilla.org df8efa5a0f Steven Don's patch for bug 160592, opt:noicf linker option required for release builds (not part of Mozilla build). 2002-08-02 05:34:41 +00:00
pschwartau%netscape.com 0a859a05e8 Adding a comment 2002-08-02 00:13:00 +00:00
jdunn%netscape.com d83f3bcd52 removing antiquated aix/jdk1.1.6 hackery
sr=brendan@mozilla.org
r=rogerl@netscape.com
a=asa@mozilla.org
# 158115
2002-08-01 11:04:21 +00:00
brendan%mozilla.org 6184d85eef khanson's patch with a comment elaboration for bug 157652 (r=rogerl, sr=me, a=rjesup). 2002-07-31 21:42:12 +00:00
dbradley%netscape.com 5481eb216c Added makefile.in to prepare for nmake going away. This is built separately, not part of the mozilla build process. 2002-07-29 20:47:02 +00:00
brendan%mozilla.org d4bcf5a798 Finally fix 137000, which requires working around an MSVC ISO-C violation ('identical COMDAT folding', 151066, r=brendan/jrgm, sr=bryner/shaver, a=asa). 2002-07-24 01:48:40 +00:00
rogerl%netscape.com c437701852 Changed decimal escape handling to backward compatible rather than ECMA3
conforming. (Bug#158159)
2002-07-23 21:38:03 +00:00
brendan%mozilla.org 60cd7dd216 Don't return 1 cast to JSProperty* for a property found in a non-LiveConnect prototype object (155740, r=rogerl, sr=jband, a=chofmann/blizzard/scc). 2002-07-19 22:00:03 +00:00
pschwartau%netscape.com 255ceec550 Initial add. Regression test for bug 141078. 2002-07-18 18:36:44 +00:00
seawood%netscape.com 7924fa60a6 Remove DARWIN define from osx builds as it cripples the feature set provided by OSX headers.
Bug #154232 r=wtc sr=scc a=scc
2002-07-18 04:09:30 +00:00
pschwartau%netscape.com 21bef9048a Skip testcase for bug 157652. Will not fix this in Rhino; the OOM error is reasonable. 2002-07-17 18:20:58 +00:00
pschwartau%netscape.com c86a38c3f2 Changing summary text. 2002-07-16 21:35:30 +00:00
pschwartau%netscape.com 42d131f79e Initial add. Regression test for bug 157652. 2002-07-16 21:23:58 +00:00
igor%mir2.org 7f84dd1785 Serialization fixes to correctly restore members and related fields in NativeJavaClass. 2002-07-16 21:17:09 +00:00
igor%mir2.org 05d4e426a8 Fixing the bug 157196: custom serialization of ScriptableObject not to save deleted/empty slot. 2002-07-16 21:15:51 +00:00
igor%mir2.org b0651090a1 Checking for 1.2 version in toString for objects and arrays is replaced by calling cx.hasFeature(Context.FEATURE_TO_STRING_AS_SOURCE) to allow to control toString from applications without switching on other JS 1.2 features. 2002-07-16 17:42:18 +00:00
igor%mir2.org 31a00f4fbb I removed startString/getString and their support code as TokenStream uses its own buffer and fixed the bug 151337 which was cause by incorrect getLine 2002-07-16 17:37:46 +00:00
pschwartau%netscape.com fe4ff91e5e Initial add. Regression test for bug 58274. 2002-07-15 23:20:15 +00:00
pschwartau%netscape.com cef0524103 Initial add. Testing identifiers with double-byte names; see bug 58274. 2002-07-15 23:15:52 +00:00
igor%mir2.org 339b48088d I changed TokenStream to use internal buffer in place of LineBuffer#startString/getString to store currently read characters for identifiers, strings and numbers. For the price of yet another character coping it allows to simplify code logic especially regarding interaction with LineBuffer.
I also fixed http://bugzilla.mozilla.org/show_bug.cgi?id=157509
2002-07-15 18:49:42 +00:00
pschwartau%netscape.com b6e224c759 Correcting two sections of test. 2002-07-15 17:28:05 +00:00
pschwartau%netscape.com 3d0481ed1e Expanding a comment for one section in greater detail. 2002-07-15 17:04:38 +00:00
pschwartau%netscape.com 7e7822fb4b Initial add. Regression test for bug 157509. 2002-07-15 15:22:35 +00:00
pschwartau%netscape.com 21c78d339e Comment edit. 2002-07-15 15:07:33 +00:00
pschwartau%netscape.com 3b26b79276 Added revision date + comment clean-up. 2002-07-15 15:06:37 +00:00
pschwartau%netscape.com b8851070cb Correcting an error in the test. See bug 155291. 2002-07-15 00:40:14 +00:00
pschwartau%netscape.com 780a512ba9 Correcting errors in test. See bug 155289. 2002-07-15 00:29:37 +00:00
pschwartau%netscape.com 23870b9b8b Correcting errors in the test. See bug 155289. 2002-07-15 00:04:22 +00:00
pschwartau%netscape.com 2f46a99fde Correcting errors in the test. See bug 155289. 2002-07-14 23:57:03 +00:00
pschwartau%netscape.com 5b02e625d1 Correcting an error in one section of the test. See bug 155285. 2002-07-14 23:42:23 +00:00
pschwartau%netscape.com 5841696264 Rhino has also decided to conform with SpiderMonkey on this test. Adding early return for Rhino as well. 2002-07-14 22:34:50 +00:00
pschwartau%netscape.com 7ed81a0ccd Rhino has also decided to conform with SpiderMonkey on this test. Removing early return for Rhino. 2002-07-14 22:23:52 +00:00
rginda%netscape.com 08debd5039 bug 155838, "Infinite loop caused by strange code", r=peterv, sr=brendan, a=roc+moz@cs.cmu.edu
don't leave gDeadScripts pointing at garbage.  May or may not fix the problem at hand, but is an improvement in either case.
2002-07-12 21:28:29 +00:00
igor%mir2.org 212dbaa899 Call to InterpretedFunction.construct is inlined to avoid argument array allocation. 2002-07-12 19:40:49 +00:00
igor%mir2.org 0f91e59231 Creation and initialization of new object in BaseFunction.construct is moved to a separated function createObject to simplify inlining of InterpretedFunction.construct in Interpreter 2002-07-12 19:39:57 +00:00
igor%mir2.org 290f7f1a46 Added ObjToIntMap.intern() 2002-07-12 19:37:20 +00:00
brendan%mozilla.org e7e1409de9 Emulate IE6 by making RegExp.prototype match the empty string (156355, r=rogerl, sr=shaver, a=dbaron). 2002-07-12 04:54:57 +00:00
igor%mir2.org ede2d28ac2 When calling interpreted functions from Interpreter.interpret, pass current stack arrays to the callee to avoid creation of temporary argument arrays and wrapping double numbers into Double objects. 2002-07-11 21:17:34 +00:00
igor%mir2.org 52990d1b21 Optimizing encode/decode not to allocate temporary buffers if the result equals the original string 2002-07-11 21:10:36 +00:00
igor%mir2.org 6dd42762fe Optimizing NativeGlobal.js_escape, ScriptRuntime.escapeString not to create StringBuffer if there are no character to escape in the initial string. Workaround for JDK 1.1 compiler bug in the initialization of ScriptRuntime.ComparableClass. 2002-07-11 18:45:16 +00:00
igor%mir2.org 40b7178ec8 Fixing 136893: for(i in undefined), for(i in null) do not throw TypeError but treated as for(i in {}) 2002-07-11 18:39:24 +00:00
pschwartau%netscape.com bf47977f38 Initial add. Based on examples from ECMA-262 Ed.3 spec, Section 15.10.2 2002-07-10 23:09:48 +00:00
igor%mir2.org 35a869988d With Roger's <rogerl@netscape.com> new RegExp implementation Rhino passes:
js1_2/regexp/regress-9141.js
ecma_3/String/regress-104375.js
2002-07-10 22:14:48 +00:00
pschwartau%netscape.com 2d8a1cdbe2 Skip testcase for bug 152646. Will not fix this in Rhino; too much of a corner case. 2002-07-10 21:03:07 +00:00
igor%mir2.org bb0f73fb5d No more skiping of ecma/LexicalConventions/7.7.3.js, it works as DToA converts numbers to strings properly 2002-07-10 20:00:25 +00:00
brendan%mozilla.org e1fef918e9 Fix GC_MARK_DEBUG (DEBUG only, r/sr=dbaron). 2002-07-10 03:01:32 +00:00
rogerl%netscape.com aa1f6e4345 Fixes for bugs #155285 - Array.join(undefined) should use ','
#155289 - String.prototype.XXX.length has some wrong values
 #155291 - RegExp properties should be DontEnum
Plus fix for matching against RegEXp captures with undefined value.
2002-07-09 22:28:52 +00:00
igor%mir2.org a14335e198 Examples now uses try {} finally { Context.exit(); } to release Context even in case of errors 2002-07-09 17:49:16 +00:00
brendan%mozilla.org 3218d3f4c0 Null-check prop before dropping it (156354, r=khanson, sr=shaver). 2002-07-09 02:24:51 +00:00
brendan%mozilla.org 0465e3ac35 Eliminate broken old pre-ECMA switch case compile-time evaluation (144834, r=khanson, sr=shaver). 2002-07-09 02:15:49 +00:00
pschwartau%netscape.com cf83c07391 Trivial whitespace edit. 2002-07-09 00:48:13 +00:00
pschwartau%netscape.com 084f3c1133 Initial add. Regression test for bug 152646. 2002-07-09 00:43:15 +00:00
pschwartau%netscape.com 3dcadf4f0d Fixing mistake. Can't call printStatus(), etc. in js1_2 test directory, because js1_2/shell.js doesn't contain them. 2002-07-09 00:29:41 +00:00
timeless%mac.com e5366b1424 Bug 125411 [NuBus] Mac installer crashes with a type 12 error (SleepQInstall)
r=dmose sr=jst
2002-07-08 07:26:41 +00:00
pschwartau%netscape.com b1277f0b9b Initial add. Testing JS RegExp engine against results from Perl 5. 2002-07-08 04:03:11 +00:00
pschwartau%netscape.com 451a024ce1 Correcting the year in the copyright. 2002-07-08 03:58:27 +00:00
pschwartau%netscape.com d6131a082b Adding reference to bug 85721. 2002-07-08 03:36:34 +00:00
pschwartau%netscape.com 59653be598 Initial add. Testing JS RegExp engine against results from Perl 5. 2002-07-08 03:27:21 +00:00
pschwartau%netscape.com b3ec7432cd Initial add. Regression test for bug 144834. 2002-07-06 03:44:58 +00:00
igor%mir2.org 3815049c3a New security implementation. 2002-07-04 21:40:12 +00:00
timeless%mac.com bea9f48808 Bug 155466 clean up test consumers to correctly use NS_ShutdownXPCOM
r=dmose, sr=scc, moa: dougt, dbradley, gagan, harish, akk
2002-07-04 14:29:25 +00:00
brendan%mozilla.org d916599fd0 rogerl's fix to conform to ECMA by not enumerating regexp instance properties (155291, r=khanson, sr=brendan). 2002-07-03 21:07:53 +00:00
brendan%mozilla.org a1c47e682a rogerl's patch to fix some ECMA arity glitches (155289, r=khanson, sr=brendan). 2002-07-03 21:03:02 +00:00
brendan%mozilla.org 29b860201d khanson's fix for Function.prototype.apply.length ECMA glitch (145779, r=rogerl, sr=brendan). 2002-07-03 21:00:15 +00:00
rogerl%netscape.com 7d4a750bfb Bug #155285. Array.join(undefined) should use ',' - ECMA compatibility.
r=scole, sr=brendan.
2002-07-03 07:22:14 +00:00
timeless%mac.com 3d26b5e6ce Bug 154737 String(NaN) crashes JS Engine if JS_THREADSAFE is set
r=dbradley sr=brendan
2002-07-03 02:14:51 +00:00
seawood%netscape.com 8f6f1756ce Add CPP_THROW_NEW macro to the build system. This macro should be used when defining a local |operator new| function. It will be set to an empty throw function by default on all platforms except mac CW builds. This will allow us to not crash on systems that expect |operator new| to throw an exception by default and will suppress compiler warnings about how |operator new| should throw an exception instead of returning NULL.
Bug 149032 r=timeless sr=scc
2002-07-02 20:25:30 +00:00
rogerl%netscape.com 6ebd2105e5 Bug #154338, r=khanson,sr=jag. Misuse of string length field, when string
was dependent, extracted bad value for subsequent memory request.
2002-07-02 18:14:01 +00:00
pschwartau%netscape.com 054d1f4723 Adding new section authored by martin.honnen@t-online.de from bug 150859. 2002-07-02 01:24:34 +00:00
rogerl%netscape.com 355e24f593 Fixed matching of un-matched paren contents (e.g. /(a)\1/("x") ). 2002-06-28 23:04:55 +00:00
pschwartau%netscape.com 36bbd1ba30 Correcting grammar in comment. 2002-06-26 19:16:53 +00:00
pschwartau%netscape.com b237aabe74 Initial add. Regression test for bug 154338. 2002-06-26 19:04:00 +00:00
jst%netscape.com e694c1308f Fixing bug 129622. Make comparing an XPConnect wrapped native object to a number (<, >, ==, ...) in JS always return falase. r=dbradley@netscape.com, sr=jband@netscape.com 2002-06-25 22:14:58 +00:00
timeless%mac.com 8e11200b25 Bug 125411 [NuBus] Mac installer crashes with a type 12 error (SleepQInstall)
r=sfraser sr=beard
thanks to tim@maroney.org (see bug 138156)
2002-06-25 19:39:08 +00:00
pschwartau%netscape.com caebe93d57 Adjusting FAST constant upward again, so that test can pass in Rhino. 100 ms seems like a reasonable value. 2002-06-24 22:14:48 +00:00
khanson%netscape.com 424d7ac75c patch 88484 for bug 14044. checks for out of memory conditon in jsdtoa.c. sr=brendan, r=khanson 2002-06-24 06:14:02 +00:00
rogerl%netscape.com 9508cae65d Fixed whitespace testing. Fixed bug 122167 - $nn handling in replace. 2002-06-22 19:38:02 +00:00
rogerl%netscape.com 486171d5d2 Bug #112626 - setting RegExp static field 'input', making sure the paren
capture substring contents aren't gc'd. r=rginda, sr=brendan.
2002-06-21 18:38:45 +00:00
rogerl%netscape.com 27af23800b Fixing bug 153223; - 'flat' input may be null. 'isWhiteSpace' does not
return true for non-break spaces, use 'isSpaceChar' instead. Bytes are
signed so needed to extract char values more carefully.
2002-06-21 18:19:25 +00:00
pschwartau%netscape.com 166064cd6f Removing 6 skips. All pass now that the new Rhino RegExp engine has been checked in. 2002-06-20 22:31:47 +00:00
pschwartau%netscape.com 5341aaf026 Adjusting FAST constant upward so that test can pass in Rhino - 2002-06-20 20:53:10 +00:00
rginda%netscape.com b6b105c441 fix build bustage, NS_IF_RELEASE the raw pointer, not the COM pointer. 2002-06-19 22:40:19 +00:00
rogerl%netscape.com 8d4b102f83 New RegExp engine implementation. 2002-06-19 21:57:57 +00:00
rginda%netscape.com f239119376 Bug 151803, "Debugger is leaking JSDValues", r=peterv, sr=jst
Stop caching jsdIValues, it doesn't seem to be worth the lookup cost.  This has the side effect of plugging the leak, as described in the bug.
also...
* Convert a few raw pointers to nsCOMPtrs
* Fix a bug where removing the last filter did not null out the list head,
causing a crash the next time filters were used.
* Track live jsdStackFrames, so we can invalidate them all when execution
continues.  Without this, only the top frame is properly invalidated, and any
other frame accessed after a continue will do Bad Things.
* Add some debugging prints to GetInitAtService, which seems to be failing at
random times.
2002-06-19 21:56:23 +00:00
pschwartau%netscape.com 5b796ea735 Correcting Section 1 to test execution as well as compilation of function. 2002-06-19 00:23:43 +00:00
pschwartau%netscape.com 6e555f8ca4 Adding extra comments - 2002-06-19 00:13:04 +00:00
pschwartau%netscape.com 1784694c25 Initial add. Regression test for bug 146596. 2002-06-19 00:02:29 +00:00
nboyd%atg.com 33086d8fc5 Patch from morten@nvg.org :
I keep getting syntax errors with no line numbers as well.

That happens when I use Context.compileReader(..) to compile the script. The
DefaultErrorReporter will throw an exception with only the message and not the
line it happened on.

It is of course easy to workaround using your own error reporter, but I've
attached a patch to add on the line and source name so the DefaultErrorReporter
gives the similar output as EcmaError if that is wanted.
2002-06-17 00:49:47 +00:00
nboyd%atg.com a9bd55a1ce Update last qualified release statement. 2002-06-16 23:51:15 +00:00
dougt%netscape.com 252ea143d4 Fixes 48888 - xpcom flat file backend. r=dp@netscape.com sr=waterson@netscape.com 2002-06-14 21:33:05 +00:00
igor%mir2.org fa1b6e8b1b Added get/setJavaPrimitiveWrap to WrapFactory to get/set if instances of String, Number should be wrapped or not. 2002-06-12 19:11:50 +00:00
brendan%mozilla.org e017f61f6a Back out last change pending debug build (see crash bug 151066). 2002-06-12 08:31:43 +00:00
brendan%mozilla.org 2718cddb25 Report uncaught errors-as-exceptions from outermost JS_Compile*Function* API calls, just as for JS_Compile*Script* (150584, r=rginda, sr=jst). 2002-06-12 08:04:28 +00:00
igor%mir2.org 09a13f7ec3 Removal of unused code for explicit JSObject support:
> Norris Boyd wrote:
>
> Igor Bukaniv wrote:
> >
> > I am curios, why there is a need to have a special JSObject support in Rhino? Was it used for anything? The implementation in the ICEbrowser does not use it as in rare cases where conversion from JSObject to/from JS type may be needed (like calling JSObject.getWindow from a script), it seems that WrapHandler (or similar modifications to pre Rhino 1.5R2 sources) and Wrapper are enough to cover all the cases.
> Yes, we should probably just remove the JSObject code. We added it early on when Rhino was first written and we thought we might need JSObject compatibility with the JS + Java implementation in Navigator 4.x. That's not important now, so we should just remove this code (which likely doesn't work at this point anyway).
2002-06-12 05:32:35 +00:00
brendan%mozilla.org 106a6b8172 For the file input case, roll our own fgets replacement to handle NULs in files (148800, r=rogerl, sr=shaver). 2002-06-11 21:32:54 +00:00
brendan%mozilla.org 5840ea523a Drop non-ECMA f.a-for-arg/var-a-in-active-f support (137000, r=khanson, sr=shaver). 2002-06-11 20:43:50 +00:00
nboyd%atg.com 0e81293d62 Add to log of changes. 2002-06-10 17:44:44 +00:00
nboyd%atg.com f597bef5b2 Add new API class WrapFactory. 2002-06-10 14:28:37 +00:00
nboyd%atg.com 79cf50094d Update javadoc. 2002-06-10 14:27:43 +00:00
nboyd%atg.com 77686394b4 Add PrimitiveWrapHandler example. 2002-06-10 14:23:32 +00:00
nboyd%atg.com cdfc8a39a9 Add example of the use of a WrapFactory. 2002-06-10 14:19:09 +00:00
nboyd%atg.com bc8e896198 Fix javadoc. 2002-06-10 14:09:26 +00:00
igor%mir2.org 8e3b79791f Deprecating NativeJavaObject.wrap and using Context.getWrapFactory().wrap() instead. 2002-06-09 15:58:15 +00:00
igor%mir2.org e91fcea61e More comments 2002-06-09 15:57:03 +00:00
igor%mir2.org a8942006ea Documentation: points to watch when upgrading to WrapFactory 2002-06-09 15:56:12 +00:00
igor%mir2.org 44bf267c33 Fixing broken logic in emulating custom WrapFactory via deprecated WrapHandler:
the code should not call setWrapFactory with null argument, but use new WrapFactory to restore default behaviour
2002-06-09 15:54:30 +00:00
igor%mir2.org f5b045f5e5 Introducing the WrapFactory class that should be used in place of the deprecated WrapHandler interface. 2002-06-09 09:23:00 +00:00
mcafee%netscape.com 15974838f5 Splitting liveconnect off from the java module, new module is called liveconnect, similar to what was done for xpconnect (145347). r=blythe, sr=alecf, a=asa 2002-06-08 06:59:53 +00:00
pschwartau%netscape.com 023788708d Adding new sections authored by john@statesoftware.com from bug 150032. 2002-06-08 04:26:18 +00:00
alecf%netscape.com f0263ddf07 fix for bug 101761 - REQUIRES update - remove all REQUIRES that are no longer necessary.. r=cls, a=asa (build-only changes) 2002-06-06 20:28:14 +00:00
nboyd%atg.com 3e7f7632a9 Fix for bug 149285: Complier does not report the correct line number on
SyntaxError:Invalid assignment left-hand side.
2002-06-06 15:01:57 +00:00
igor%mir2.org 27af2c5e8a Replacing check for unescaped characters in encode/decode from searching in a string to doing switch. It provides a noticeable speedup during encoding/decoding of long strings where almost all characters should be encoded. 2002-06-05 20:40:57 +00:00
brendan%mozilla.org d613f5a321 Ensure a live keyHash *after* multiplying by the irrational (146907, r=dbaron, sr=shaver). 2002-06-05 00:47:38 +00:00
pschwartau%netscape.com 9c8befbfa3 Cosmetic whitespace cleanup. 2002-06-04 19:51:59 +00:00
rogerl%netscape.com b42c0eab50 Corrected tests to match ECMA - unmatched paren contents need to have the
value 'undefined' rather than an empty string.
2002-06-04 18:51:05 +00:00
nboyd%atg.com a9022fa595 Fix ClassCastException. 2002-06-04 18:37:21 +00:00
brendan%mozilla.org b9fa0b8b2b Respect addProperty failure (148899, r=khanson, sr=shaver). 2002-06-04 18:13:55 +00:00
pschwartau%netscape.com 77f663fa05 Initial add; regression test for bug 137000. 2002-06-04 02:19:48 +00:00
dbradley%netscape.com db781dd0c8 Fixes XPCONNECT_STANDALONE bustage - see bug 121438 for details 2002-05-31 13:51:08 +00:00
nboyd%atg.com 8026a2bd2f Fix bug found by felix.meschberger@day.com:
given the following object :

----------------------------------------------
function SomeObject() {}
SomeObject.prototype.exec = function() {
  var local = this.someField;
}
----------------------------------------------

i create an 'instance', set a field and call the exec method :

----------------------------------------------
var someField = "global field value";
var anInstance = new SomeObject();
anInstance.someField = "instance field value";
anInstance.exec();
----------------------------------------------

then the local variable 'local' in the exec() method is assigned the value
of the global 'someField' variable instead of the instance field value.

the problem seems to be in the ScriptRuntime.callOrNewSpecial() method,
which is called, because the parser treats the name 'exec' specially. in
this method the exec() method gets called with

   return call(cx, fun, thisArg, args, scope);

where the 'thisArg' parameter really is the global this value instead of
the dynamic this value, which is in the jsThis variable and which would be
the one needed...

is it legitimate to replace the above call in callOrNewSpecial() with the
following line :

   return call(cx, fun, jsThis, args, scope);

this seems to only happen for methods named 'exec', which are identified as
special in the NodeTransformer.isSpecialCallName() method.

any help is appreciated. thank you very much for your time.

kind regards,
felix
2002-05-30 13:41:16 +00:00
khanson%netscape.com 64051a587d patch to speed up array.sort of strings by 40% r=brendan, sr=shaver 2002-05-27 05:53:57 +00:00
brendan%mozilla.org 2906c7c1f9 Don't emit JSOP_DEF{VAR,CONST} unless at top-level or in a heavyweight function (146596, r=jband, sr=shaver). 2002-05-26 00:33:23 +00:00
shaver%mozilla.org 775b446db5 146210: Add Date.now to mirror JS_Now in script. r=rginda, sr=brendan. 2002-05-24 01:55:15 +00:00
igor%mir2.org b1f6b58c02 Back-indent the interpreter main loop to ease code following 2002-05-22 18:42:40 +00:00
igor%mir2.org a036547bcd Fixing bug 145791: apply and call with null and undefined arguments behaves as required and Function.prototype.apply.length returns 2. 2002-05-22 16:46:28 +00:00
pschwartau%netscape.com bdd941dd4c Removing this test. It has been superseded by test ecma_3/Function/15.3.4.3-1.js 2002-05-22 06:01:09 +00:00
pschwartau%netscape.com a59b7eb621 Initial add. Tests language conformance to EMCA-262 Edition 3 Section 15.3.4.4 2002-05-22 05:54:58 +00:00
pschwartau%netscape.com 2672c28320 Initial add. Tests language conformance to EMCA-262 Edition 3, Section 15.3.4.3 2002-05-22 05:54:21 +00:00
dbaron%fas.harvard.edu bc04016187 Fix Mac bustage from brendan's checkin. 2002-05-22 00:53:12 +00:00
brendan%mozilla.org cf77ba4f01 Don't fail to call OBJ_CHECK_ACCESS for o.__proto__ = x, with enough mode bits to say what's happening (143369, r=shaver, sr=jst). 2002-05-22 00:06:40 +00:00
igor%mir2.org 7317a7e130 Making HTML tag helper functions to convert thisObj to string to match SpiderMonkey and user expectations (was reported by Steven Beal <steven.beal@peregrine.com>) 2002-05-21 22:00:08 +00:00
igor%mir2.org 6f9f5d5e21 Optimization in toInt32/toUint32/toUint16 for common case of integer argument. 2002-05-21 20:18:15 +00:00
igor%mir2.org 3e5edd8a09 Added indexOf and lastIndexOf 2002-05-21 20:14:10 +00:00
igor%mir2.org 76a770d612 In getElements return ScriptRuntime.emptyArgs when array length is 0 2002-05-21 20:13:30 +00:00
pschwartau%netscape.com 9fda21bdc2 Initial add. Regression test for bug 145779. 2002-05-20 20:37:43 +00:00
bratell%lysator.liu.se ab59c40931 Bug 85267 - clear internal jsdtoa caches when closing down the js engine. Patch by steve.taylor@ndsuk.com r=khanson@netscape.com, sr=brendan@mozilla.org 2002-05-20 20:07:48 +00:00
igor%mir2.org 1b4079d0c1 From the email:
The attached patch adds support for debugging eval and Function code transparently. It changes omj.NativeGlobal and omj.BaseFunction to embed  line number of origin of eval and Function scripts into source name and pass 1 as base line for script code. In this way a debugger implementation can treat eval and Function code in the same way as scripts loaded from some url while giving more information about error location in case of an error in eval code as the error source would contain both line number of eval origin and line number in eval code itself.
I chose to embed line numbers via patterns like

sourcefile#<line-number>(eval)
sourcefile#<line-number>(Function)

just to be able to to pass the constructed name to URL constructor if the original sourcefile is a valid URL but it is pretty arbitrary.
2002-05-20 11:40:17 +00:00
bratell%lysator.liu.se c62b9f6f33 Followup to checkin for bug 120992. It asserted in an edge case which this fixes. r=mozbot 2002-05-18 17:33:37 +00:00
bratell%lysator.liu.se 5b26b0e44a Bug 120992 - avoid expensive locking when converting numbers to strings. Now we look once for the whole operation instead of over and over again any time we access a shared structure. r=khanson@netscape.com, sr=brendan@mozilla.org. 2002-05-18 06:21:49 +00:00
nboyd%atg.com 683f0b4ca7 Fix bug:
I have noticed that attempting to call a java method like this:

public void foo(String foo, Serializable bar)
{
	// un-important details
}

from script using foo("foo", "bar"); fails because the second argument
is not deemed coercable to Serializable.  A preliminary look at the
coercion code shows that no check is made in this case with
isAssignableFrom().
The to type is only tested against StringClass and ObjectClass (non
primitive case).
(See NativeJavaObject.getConversionWeight())
2002-05-18 01:57:52 +00:00
jst%netscape.com 7fd4ba4193 Checking in jband's fix for bug 143853. Make sure to refresh the cached prototype JSObject when a context is reinitialized and a global object is reused between pages in a window. r=dbradley@netscape.com, sr=jst@netscape.com 2002-05-17 22:36:54 +00:00
igor%mir2.org 3b94c8d2f9 In evalSpecial do not allocate int[] buffer Context.getSourcePositionFromStack if line number is already known 2002-05-16 04:18:56 +00:00
igor%mir2.org a559e378b3 In jsConstructor use single StringBuffer to build function source 2002-05-16 04:17:04 +00:00
igor%mir2.org 06f223b799 Check in generateFunctionICode for own source to pass to debugger to cover new Function(...) case where top level function is not part of surrounding script 2002-05-15 21:27:46 +00:00
brendan%mozilla.org 0c1c916895 Checking in khanson@netscape.com's patch fixing GMT offset day-overflow (65671, r=mccabe, sr=jband). 2002-05-15 19:44:34 +00:00
dougt%netscape.com e96df2ad1b Fixes mozilla/strings requiring unfrozen nsCRT class. patch by scc, r=dougt, sr=jag, b=136756 2002-05-15 18:55:21 +00:00
seawood%netscape.com 2b773ceb9e Because js uses static data structures and is linked into other shared libraries, js must be built as a shared library.
Thanks to Colin Blake <colin@theblakes.com> for the original patch.
Bug #127442 r=bryner
2002-05-15 01:37:07 +00:00
rginda%netscape.com 991fcbd8b6 add PERL_BIN and PERL_ARGS 2002-05-14 01:44:01 +00:00
rginda%netscape.com 822e0bd6cd initial add of js api documentation source 2002-05-14 01:39:03 +00:00
igor%mir2.org a56ed683ab Elimination of FileWindow.breakpoints and Main.breakpointsMap as reference to SourceInfo provides all necessary information 2002-05-11 18:28:44 +00:00
igor%mir2.org 35997ed96a Removing itsFirstLine and itsEndLine from InterpreterData and replacing in DebuggableScript getFirstLine, getEndLine and getIntructionLines by getLineNumbers as Debugger imlementation can get all the necessary information from single call to getLineNumbers 2002-05-11 16:15:50 +00:00
igor%mir2.org 11cd032a9c Implementing DebuggableScript.getInstructionLines via scanning icode array for line number icode tokens thus removing the need to call Context.setGeneratingDebug(true) to get brekable lines in the script. 2002-05-10 21:33:51 +00:00
igor%mir2.org b15d8e908f From email about moving breakpoint support away from Rhino core:
I attach the patch to move away setting/quering for breakpoints from the Rhino core to application as a debugger implementation can check if a particular line has a breakpoint or not. The changes to omj/tools/debugger takes more then few lines I initially thought but they are mostly caused by refactoring to implement different view to set/query breakpoints.

The patch replaces getLineNumbers, placeBreakpoint and removeBreakpoint in DebuggableScript by getFirstLine, getEndLine and getInstructionLines where the last function fills a boolean array to indicate which script lines can ever occur in DebugFrame.onLineChange. These are read-only functions so InterpeterData are never mdofied by the debugger.

omj/tools/debugger/Main uses this information to check whether it is possible to place breakpoint at a particular line, and if possible, it sets to true entry at the boolean breakpoint array. In this way testing for break in onLineChange is simple and fast as it just needs to check if breakpoint array holds true at the given line number position.
2002-05-10 16:17:33 +00:00
darin%netscape.com f43dfb75ba fixes bug 142870 "nsIFile should use UCS-2 instead of UTF-8"
r=dougt sr=alecf
2002-05-07 23:07:19 +00:00