igor%mir2.org
6dcea14f54
Patch from Merten Schumman <Merten.Schumman@asg.com> to add Main.mainEmbedded(String) which is a version of Main.main without System.in/err/out redirection. It simplifies life for embeddings.
2004-05-28 14:19:11 +00:00
igor%mir2.org
402fd02406
Final implementation of GUI/debug implementation internals separation. Now the newly introduced Dim.java (Dim: Debug IMplementation) depends only on GuiCallback and contains all iteractions with Rhino.
2004-05-27 11:26:59 +00:00
igor%mir2.org
7fe01ad6bc
exitAction is moved to DebugGui
2004-05-27 10:34:44 +00:00
igor%mir2.org
cd63019db8
Prepare to remove dependancy of core debugger implementation on GUI: introduction of GuiCallback interface that DebugGui implements.
2004-05-27 10:21:24 +00:00
igor%mir2.org
b85ecb8c02
Work on 244492: JavaScriptException extends RuntimeException
2004-05-26 11:54:10 +00:00
igor%mir2.org
fa34067a88
Make sure that Context.getSourcePositionFromStack never returns negative numbers and uses 0 to indicate absence of line information. It accounts for differences between JVMs when dealing with incomplete debug information.
2004-05-26 11:03:03 +00:00
igor%mir2.org
63596c3f2b
In JavaScriptException constructor do not call ScriptableObjec.toString(value) since it may potentially trigger script execution for objects defining toString method which in turn may throw exceptions.
...
Instead for Scriptable arguments prints their [Object className] form which is provided by the new ScriptRuntime.defaultObjectToString(Scriptable) method.
2004-05-25 15:39:28 +00:00
igor%mir2.org
7341c1f1b5
Added JavaDoc link to a better way of wrapping exceptions then using WrappedException constructor
2004-05-24 10:11:23 +00:00
igor%mir2.org
8804a5c10d
Restoring public constructor for WrappedException for compatibility with Batik.
2004-05-24 07:53:06 +00:00
igor%mir2.org
2283ed2681
Change Arguments.getIds to include argument indexes when getAll is true. It allows not to have a tailored getIds in the debugger.
2004-05-23 17:34:44 +00:00
igor%mir2.org
3130100ea6
Fixing JavaDoc comments
2004-05-23 17:32:32 +00:00
igor%mir2.org
1e8e9be624
1. Reorganize debugger to move all code that interacts with the engine into Main.java while all GUI logic now presents in DebugGui
...
2. Move downloaded files for swing tree table into downloaded directory and adjust build files accordingly.
2004-05-23 16:15:09 +00:00
igor%mir2.org
cfe01facb2
Make sure that for Rhino-generated exceptions Throwable.getMessage() contains script file and line information.
2004-05-23 14:32:07 +00:00
igor%mir2.org
e431bd1a66
Make EcmaError to follow the same pattern as JavaScriptException
...
and EvaluatorException for getMessage() methods: it provides error message
with script source/line information.
2004-05-23 09:50:20 +00:00
igor%mir2.org
30e9aee832
Switch to line info extraction through single top script processing
2004-05-22 23:19:56 +00:00
igor%mir2.org
677ac1cd76
Splitting Main.java into Main.java and GUI-related DebugGui.java
2004-05-21 15:06:36 +00:00
igor%mir2.org
7ceadc8e69
Split Main class into Main and DebugGui to have better debugger/gui separation
2004-05-21 14:25:21 +00:00
igor%mir2.org
1ad8dc2197
Move all logic to open source window at the end of compilation to single update action.
2004-05-21 12:04:47 +00:00
igor%mir2.org
3265deef44
1. Fixing reporting for calls to undefined: stringReg is not suitable for function names if function contains arguments. So Token.NEW/Token.CALL comes with index of potential function name.
...
2. If debug information is not generated, Context.interpreterLineIndex could contain garbage from previous function invocation leading to ArrayIndexOfBound. Now Context.interpreterLineIndex is initialized at the interpreter entrance and getSourcePositionFromStack checks against absent line numbers.
2004-05-21 11:43:38 +00:00
igor%mir2.org
e58d2a671b
Move logic to show exception dialog into EnterInterrupt action
2004-05-21 11:27:59 +00:00
igor%mir2.org
7706f20db2
Test file
2004-05-21 10:53:19 +00:00
igor%mir2.org
5c690d13af
I changed StackFrame.onLineChange to access breakFlag directly which allowed to remove global context hashtable
2004-05-21 01:20:48 +00:00
igor%mir2.org
261666150e
Merge various GUI initializations during breakpoint hit into single action
2004-05-21 01:10:04 +00:00
igor%mir2.org
0ec2c999de
Removal of manThread: breakFlag can do its job just fine
2004-05-21 00:17:45 +00:00
igor%mir2.org
9f73c42235
Replace Context switching during eval for interrupted threads by thread communication so all evals happens on the original thread.
2004-05-21 00:11:24 +00:00
brendan%mozilla.org
7eacb40dd9
Fix PushBackTrackState so it doesn't assume double backtrack stack size suffices to hold the new result (243174, r=shaver).
2004-05-19 02:15:26 +00:00
igor%mir2.org
013271de02
To make variable access faster the form of getvar/setvar with var index
...
encoded in bytecode is reintroduced.
2004-05-18 22:33:41 +00:00
brendan%mozilla.org
f72efdbc8d
Report error on extra quantifier after term (197451, r=shaver).
2004-05-18 20:53:02 +00:00
igor%mir2.org
c23cadde22
Added more fast index load instructions and removed 0xFF & when extracting bytecode as all byte codes are less then 128.
2004-05-18 15:02:26 +00:00
igor%mir2.org
f9804a0ac7
In the interpreter loop comparision operations are represented by separated optimized do_cmp.
2004-05-18 12:19:25 +00:00
igor%mir2.org
10f3c4233e
To make loading of strings into string register faster I added Icode_REG_STR_C[01023] that directly loads the string at the given index.
2004-05-18 11:19:30 +00:00
timeless%mozdev.org
55a5e5ddbf
Bug 243621 Standardize QueryInterface without throw
...
r=neil sr=darin
2004-05-17 23:38:25 +00:00
brendan%mozilla.org
2158473744
Fix IDENTIFIER resolution to use in, not hasOwnProperty, since we are metacircular on __proto__.
2004-05-17 23:10:53 +00:00
igor%mir2.org
351dcb728c
Removal of 32K restriction on the length of the maximum jump offset.
...
Now interpreter uses UintMap to store jump targets spanning more then 32K
of bytecode.
2004-05-17 21:36:47 +00:00
igor%mir2.org
a6a8297e30
Reorganization in jumping code to make the following patch to drop 32K
...
jump length restriction smaller
2004-05-17 19:19:18 +00:00
igor%mir2.org
7e1c77a956
Remove 256 limit on number of variable using index prefix for all variable
...
operations. To offset small performance loss for variable access new
index prefixes operation REG_IND_C[0123] are added to load 0,1,2,3 as index
value with one bytecode.
2004-05-17 17:57:43 +00:00
igor%mir2.org
bf289c6354
For GETPROP/SETPROP use explicit name prefix to load property name instead
...
of pusshing property to stack
2004-05-17 17:29:12 +00:00
igor%mir2.org
5b81311a84
Remove 256 limit on number of local slots using REG_IND* prefixes to load the
...
slot index
2004-05-17 16:27:39 +00:00
brendan%mozilla.org
7f445f83f2
Back out compileFile, don't need it given i/o + Script.
2004-05-17 16:21:51 +00:00
igor%mir2.org
c226bf5cde
Splitting name_and_this bytecode into name_fast_this and name_slow_this to
...
avoid flag reading during simple function calls
2004-05-17 15:58:48 +00:00
igor%mir2.org
0681989924
Use the same of specal index prefix byte code for [] and {} literals
2004-05-17 14:55:45 +00:00
igor%mir2.org
e88881f3a6
Elimination of 64K restriction limit for various index-based opcodes. Now
...
they are prefixed with special Icode_REG_IND* that load the index of proper
size.
2004-05-17 14:34:29 +00:00
igor%mir2.org
696129bcb0
Removal of 64K limit of total number of strings per script/function: now
...
string operands are preloaded with special LOAD_STR opcodes that handles full
int indexes
2004-05-17 13:07:49 +00:00
igor%mir2.org
9a6e1fe15d
In the interpreter loop avoid code duplication for calling instruction
...
observer after each jump: now all tsuch code blocks are merged into generic
code that follows the interpreter switch
2004-05-17 11:44:42 +00:00
igor%mir2.org
34e9dc56b7
Another small modifications to Interpreter to make the following patches
...
smaller: replacing all brek in the main switch of the interpreter with
"continue Loop"
2004-05-16 21:01:00 +00:00
igor%mir2.org
774204ecef
In the interpreter loop increment pc immediately after icode read to avoid
...
ever adding +1 in post byte codes with arguments
2004-05-16 14:02:26 +00:00
igor%mir2.org
daaa920276
Inside the interpreter loop merger many almost identical icode
...
implementations into common block that use additional ifs to distinguish
between icode. It allows to shrink the ever growing Interpreter.interpret()
2004-05-16 13:30:53 +00:00
igor%mir2.org
aae93331f3
New implementation of ARRAYLIT and OBJECTLIT that does not requires stack
...
space to hold all literals values before they are copied to a temporary array
to pass to ScriptRuntime functions. The new code populates array during values
calculations.
2004-05-15 17:28:22 +00:00
igor%mir2.org
b4d0f698c9
Quote property names in object literals produced by toSource() if they
...
coincide with reserved keywords.
2004-05-15 17:23:06 +00:00
igor%mir2.org
37be8f9cfb
Use special parse nodes for array and object literals to generate more compact
...
bytecode both for interpreter and compiler to have faster [] and {} literals.
It also fixes the bug of accessing local variables Array/Object for the
literals instead of top-scope objects.
2004-05-14 22:47:44 +00:00