Commit Graph

141 Commits

Author SHA1 Message Date
Brian Hackett
8fb0414d87 Pass scope chain explicitly to FindProperty, bug 717494. r=dvander 2012-01-18 17:15:00 -08:00
Brian Hackett
90e42791fc Backout 54cd89b0f1fa (bug 712714 backout). Talos will probably report fake regressions for this patch, do not back out for this reason. 2012-01-09 06:29:50 -08:00
Marco Bonardo
2d516bb575 Backout c0d337401801,78d17e22a223 (bug 712714) for talos regressions across the board. 2012-01-06 13:49:52 +01:00
Brian Hackett
d2a7217fc1 Make sure to call XML methods properly in property ICs, no bug. r=dvander 2012-01-05 12:57:06 -08:00
Brian Hackett
a6f79d1f7a Remove JOF_CALLOP, bug 712714. r=dvander 2012-01-05 11:08:38 -08:00
Jim Blandy
f2043939ea Bug 687683: Separate ScriptDebugPrologue add ScriptDebugEpilogue from and ScriptPrologue and ScriptEpilogue. r=jorendorff
At the moment, ScriptDebugPrologue is called (conditionally) from within
ScriptPrologue. For onEnterFrame handlers to be able to return a resumption
value, we need ScriptDebugPrologue to return a JSTrapStatus value, but it
is (non-debug) ScriptPrologue's callers that would need to handle those
values.

It seems strange to have ScriptPrologue return a JSTrapStatus. So this
patch brings ScriptDebugPrologue out of ScriptPrologue (and
ScriptPrologueOrGeneratorResume), and has ScriptPrologue's callers call
ScriptDebugPrologue explicitly.

For symmetry, we do the same with ScriptEpilogue,
ScriptEpilogueOrGeneratorYield, and ScriptDebugEpilogue.

Actually adding and processing the JSTrapStatus values comes in a later
patch. This is just meant to be a behavior-preserving rearrangement.
2011-12-06 11:40:27 -08:00
Brian Hackett
e89780c40d Remove jsobj.h from installed headers, bug 690943. r=luke 2011-10-04 07:06:54 -07:00
Luke Wagner
291999169a Bug 683361, part 4 - Handle transparent proxies correctly in non-generic methods (r=waldo)
--HG--
extra : rebase_source : 0f36c83685f2822453ce203a87cca4076222c48c
2011-09-08 21:18:23 -07:00
Luke Wagner
2c8c55d13f Bug 683361, part 2 - use CallArgs more (r=waldo)
--HG--
extra : rebase_source : 0825a9729a7e24706e9fa1f3fdfb1586c475d8cf
2011-09-08 21:02:26 -07:00
Ehsan Akhgari
78097f8be4 Resolve the merge conflict from bug 674998 correctly by removing InvokeSessionGuard completely, r=luke 2011-09-07 11:34:15 -04:00
Brian Hackett
a21793c57d Merge MC->JM 2011-09-06 00:45:22 -07:00
Luke Wagner
357b5b8cf8 Bug 684110 - Clean JSObject::clasp usage (r=pbiggar) 2011-09-02 17:23:26 -07:00
Ed Morley
2d385ce59f Backout bug 684110 (08b6eaf6aad0, cf8b35fa1010, 25ee45edabe1, 659f5c7d2cc9, 870f6dd82586 & e1ad65d6a7fd) and bug 684344 (cd1957f6628d) on a CLOSED TREE; a=bustage-fairies 2011-09-03 03:21:25 +01:00
Luke Wagner
39242fcb8c Bug 684110 - Clean JSObject::clasp usage (r=pbiggar) 2011-09-02 17:23:26 -07:00
Brian Hackett
3e0ad0ceba [INFER] Improve performance for non-reentrant closures, bug 663138. 2011-09-01 12:20:30 -07:00
Brian Hackett
6e0458f6d1 [INFER] Watch for recompilation triggered by while compiling a call in an inlined frame, bug 680951. 2011-08-26 08:55:00 -07:00
Brian Hackett
06268c9f02 Merge MC -> JM 2011-08-14 19:51:16 -07:00
Brian Hackett
beb3e0531e [INFER] Reduce inference-related script overhead, bug 674609. 2011-07-28 09:16:53 -07:00
Jason Orendorff
75a71f51e8 Merge from mozilla-central to jsdbg2 branch. 2011-07-27 18:23:16 -05:00
Brian Hackett
dda30fa4b2 Merge MC -> JM 2011-07-21 18:53:37 -07:00
Brendan Eich
0c46987a59 Bug 671947 - Unqualified function invocation uses the global object the property was gotten from as |this| (r=luke). 2011-07-20 12:48:12 -07:00
Brian Hackett
eb4a0fc5ea Allow JaegerShot to only partially execute frames, bug 665815. r=luke 2011-07-07 21:02:57 -07:00
Jason Orendorff
1f245d40df Merge from tracemonkey to jsdbg2. 2011-07-01 19:02:40 -05:00
Brian Hackett
dee99963bb Merge TM -> JM 2011-07-01 16:24:32 -07:00
Steve Fink
67a675cdaa Bug 667056 - Fix when function callbacks are invoked (r=luke) 2011-06-24 17:13:19 -07:00
Jason Orendorff
6367a9c217 Automatically turn debug mode on/off when adding/removing debuggees.
This allows most of the tests to run without the -d command-line flag.

