Robert Sayre
402272136f
Bug 523257 - remove some ComputeThis code duplication. r=mrbkap
2009-10-19 21:48:30 -04:00
Brendan Eich
9f9a05b0c3
Don't build a stack frame to execute empty scripts (516827, r=igor).
2009-10-18 17:41:24 -07:00
David Anderson
924ded9082
Cap JIT frames to the interpreter inline call count (bug 522136, r=brendan).
2009-10-13 17:22:11 -07:00
Robert Sayre
8e2e9f852b
Merge tracemonkey to mozilla-central.
2009-10-10 20:42:24 -05:00
Jim Blandy
0d6cdd1921
Bug 514585: Use bitfields in JSScript instead of a flag word. r=brendan
...
This is behavior-neutral cleanup in preparation for the real patch.
2009-10-08 10:29:03 -07:00
David Mandelin
44ddeb70aa
Bug 519363: temporary instrumentation to understand object creation scope assignment for js_Interpret topcrash, r=lw
2009-10-22 19:06:20 -07:00
David Mandelin
fae21d7c3e
Bug 519363: more new diagnostic null pointers. r=gal
2009-10-08 19:00:21 -07:00
David Anderson
3e3b3a2362
Trace recursive function calls (bug 459301, r=gal).
2009-09-30 15:28:00 -07:00
Luke Wagner
3801d14195
(debug-only bug) abort recording in js_Interpret after setting fp->regs (r=dvander)
2009-09-28 12:38:01 -07:00
Blake Kaplan
eb16f9a84d
Bug 495325 - Follow ES about indirect eval being global eval. r=brendan/igor
...
--HG--
extra : rebase_source : 397bd79f787fc6d079fea1b2433a8e262626ca46
2009-08-17 18:08:20 -07:00
Igor Bukanov
27c2d57074
bug 517749 - removal of weakRoots.newborn = null. r=mrbkap
2009-09-25 16:30:11 +04:00
Luke Wagner
668372111c
Bug 517973 - remove deep abort, fix blacklisting bug
2009-09-23 18:21:41 -07:00
David Mandelin
99fb23d064
Bug 511695: Fix JS warnings in MSVC8, r=brendan
2009-09-23 11:16:30 -07:00
Jason Orendorff
cb511bce9e
Backed out changeset 2fbd2420ef8b (bug 500431) due to Tinderbox orangeness.
2009-09-18 08:58:24 -05:00
Jason Orendorff
666b4c3e13
Bug 500431 - Encapsulate the property cache using C++ best practices - Part 1, just moving a few functions to a new file.
2009-09-17 18:23:36 -05:00
Blake Kaplan
afba815d74
Merge tracemonkey to mozilla-central.
2009-09-16 16:15:59 -07:00
Brendan Eich
eaabbf253c
Bug 516075 - Move shape into JSObjectMap from JSScope, const-ipate and use LIR_ldc* to get to it (r=jorendorff).
2009-09-14 20:29:46 -04:00
David Anderson
92ad5b2859
Renamed JSOP_LOOP to JSOP_TRACE, which now also gets emitted at the start of scripts (bug 515806, r=brendan).
2009-09-14 17:26:16 -07:00
Luke Wagner
854c0294df
Bug 412571 - replace thisp with thisv (r=brendan,mrbkap)
2009-09-11 19:07:00 -07:00
Brendan Eich
7232012b19
Don't be confused by eval's frame inheriting its caller's fun member when propagating sharp slots (516263, r=igor).
2009-09-14 10:36:01 -04:00
Brendan Eich
5de171f5f5
Don't assume a script with sharps whose caller has no sharps has no other fixed slots (516262, r=igor).
2009-09-14 10:29:56 -04:00
Jeff Walden
9d39c0d549
Bug 515285 - Implement JS_SameValue, and make assertEq use it rather than JS_StrictlyEqual. r=jorendorff
2009-09-09 11:51:52 -07:00
Blake Kaplan
79c31490dc
Bug 515475 - Get rid of a spurious security check in js_InternalGetOrSet that isn't needed anymore. r=brendan
2009-09-10 14:47:19 -07:00
David Anderson
744033066f
Removed JSStackFrame::callee (bug 512029, r=brendan).
2009-08-24 17:09:44 -07:00
Graydon Hoare
503c025d90
Bug 511309 - Delete class Fragmento and all uses of it, r=dvander.
...
--HG--
extra : rebase_source : 47047589288ac0758e0068307b5a8f393db97606
2009-08-20 17:22:47 -07:00
David Mandelin
6e0758faf2
Trailing whitespace cleanup, no_r=me
2009-08-20 15:21:14 -07:00
David Mandelin
184e8b155d
Backed out changeset 238e8b557e4f: causing tjss orange
...
--HG--
extra : rebase_source : 49cfd40e67221067c45c85a5b96db39d22be1f67
2009-08-14 19:17:00 -07:00
David Mandelin
a5a7e420d0
Bug 505591: trace JSOP_NAME for returned closures, r=dvander
2009-08-14 16:02:47 -07:00
Igor Bukanov
7e607aac4d
bug 495061 - js_PutArgsObject and js_PutCallObject that never fail. r=brendan
2009-08-14 20:43:16 +02:00
Jason Orendorff
8384b1e239
Bug 509098 - Remove JS_HAS_LVALUE_RETURN support. r=brendan.
2009-08-13 16:18:33 -05:00
Luke Wagner
fa2f83712c
Bug 507458 - clear the waters a bit regarding JSVAL_BOOLEAN
2009-08-12 16:39:23 -07:00
Jason Orendorff
9dc4a54a5d
Bug 498488 - Change some JSObject macros to methods. r=Waldo.
2009-08-11 15:05:44 -05:00
Brendan Eich
016b0f207a
Bug 514981 - JSStackFrame::sharp{Array,Depth} should be locals allocated due to #n[#=] usage (r=igor).
2009-09-09 20:21:15 -07:00
Jason Orendorff
b53824855d
Bug 513119 - Change JSScript macros to methods. r=Waldo.
2009-09-09 18:52:55 -05:00
Igor Bukanov
6bfe4771cc
bug 513190 - avoiding jsint tagging of the private slot data. r=jorendorff
2009-09-05 19:59:11 +04:00
Brendan Eich
cce4dce512
Join lambdas assigned or initialized as methods to the compiler-created function object if we can, with a read barrier to clone on method value extractions other than call expressions (471214, r=jorendorff).
2009-09-03 14:41:19 -07:00
Andreas Gal
7d3f588878
Inline GetUnitString fast path (513373, r=sayrer).
2009-08-28 16:30:41 -07:00
Igor Bukanov
b919139e8d
bug 511425 - removal of JSObjectOps.(get|set)RequiredSlot. r=brendan
2009-08-28 09:53:26 +04:00
Luke Wagner
a5b9103165
Bug 419743 - Add JSOP_CONCATN (r=waldo)
2009-08-18 15:43:17 -07:00
Blake Kaplan
c10e9bb5ef
Bug 512897 - Innerize the scope chain to protect from native callers passing an outer object. r=brendan
2009-08-27 11:43:54 -07:00
Brendan Eich
b063d31520
Back out changeset aff171a8c4f0 (bug 471214).
2009-08-26 09:34:41 -07:00
Brendan Eich
bd8f55c0ad
Join function objects where possible (471214, r=igor).
2009-08-25 23:42:37 -07:00
David Anderson
e322e64001
Removed JSStackFrame::xmlNamespace (bug 512389, r=brendan).
2009-08-25 12:07:45 -07:00
Michael Sullivan
d329b7a0f0
Bug 507723: separate jsop implements into their own file and allow them to be included as functions, r=brendan
2009-08-10 13:26:28 -07:00
Jason Orendorff
08c6a1c780
Bug 506721 - Convert JSVAL_TO_INT and INT_TO_JSVAL to functions. r=Waldo.
2009-08-09 07:25:53 -05:00
Jason Orendorff
4652795bfd
Bug 509040 - DEFSHARP should define, not set, properties on fp->sharpArray. r=brendan.
...
--HG--
extra : rebase_source : 808d5523fa1db91152bbeb37f8d6015a40c0bc56
2009-08-07 11:10:12 -05:00
Graydon Hoare
fd8a117e2f
Bug 503694 - TM: Code run off an event handler is never traced, r=brendan.
...
--HG--
extra : rebase_source : da2e900baac68f88f06eaa8554b245f7d403153f
2009-08-06 12:40:51 -07:00
Igor Bukanov
ef90f6f522
bug 493457 - uniform access to private slots. r=mrbkap, sr=jwalden
2009-08-04 23:06:55 +02:00
Jason Orendorff
1a10f24c21
Remove unnecessary intermediate in case JSOP_FORNAME. No bug#. rs=brendan.
...
--HG--
extra : rebase_source : cab0d44fc57007551c02c9493f58a95e0030552c
2009-08-04 12:58:56 -05:00
Igor Bukanov
ca5953ea0c
bug 507573 - put activation clenup. r=brendan
2009-08-04 12:55:58 +02:00
Mark Steele
ff339aa3b6
Bug 497999: collect context-specific TraceVis data in JS objects, r=jorendorff
2009-07-30 11:48:02 -07:00
Jason Orendorff
2a9ce4d07c
Bug 506347 - Assertion failure: OBJ_SCOPE(pobj)->object == pobj, at ../jsinterp.cpp. r=brendan.
...
--HG--
extra : rebase_source : 205b7723b6af57682f8f3445a7eda825995a0911
2009-07-30 10:12:01 -05:00
Jason Orendorff
a9c63ed454
Bug 497886 - Document the property cache. r=brendan.
2009-07-29 15:18:31 -05:00
Robert Sayre
99a0962393
Backed out changeset e09130fcb013
2009-07-28 18:51:35 -04:00
Brendan Eich
8d27b07ec5
Bug 471214 - Join function objects transparently, clone via read barrier to satisfy de-facto standard (r=igor).
2009-07-28 13:20:14 -07:00
Andreas Gal
e7f2714ea1
When finalizing, deallocate memory in a separate thread (505612, r=bent,brendan,waldo).
2009-07-27 21:10:12 -07:00
David Mandelin
cfb0d1fd1b
Bug 506821: clean up trailing whitespace, r=brendan
2009-07-27 18:40:12 -07:00
Jason Orendorff
08e0a53af4
Bug 503408 - Trace native setters. r=brendan.
2009-07-27 16:47:34 -05:00
Igor Bukanov
9534c3d315
bug 504033 - avoiding calling JSFinalizeStub. r=brendan
2009-07-22 18:23:21 +02:00
Jason Orendorff
a31f80165c
Bug 503080 - Remove prototype-scope-sharing. r=brendan.
2009-07-21 16:25:11 -05:00
Blake Kaplan
cd3a0971f1
Bug 504590 - Don't return a "joined" function object, since we don't support them yet. r=brendan
...
--HG--
extra : rebase_source : b7134d683b6e4439f284f9bb033b8040f53cdfb0
2009-07-16 13:16:33 -07:00
Andreas Gal
1af8dfb112
Avoid integer division in NewGCThing path (503157, r=jwalden).
2009-07-14 17:06:09 -07:00
Andreas Gal
f552010935
Make js_ValueToString inline (503669, r=jwalden).
2009-07-13 14:55:04 -07:00
Andreas Gal
d788e5a1d4
Make CHECK_FOR_STRING_INDEX an inline function (503666, r=jwalden).
2009-07-11 15:41:32 -07:00
David Anderson
a46f3aa0f0
Fix -0 modulo -x disagreement on Windows (bug 503595, r=sayrer).
2009-07-11 12:40:37 -07:00
Brendan Eich
f60779aef5
Bug 503343 - Change JSScope macros to methods. r=jorendorff
2009-07-09 15:27:21 -05:00
David Mandelin
975f74c278
Bug 453730: trace JSOP_ARGUMENTS, r=gal
2009-07-08 11:16:41 -07:00
Jason Orendorff
b2ae19610c
Bug 498565 - Setting inline style always misses property cache. r=brendan.
...
--HG--
extra : rebase_source : 953740c5d693ee5358fb85690dc0e15df3bafa0a
2009-07-07 06:20:26 -05:00
Jason Orendorff
50928beb6c
Minor cleanup. Fuse if-if in js_FillPropertyCache. r=brendan in bug 498565 comment 18.
...
--HG--
extra : rebase_source : 386e6c4b1c06aa14b9d7e6cb7efaf83c9fb5e7bd
2009-07-07 06:09:28 -05:00
Johnny Stenback
a511964116
Fixing bug 442399. Remove LiveConnect from the tree. r=joshmoz@gmail.com, bclary@bclary.com, sr=brendan@mozilla.org
2009-06-30 15:55:16 -07:00
Graydon Hoare
a94223e1df
Bug 500580 - JS_CallFunction path isn't ~JIT guarded against non-global scope chains, r=brendan.
2009-06-26 11:13:32 -07:00
Graydon Hoare
8ddc326134
Bug 500491 - Only reset saved JSOPTION_JIT after js_Execute, r=brendan.
2009-06-25 16:20:53 -07:00
Brendan Eich
b1edbdb4eb
Back out incorrect patch for bug 497789 (r=jorendorff).
2009-06-26 10:40:51 -07:00
Benjamin Smedberg
3323246776
GetAtomFromBytecode is actually JS_REQUIRES_STACK, just marking it so.
2009-06-25 15:19:37 -04:00
Benjamin Smedberg
c7cc8fde73
Bug 498398 - fast natives such as array_sort and many others must not be JS_REQUIRES_STACK, r=jorendorff
2009-06-25 15:12:19 -04:00
Brendan Eich
579d4f6d24
Seed new empty scope shape from prototype to handle foreshadowing, enable deep propcache hits keyed by shapes, simplify code (497789, r=igor).
2009-06-25 12:05:09 -07:00
Vladimir Vukicevic
b7cdc8d0ff
b=403345; dtrace probes get wrong function name, filename, and line number info when native methods are involved; r=brendan
2009-06-17 13:50:03 -07:00
Graydon Hoare
2ad590f536
Bug 497060 - Disable JIT on non-global initial scope chain, r=brendan.
...
--HG--
extra : rebase_source : f8052e5687bfa5fe5f9879622375c06dac647f95
2009-06-18 14:47:57 -07:00
Igor Bukanov
3193020246
bug 498899 - avoiding excessive JS_(LOCK|UNLOCK)_OBJ while quering property cache. r=brendan
2009-06-18 15:24:06 +02:00
Igor Bukanov
e90c3cd0d5
Backed out changeset 7ab1be136cfa - that patch for bug 498899 has a bug.
2009-06-18 15:00:55 +02:00
Igor Bukanov
7d5d5e6b13
bug 498899 - avoiding excessive JS_(LOCK|UNLOCK)_OBJ while quering property cache. r=brendan
2009-06-18 14:26:16 +02:00
Nicholas Nethercote
e2a97e3f4c
Bug 496448: TraceVis TraceMonkey performance visualization, r=brendan
2009-06-16 09:30:01 +01:00
Jason Orendorff
52fe5a97ba
Bug 497618 - Change JSString macros to methods. r=Waldo.
2009-06-10 20:29:44 -05:00
Brendan Eich
77da9d75ed
Bug 494235: wrap escaping optimized closures for the debugger API (r=igor/mrbkap).
2009-06-04 18:58:47 -07:00
Andreas Gal
bd43ddb1c8
Bad assert in NEXTITER exception handling (494975, r=brendan).
2009-05-26 16:39:43 -07:00
Igor Bukanov
0374ee3760
bug 490364 - mutating parent chain shapes only for Call objects and only when adding properties that are not parameter or var names. r=brendan
2009-05-15 11:43:19 +02:00
Igor Bukanov
92f94e451c
bug 491126 - sharing object map for non-native objects. r=brendan
2009-05-14 12:35:23 +02:00
Brendan Eich
0416e1e679
Bug 492355 - Suspected Txul regression from JS engine changes (r=igor).
2009-05-13 17:11:23 -07:00
David Mandelin
4e118ecf45
Bug 492610: correctly determine when an upvar is part of the trace, r=brendan
2009-05-12 16:25:57 -07:00
Benjamin Smedberg
154f21ccdd
Bug 492040 - js_Execute must bail off trace, r=jorendorff a=josh for CLOSED TREE checkin
2009-05-08 16:32:35 -04:00
Igor Bukanov
3597961095
bug 491013 - fixing shared setter regression and eliminating several useless anonymous prototype objects. r=brendan
2009-05-06 20:33:10 -02:30
jorendorff
93c6d226d3
Record all calls to native functions (487134, r=gal, brendan).
2009-05-05 14:26:06 -07:00
Andreas Gal
fe1ed6adb9
Backed out changeset 6534f8b9aa74 (bug 491013, assert on startup).
2009-05-04 15:07:53 -07:00
Igor Bukanov
d77b8664fb
bug 491013 - fixing shared setter regression and eliminating several useless anonymous prototype objects. r=brendan
2009-05-03 20:43:55 -04:00
Igor Bukanov
40475ad940
bug - 488607
...
- fixing test_property_cache asserts. r=brendan
2009-05-01 07:10:25 -07:00
Jim Blandy
56af1e088d
Bug 488018: Propagate errors from tracer to interpreter. r=igor
...
Rename JSMonitorRecordingStatus to JSRecordingStatus. The JSMRS_
prefix becomes JSRS_, accordingly.
Make 'record_' functions return JSRecordingStatus, not bool. 'false'
becomes 'JSRS_STOP'; 'true' becomes 'JSRS_CONTINUE'. Since subsequent
patches will begin to use more than two values (the next assigns
meaning to JSRS_IMACRO), take care to propagate values to callers
accurately.
Define a new recording status, JSRS_ERROR. Return it from recording
functions when appropriate. Check for it at appropriate bottlenecks
in tracer and interpreter.
ABORT_TRACE becomes one of:
. ABORT_TRACE, for when we're simply aborting the recording process
. ABORT_TRACE_ERROR, for aborting due to an error
. ABORT_TRACE_CV, for producing an error message and returning something
other than JSRS_STOP --- some contexts require boolean values.
Conditionally provide an alternative definition for the
JSRecordingStatus type that cannot be converted to 'bool', so that we
can use the C++ compiler to catch improperly converted code.
Use recording function return value for imacro invocation. Eliminate
the JSFRAME_IMACRO_START frame flag. Instead, return JSRS_IMACRO
directly from recording functions.
2009-04-30 17:30:46 -07:00
Andreas Gal
cafa156d52
We don't cache access to shared properties in the property cache (490666, r=igor,brendan).
2009-04-30 15:52:13 -07:00
Igor Bukanov
b8405f1171
bug 487846 - optimizing shape prediction for set opcodes. r=brendan
2009-04-29 07:07:21 -07:00
Graydon Hoare
bb4177dccd
Bug 490044 - TM: Add deep-bailing write barrier to global shape change code, r=brendan.
2009-04-24 17:47:32 -07:00
Graydon Hoare
3471a48ea3
Bug 470964 - Simulate CFG in imacro assembler and decompiler, r=brendan.
2009-04-24 09:07:49 -07:00