Now a compartment is in debug mode if
 * JSD1 wants debug mode on, thanks to a JS_SetDebugMode* call; OR
 * JSD2 wants debug mode on, because a live Debug object has a debuggee
   global in that compartment.

Since this patch only adds the second half of the rule, JSD1 should be
unaffected.

The new rule has three issues:

1. When removeDebuggee is called, it can cause debug mode to be turned
   off for a compartment. If any scripts from that compartment are on
   the stack, and the methodjit is enabled, returning to those stack
   frames will crash.

2. When a Debug object is GC'd, it can cause debug mode to be turned off
   for one or more compartments. This causes the same problem with
   returning to deleted methodjit code, but the fix is different: such
   Debug objects simply should not be GC'd.

3. Setting .enabled to false still does not turn off debug mode
   anywhere, so it does not reduce overhead as much as it should.

A possible fix for issue #1 would be to make such removeDebuggee calls
throw; a different possibility is to turn off debug mode but leave all
the scripts alone, accepting the performance loss (as we do for JSD1 in
JSCompartment::setDebugModeFromC).  The fix to issues #2 and #3 is to
tweak the rule--and to tweak the rule for Debug object GC-reachability.

--HG--
rename : js/src/jit-test/tests/debug/Debug-ctor.js => js/src/jit-test/tests/debug/Debug-ctor-01.js
2011-06-02 21:58:46 -05:00
Brian Hackett
838352f9db Merge TM -> JM 2011-04-28 13:02:47 -07:00
Brian Hackett
68b35100e1 Merge TM -> JM 2011-04-19 08:23:41 -07:00
Brian Hackett
fc65b95530 Merge TM -> JM 2011-04-13 06:45:06 -07:00
Brian Hackett
8b7888dd66 Merge TM -> JM 2011-04-01 19:57:28 -07:00
Luke Wagner
6fcaf8c63f Bug 649531 - tidy up this-computation logic a bit, add some asserts (r=waldo)
--HG--
extra : rebase_source : f01409526e4582b87ced4b9f9d1170254a55373b
2011-04-12 17:16:12 -07:00
Luke Wagner
0d7bf8cc22 Bug 656462, part 4 - Simplify stack code, keep track of native calls, create new iterator over native/scripted callstack, make JS_SaveFrameChain fallible (r=waldo,mrbkap)
--HG--
extra : rebase_source : 756a640568464d11fe6bb00104a2fdb6f6d02d02
2011-05-13 08:56:26 -07:00
Luke Wagner
fe7b0581ce Bug 656462, part 2 - Merge ContextStack::get* and push* operations (r=waldo)
--HG--
extra : rebase_source : bdc7a7ba9ee21435a20e77bf6cea8c4d34a840c9
2011-05-24 16:04:18 -07:00
Brian Hackett
74bba0be53 [INFER] Inline scripted calls, bug 639099. 2011-03-26 19:07:13 -07:00
Brian Hackett
d737bb3ddb Merge TM -> JM 2011-03-22 18:07:31 -07:00
Luke Wagner
01d2bb36b4 Bug 649491 - rm JSFRAME_ASSIGNING (r=dvander) 2011-04-08 15:45:18 -07:00
Luke Wagner
2fa7292b06 Bug 641436 - Don't call Script{Prologue,Epilogue} when resuming/yielding a generator (r=dvander)
--HG--
extra : rebase_source : 6ae3a6645425ee63162e19388143487df5435a65
2011-03-28 11:57:43 -07:00
Luke Wagner
f37c253b7f Bug 636224 - rm cx->interpLevel and TSF_ERROR (r=brendan)
--HG--
extra : rebase_source : 682e496d3fad9454b0279aff9bfd4c1bcf50055c
2011-03-23 14:33:02 -07:00
Luke Wagner
4fec8aa043 Fix --disable-methodjit bustage (r=red) 2011-04-26 13:39:59 -07:00
Luke Wagner
05d2002b66 Bug 644074 - Simplify and consolidate VM stack code into js/src/vm/Stack* 2011-04-13 09:27:37 -07:00
Brian Hackett
d639ada378 Merge TM -> JM 2011-03-09 09:58:49 -08:00
Luke Wagner
a2e3ccd941 Bug 642896 - Weaken overstrict resetInvokeCallFrame assert (r=waldo) 2011-03-21 11:57:51 -07:00
Brian Hackett
eb12efe47d [INFER] Recompile target script in InvokeSession as necessary, bug 621292. 2011-03-04 15:56:37 -08:00
brendan@mozilla.org
649f67b373 Unqualified function invocation doesn't use the global object the property was gotten from as |this| (bug 634590, r=gal). 2011-02-22 22:25:10 -08:00
Jeff Walden
c5252060f7 Back out af1e10bea0f4 from a CLOSED TREE for being orangetastic on one platform. 2011-02-20 21:40:06 -08:00
Andreas Gal
207266110b Unqualified function invocation doesn't use the global object the property was gotten from as |this| (bug 634590, r=brendan). (relanding in a CLOSED TREE) 2011-02-17 17:52:55 -08:00
Jeff Walden
1e41f95c6d #jsapi observed the extent of orange in the TM tree and saw that OS X x86 opt was consistently and totally evil. So jwalden was sorry he had ever pushed changes for bug 631135. It broke his heart. And he said, “I will wipe this tree of every push back to 9105cd721d46. Yes, and I will revert the entire TM CLOSED TREE. I am sorry I ever pushed to it.” But 9105cd721d46 found favor with #jsapi. 2011-02-20 17:46:35 -08:00
Jeff Walden
7ce51759aa Backed out changeset 4d86e63ff60d, diagnostic patch; back out 3da12edf735e, followup fix; back out bug 631135 completely, unexplained intermittent orange.
--HG--
extra : rebase_source : e2e56a78bc0eea0d6e005bc976c74b33d8c22281
2011-02-19 19:50:19 -08:00
Jeff Walden
a50a34ff10 Diagnostic patch to debug intermittent assertion following bug 631135. r=debugging
--HG--
extra : rebase_source : e8fb8988765236ce92ca4a7477a54d9eb8070794
2011-02-19 02:25:39 -08:00
Andreas Gal
46930e9e54 Unqualified function invocation doesn't use the global object the property was gotten from as |this| (bug 634590, r=brendan). 2011-02-17 17:52:55 -08:00