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

23218 Коммитов

Автор SHA1 Сообщение Дата
David Anderson 207d9e87c8 Fix register allocation bug when pushing addresses (bug 605452, r=sstangl,dmandelin). 2010-10-19 23:19:48 -07:00
Brian Hackett cb0c23ee68 Merge. Test backout for bug 601725. 2010-10-19 20:51:11 -07:00
Brian Hackett 0e902af2c0 Backed out changeset d20abbebe373 2010-10-19 20:19:56 -07:00
Bill McCloskey 75e6f62efa Backed out changeset 55597c32701d 2010-10-19 17:40:53 -07:00
Bill McCloskey 3b6fc6a341 Bug 580468 - Use loop profiling to decide whether to use TM or JM (r=dmandelin) 2010-10-19 16:23:05 -07:00
Gregor Wagner 2abf287e32 Followup for Bug 605011 2010-10-19 16:12:08 -07:00
Nicholas Nethercote 5bd5279b78 Bug 604297 - TM: don't allow non-conditions to be passed to TraceRecorder::guard() (2nd attempt). r=dmandelin. 2010-10-19 15:39:25 -07:00
Gregor Wagner 65a8cd1380 Bug 605011 - "Assertion failure: JS_CHECK_STACK_SIZE(cx->stackLimit, &stackDummy)," r=igor 2010-10-19 14:25:26 -07:00
Bill McCloskey 8b35705702 Fix for Talos crashes related to bug 596364 2010-10-19 14:04:10 -07:00
Luke Wagner ae1d811ed1 Bug 605355 - JM: FrameState::ensureFullRegs should operate on the backing FrameEntry (r=dvander) 2010-10-18 18:11:45 -07:00
Bill McCloskey 26b777717d Fix for ARM bustage from bug 596364 2010-10-19 11:39:55 -07:00
Bill McCloskey 2179aea60e Bug 596364 - Allow the trace JIT to tell the method JIT to unblacklist a loop (r=dvander) 2010-10-19 11:08:25 -07:00
Tom Schuster 3902cdb3d6 Bug 594233 - speed up js::DefaultValue on Number builtin with void hint (r=lw)
--HG--
extra : rebase_source : e06f43fe67eef83dd7c6d56417be8395184d40dd
2010-10-19 10:39:55 -07:00
Bill McCloskey f5ca4dd467 Fix broken aliasing annotations from bug 600016 2010-10-19 10:17:29 -07:00
Luke Wagner 3e7f426a57 Bug 605352 - JM: avoid double-pin in x64 FrameState:syncFe (r=sstangl) 2010-10-19 09:40:47 -07:00
Luke Wagner cbc2f213e2 Bug 604210 - Optimistically use pc to decompile when vp is above pcdepth (r=brendan) 2010-10-19 09:36:24 -07:00
Luke Wagner 99644b0135 Bug 604638 - remove dead var in TracerState (r=dvander) 2010-10-19 09:21:01 -07:00
Dave Herman de179fbaed bug 594060, r=cdleary: Reflect.parse(): make source location information optional 2010-10-19 09:00:51 -07:00
Chris Leary 0054cf6729 Temporarily disable MONOIC for ARM due to bug 599214 breakage. 2010-10-19 01:30:43 -07:00
Makoto Kato 343e08b9e0 Bug 589917 - js_GetDeflatedUTF8StringLength computes the wrong UTF-8 length for surrogate pairs. r=igor, a=betaN+ 2010-10-19 17:06:10 +09:00
Nicholas Nethercote d332d6821b Update nanojit-import-rev stamp. 2010-10-18 23:42:02 -07:00
Nicholas Nethercote 6ed5698639 Bug 602788 - nanojit: more constant folding of quads in ExprFilter, please. r=stejohns.
--HG--
extra : convert_revision : 8409c49a72dc223ca0622bc18b396e81f8d45608
2010-10-18 23:20:16 -07:00
Peter Van der Beken 518dff461a Fix for bug 604957 (Change sandbox constructor to take one optional argument instead of two). r=mrbkap, a=blocking. 2010-10-15 11:02:42 -07:00
David Anderson 10d8a8fb81 Actual rebase bustage fix (bug 603044 fallout). 2010-10-18 22:31:44 -07:00
David Anderson 679f5714f7 Fix line change lost in rebase (bug 603044 fallout). 2010-10-18 21:41:17 -07:00
David Anderson 33938e54bb Fixed bogus assert about script lengths (bug 603044 fallout). 2010-10-18 21:08:42 -07:00
David Anderson dcf310c5a7 Build bustage fix. 2010-10-18 20:30:36 -07:00
David Anderson 8fcaad8405 Remove JSOP_BEGIN and fix tracer integration issues (bug 603044, r=luke+dmandelin). 2010-10-15 11:36:56 -07:00
Nicholas Nethercote 97e0a9703a Update nanojit-import-rev stamp. 2010-10-18 19:21:16 -07:00
Nicholas Nethercote e556a59d7e Bug 602765 - nanojit: in Nativei386.cpp, generate d[b + i<<s] addressing modes in asm_load64() and asm_store64(). r=rreitmai.
--HG--
extra : convert_revision : 85b3484747acd7222efded3dea41267a21928d4e
2010-10-18 18:39:47 -07:00
Ginn Chen c2c63b7d58 Bug 604335 Do not use asm_nongp_copy for moving between FpRegs and GpRegs on SPARC r=edwsmith
--HG--
extra : convert_revision : 004571303a080d8915b9845190b33338e495bcba
2010-10-18 19:47:12 +08:00
Ginn Chen 30f6812d94 Bug 603560 Workaround for Solaris Studio compiler, it failed to compile static const int x = { 1 }; r=edwsmith,nnethercote
--HG--
extra : convert_revision : c4f9bb1b1fd4816604d86045806423025f8e6e4e
2010-10-18 19:46:04 +08:00
Rick Reitmaier 3a6c43028c Fix build breakage - missing portion of patch in prior checkin.
--HG--
extra : convert_revision : 2cb7d0c94e4b64bbe5d40dcd9d8a8d0f03fb9a5b
2010-10-14 19:01:15 -07:00
Rick Reitmaier f269219ada Bug 595033 - nanojit: harden via random function alignment (wmaddox,nnethercote,edwsmith)
Introduce a random number of 'int3' instructions inbetween JIT'd methods.

NOTE: this feature is currently disabled

--HG--
extra : convert_revision : d75d0a918f8e048b92127188f47f4e1efcee9004
2010-10-14 18:54:07 -07:00
Alex Macdonald c362275ffa Bug 603865 - "Revive AOT compiler" [r+r=stejohns]
--HG--
extra : convert_revision : 1cdb89db3ab910033e208fb66cfeb074cd1bca2a
2010-10-12 21:37:00 -07:00
Rick Reitmaier afce6f93cc Bug 587727 - nanojit: Reduce paging traffic from calls to CodeAlloc.markExec (nnethercote,edwsmith)
Stage I cleanup in prep for optimization patch

--HG--
extra : convert_revision : 0224edb6c2b863014fa4688fbe9c1b0ad8e73ef0
2010-10-14 12:26:33 -07:00
Bill McCloskey 116cd8c5d9 Bug 599214 - JM: Add a fast path for object equality (r=dvander,nnethercote) 2010-10-18 17:04:43 -07:00
Nicholas Nethercote 08990acada merge 2010-10-18 16:59:17 -07:00
Nicholas Nethercote ff991e8114 Backed out changeset 11b2f7a76d0f (bug 604297) due to possible dromaeo perf regression. 2010-10-18 16:58:25 -07:00
Blake Kaplan cdab437316 Followup fix for bug 605167 2010-10-18 16:45:39 -07:00
Blake Kaplan b6d5600530 Fix bug 605167. r=peterv
--HG--
extra : rebase_source : 67b5ac9708e2efe22a200ab4cbcaef76b494dfa1
2010-10-18 15:21:50 -07:00
Blake Kaplan be557abdd8 Bug 604365 - Don't accidentally share JSSLOT_PROXY_EXTRA with functions. r=peterv
--HG--
extra : rebase_source : 28b7941b463e83540e078cda86c5ef2b1c56c701
2010-10-18 15:21:47 -07:00
Bill McCloskey 341eb80e3e Bug 600414 - TM: Use a more precise check for negative zero when multiplying (r=nnethercote) 2010-10-18 15:13:55 -07:00
Bill McCloskey d588393631 Bug 600016 - TM: Recognize that the result of Math.floor is an integer (r=nnethercote) 2010-10-18 15:10:52 -07:00
Jan de Mooij be97a4f096 Bug 604427: fix JM handling of !== with nans, r=dvander 2010-10-18 14:19:39 -07:00
Bill McCloskey 19979a0259 Bug 603471 - Make int32* and int32_t* inter-convertible (r=jimb) 2010-10-18 14:10:50 -07:00
Bill McCloskey 8aec936cbb Bug 596676 - Print script execution time in shell (r=dmandelin) 2010-10-18 14:08:56 -07:00
Nicholas Nethercote 7bc67680ae Bug 584279 - TM: improve alias analysis by adding many more access regions (2nd attempt). r=bhackett. 2010-10-18 12:55:56 -07:00
Tom Schuster cd67f252aa Bug 604971 - array.sort compare-function gets incorrect this. r=jwalden 2010-10-18 12:24:23 -07:00
Bill McCloskey e4bb4e95ba Bug 601395 - Add tests (r=cdleary) 2010-10-18 11:38:15 -07:00
Bill McCloskey 83a2baa29d Bug 601395 - Fix parent pointer tracking for block objects (r=cdleary) 2010-10-18 11:34:57 -07:00
David Anderson a16ad777da Backed out changeset 45805d1b90d4. 2010-10-18 11:24:27 -07:00
David Anderson 959f5eb643 Refactor code related to ICs (bug 603779, r=dmandelin,sstangl).
* * *
Make Assembler derive from value-format assemblers (bug 603779 part 1, r=sstangl).
* * *
Refactor dense array load generation (bug 603779 part 2, r=dmandelin).
* * *
Add object class helpers to Assembler (bug 603779 part 3, r=dmandelin).
* * *
Refactor StateRemat and fix nearby IC bugs (bug 603779 part 4, r=dmandelin).
* * *
Refactor ValueRemat (bug 603779 part 5, r=dmandelin).
* * *
Factor out and rename some common IC structures (bug 603779 part 6, r=dmandelin).
2010-10-17 22:28:49 -07:00
Nicholas Nethercote dbbccda80a Backed out changeset c961a413660c 2010-10-17 23:24:26 -07:00
Nicholas Nethercote 172552cc38 Bug 584279 - TM: improve alias analysis by adding many more access regions. r=bhackett. 2010-10-17 18:42:58 -07:00
Nicholas Nethercote f7571aaca6 Bug 604297 - TM: don't allow non-conditions to be passed to TraceRecorder::guard(). r=dmandelin. 2010-10-17 15:53:27 -07:00
Blake Kaplan f58d324f7a Bug 604368 - Share some code so that bug fixes fix both parts. r=peterv a=blocking beta7 2010-10-16 15:26:14 -07:00
Peter Van der Beken d840d4875b Fix for bug 604362 (Don't rewrap XPCWrappedNatives that don't have classinfo). r=mrbkap. 2010-10-16 01:43:53 -07:00
Blake Kaplan c48781685e Bug 604476 - Do a full property resolve when enumerating. r=gal
--HG--
extra : rebase_source : be6ee618aebfed864e737d341208e854061671ee
2010-10-15 18:27:42 -07:00
Blake Kaplan 8111eb6af8 Bug 604797 - Wrap values in nsJSCID::CreateInstance. r=peterv
--HG--
extra : rebase_source : 013a2f6a7056bb50673b5328d31fd069cb05f5ec
2010-10-15 18:27:29 -07:00
Blake Kaplan 6bef7553a2 Fix bug 593602. r=gal
--HG--
extra : rebase_source : d0f105abd26702cd95c6b530ed6d1b1c76c82d52
2010-10-15 14:15:53 -07:00
David Mandelin be2b800be0 Bug 603077: OOM safety for JM assembler buffer, r=dvander 2010-10-14 16:33:49 -07:00
Sean Stangl 89f0cb9ad6 Avoid convertValueToType() in PunboxAssembler. b=604448, r=dvander. 2010-10-15 19:17:35 -04:00
David Mandelin 62723eae20 Bug 604799: allocate 64K code memory chunks on Windows, r=dvander 2010-10-15 15:42:56 -07:00
David Anderson a40d689b66 Merge backout. 2010-10-15 15:30:17 -07:00
David Anderson 574dd8e727 Backed out changeset 8ea3083a9787 2010-10-15 15:29:57 -07:00
David Anderson 720fa885a7 Merge backout. 2010-10-15 15:29:31 -07:00
David Anderson d12dcb2199 Backed out changeset 2bdf648e7015 2010-10-15 15:21:51 -07:00
David Anderson 42b9820504 Backed out changeset cf1d774f7f73 2010-10-15 15:21:20 -07:00
David Anderson a3fde30521 Fix JSD build bustage, JSOP_BEGIN removal fallout. 2010-10-15 14:20:02 -07:00
David Anderson 3cb62e0a8f Merge backout. 2010-10-15 14:19:06 -07:00
David Anderson 446fcc70fc Bumped JSD uuid. 2010-10-15 14:18:13 -07:00
David Anderson 8086415688 Backed out changeset 1998fa240434 2010-10-15 14:13:59 -07:00
David Anderson 0e233f7b62 Remove JSOP_BEGIN and fix tracer integration issues (bug 603044, r=luke+dmandelin). 2010-10-15 11:36:56 -07:00
Jason Orendorff c14c5f3a11 Avoid MSVC mumbo-jumbo in static assertion. Following up on suggestions in bug 604276 comment 6 and bug 598055 comment 1. no_r=me.
--HG--
extra : rebase_source : 313d2b0dba84c9417ab7e2691d6f9c43c52c5a06
2010-10-15 09:31:07 -05:00
Igor Bukanov 94a344d848 bug 602534 - simpler scheduling of the last ditch GC. r=anygregor 2010-10-07 22:43:52 +02:00
Makoto Kato 7a71a9eef5 Bug 604323 - Bug 514570 causes bustage Win64 debug build. r=jwalden 2010-10-15 10:28:30 +09:00
Paul Biggar 257adf384b Bug 590486: Remove snarl now that eval is fast again.
In bug 578158, we needed to run entire benchmarks through eval(), but some
benchmark features erroneously prevented the tracer from running. Snarl() was
added to be an eval() without that limitation. Once that limitation was fixed, in
bug 580529, eval() could be used again and so Snarl() wasn't needed.

--HG--
extra : rebase_source : 0f77190acb0756d067ac9f998c5187c931483e1f
2010-10-14 17:49:49 -07:00
Blake Kaplan 2cac96fe73 Bug 604368 - Protect against the this translator returning a this object from another domain. r=peterv
--HG--
extra : rebase_source : cf6f17e100d0b2fc1cef483e3480757f636d877a
2010-10-14 16:57:56 -07:00
Blake Kaplan f708428e66 Bug 604368 - Successfully get principals off of sandboxes too. r=peterv
--HG--
extra : rebase_source : 78252e0d3a702d3fdbe2221e8649bf59896b47d4
2010-10-14 16:57:27 -07:00
Jason Orendorff 4d845cb596 Silence the few noisiest MSVC warnings. Bug 604276, r=luke.
--HG--
extra : rebase_source : 10874d0c67e080a7143c5a57066a3fd3db6209cb
2010-10-14 18:47:24 -05:00
Sean Stangl 8468c9bd0b Detect some OOM conditions. b=602935, r=jorendorff. 2010-10-14 19:24:09 -04:00
Blake Kaplan 119d7dba55 Fix more orange. a=orange 2010-10-14 16:00:55 -07:00
Blake Kaplan 23b8468c0a Fix bustage. a=orange
--HG--
extra : transplant_source : %CA%90%83%CA%B8%EF%94%24%D8b%FE%8F%E0-%86%B6%BB%0A%8E%EE
2010-10-14 15:53:23 -07:00
Blake Kaplan d5793fa4c7 Bug 604363 - Don't create Xray wrappers for chrome objects in sandboxes. r=peterv
--HG--
extra : rebase_source : 417edb2b843c0f3d8c4f5cb28d1872d901b3081d
2010-10-14 14:56:31 -07:00
Dave Herman 27b26a1fbd bug 602940, r=brendan: remove narcissus from hg tree 2010-10-14 14:36:17 -07:00
Jeff Walden 13f8984759 Revert 782a44082ed2, which was a somewhat-too-optimistic removal of code that's not dead yet (and is not getting better). r=orange 2010-10-14 14:20:59 -07:00
Andreas Gal 9dfe6ec6e0 Don't try to waive Xray wrapper for primitives (604361, r=mrbkap). 2010-10-14 13:41:52 -07:00
Jeff Walden 21801da340 Fix old comment referring to eval cache code being in obj_eval. r=waylon
--HG--
extra : rebase_source : d16f94910568917291fb0b28b124e1632c1f02af
2010-10-11 11:49:29 -07:00
Jeff Walden 6a2f8f7551 Bug 602441 - Remove nigh-unreachable property-cache-testing code (modulo MT objects, nearing complete removal from SpiderMonkey) in the property-setting codepath. r=brendan
--HG--
extra : rebase_source : 38ed65e2dde3b80086be6da4a75120d24759df81
2010-10-07 13:59:23 -07:00
Jeff Walden 2d75752f5e Bug 602441 - JM: Botched extensibility checking when attempting to add a new property to an object. r=dmandelin
--HG--
extra : rebase_source : 1676262c875cd2d283f63c28ae86c9230b7b942a
2010-10-07 12:30:13 -07:00
Jeff Walden 080e606770 Add a test for (eval)(code) being direct eval; also add tests for (1,eval)(code), (a?b:eval)(code), and so on (constant-folding expressions, at least before bug 537673) being indirect. r=lumpy
--HG--
extra : rebase_source : cfed63291a05d936ab76909fe68a0c92ee90d9cd
2010-10-08 20:27:19 -07:00
Jeff Walden 7079074ceb Remove declaration for the never-defined js_GetWrappedObject method (obj->wrappedObject(cx) was the long-ago replacement). r=sparky
--HG--
extra : rebase_source : d50bcf859e415469494e53426ba51d0e4304e676
2010-10-07 16:37:38 -07:00
Sean Stangl da5ef6f024 Eliminate ImmutableSync on x64. b=601066, r=dvander. 2010-10-12 20:08:40 -04:00
Sean Stangl ec609ce9f8 Faster x64 Syncing. b=598839, r=dvander. 2010-10-12 17:39:30 -04:00
Jason Orendorff 3e6a7c4147 Add assertions in JSScript::NewScript against offset overflow. Bug 604387, r=dvander. 2010-10-14 14:58:01 -05:00
Jim Blandy 7adf9c7526 Bug 586917: Properly parse JSOP_TABLESWITCHX instructions in the tracer. r=jorendorff 2010-10-13 18:22:46 -07:00
Blake Kaplan 5f95cb683b Merge mozilla-central into tracemonkey 2010-10-13 17:54:54 -07:00
Blake Kaplan aaf9131ce9 Add a test for bug 604087. r=gal 2010-10-13 16:54:13 -07:00
Jason Orendorff ca91896cef Bug 604087 - Minor tweaks to JS_TransplantWrapper and JSAutoEnterCompartment. r=mrbkap 2010-10-13 17:26:40 -07:00
Blake Kaplan 48933f1c64 Bug 604087 - Deal with GC happening during JS_TransplantWrappers. r=jst/gal 2010-10-13 17:21:00 -07:00
Nicholas Nethercote 57e85553d0 Bug 603825 - Fix a bunch of warnings. r=jwalden. 2010-10-13 16:49:53 -07:00
Nicholas Nethercote 674046cada Bug 600779 - TM: allow for branches that are always taken. r=dmandelin. 2010-10-13 16:39:20 -07:00
Brian Hackett d99bd5b987 Fix memory leak, change uint to unsigned, bug 584917 followup. r=brendan,njn 2010-10-13 16:10:15 -07:00
Brian Hackett ea53e0631f Fix use of uninitialized variable, bug 584917 followup. r=mrbkap 2010-10-13 15:41:53 -07:00
Brian Hackett ad8540a42c Flexible length JSObject, bug 584917. r=brendan,igor 2010-10-13 11:49:22 -07:00
Blake Kaplan 0b81e11689 Bug 603845 - Protect ourselves against compartments that have null principals. r=gal 2010-10-13 11:37:25 -07:00
Blake Kaplan 2783a8459b Bug 604108 - Grab the right compartment to check if we're finalizing the functionNamespaceObject. r=peterv 2010-10-13 11:17:21 -07:00
Johnny Stenback 53d0958841 Merge backout. 2010-10-13 11:18:00 -07:00
Johnny Stenback 39d1044b0a Backed out changeset 08970767d83d per request from sayrer due to a trace malloc alloc regression. 2010-10-13 11:17:51 -07:00
Johnny Stenback 185b534266 Merge backout. 2010-10-13 11:17:22 -07:00
Johnny Stenback ec7cd0c003 Backed out changeset ad0c80eacba7 per request from sayrer due to a trace malloc alloc regression. 2010-10-13 11:17:13 -07:00
Johnny Stenback ecc39385bd Merge backout. 2010-10-13 11:16:38 -07:00
Johnny Stenback 640d25602e Backed out changeset a63b6fa0229c per request from sayrer due to a trace malloc alloc regression. 2010-10-13 11:16:20 -07:00
Sean Stangl 9d406bc8a6 Fix typo in ensureTypeSynced(), fixing assert. b=598839. 2010-10-12 20:34:15 -04:00
Sean Stangl 6720f0f4d4 Eliminate ImmutableSync on x64. b=601066, r=dvander. 2010-10-12 20:08:40 -04:00
Sean Stangl eed5b35324 Faster x64 Syncing. b=598839, r=dvander. 2010-10-12 17:39:30 -04:00
Luke Wagner 54fbe5b289 Bug 603017 - speed up js::DefaultValue on String builtin with void hint (r=brendan) 2010-10-12 13:41:40 -07:00
Gregor Wagner 3777f31fa1 Bug 603433 - TM: various GC cleanups, r=igor 2010-10-13 09:22:05 -07:00
David Mandelin 33241dab0c Bug 603558: add -m option to turn on method jit for xpcshell, r=dvander, a=shaver
--HG--
extra : rebase_source : 9374b3ab212fa8cd41d33b3887e678b9888be972
2010-10-12 17:25:37 -07:00
Blake Kaplan 9acf13d5aa Revert unintended changes. 2010-10-12 17:44:34 -07:00
Blake Kaplan df600b811f Bug 603816 - Don't assume that target->data is non-null. r=peterv
--HG--
extra : rebase_source : 6a3e949376465cc9eac3d4ffa6b7fc3ba501c502
2010-10-12 16:28:22 -07:00
Nicholas Nethercote d43a651011 Update nanojit-import-rev stamp. 2010-10-12 12:53:29 -07:00
Peter Van der Beken 9fc01aa93d Fix for bug 603677 (Crash on startup due to GetProto on an XPCWrappedNative being null with Bugzilla Tweaks jetpack installed), compartments followup. r=mrbkap.
--HG--
extra : rebase_source : 884494ce295e8e2222de4f3bafb02d4a96e2bcc2
2010-10-12 11:51:42 -07:00
Nicholas Nethercote ded661f43c These tests should have been added as part of the patch for bug 595728.
--HG--
extra : convert_revision : f31ee612d65e224424ae24d1852491c1b1698388
2010-10-07 23:14:10 -07:00
Nicholas Nethercote da81d1c120 Bug 599247 - nanojit: in Nativei386.cpp, generate d[b + i<<s] addressing modes in asm_store32(). r=edwsmith.
--HG--
extra : convert_revision : cf8d0148a91da8795edec935ddec57d4164bc3aa
2010-10-07 20:24:07 -07:00
Rick Reitmaier 78296efc38 fix build breakage
--HG--
extra : convert_revision : c900245f6488bbcca67f1b2136c4f30427a789aa
2010-10-07 19:35:06 -07:00
Rick Reitmaier 82959cbc12 Bug 596056 - nanojit: random number generator needed for many hardening algorithms (r+nnethercote,edwsmith)
introduce noise object

Assembler to use a noise object in which the actual mechanics of how noise is
being produced in abstracted by the client.

The noise object will often need to contain state so its convenient to derive
from this class and build an object containing all the necessary state.

--HG--
extra : convert_revision : c569f3ddd2d9b7a69b3c63f1fd139ea8d513fd9c
2010-10-07 19:22:35 -07:00
Nicholas Nethercote 562196787e Bug 602408 - nanojit: print all hex numbers in LIR dumps with an 0x prefix. r=rreitmai.
--HG--
extra : convert_revision : 819b3d7e0ab682bf76da6c24de58434f5744e640
2010-10-07 15:30:36 -07:00
Jason Orendorff af0a68663c Fix anyname_finalize to look in the right compartment, to avoid dangling pointer. Likely fix for bug 603270. r=mrbkap over IRC.
--HG--
extra : rebase_source : 234c1412ce5543e32222cfd292ee905634ef6741
2010-10-12 14:40:05 -05:00
Jim Blandy fa5eb3d917 Bug 601168: Allow nsHTMLPluginObjElementSH::Call to pass through non-Object |this| values to the plugin. r=bz,gal
This introduces some new JSAPI C++ entry points, one of which allows
arbitrary jsvals to be passed as the |this| value to a call; this means we
avoid a JSVAL_TO_OBJECT call in the caller, and its corresponding
OBJECT_TO_JSVAL call in the callee.
2010-10-12 11:50:03 -07:00
Jim Blandy 71e233afb3 Bug 514570: Adapt XPConnect to new JS_GetFrameThis arguments. r=jorendorff
It used to be:
JSObject *JS_GetFrameThis(JSContext *, JSStackFrame *);

Now it is:
JSBool JS_GetFrameThis(JSContext *, JSStackFrame *, jsval *);

(In strict mode code, |this| values that are primitives don't get wrapped.)
2010-10-12 11:50:03 -07:00
Jim Blandy def7caaed5 Bug 514570: Adapt jsd to new JS_GetFrameThis arguments. r=brendan
It used to be:
JSObject *JS_GetFrameThis(JSContext *, JSStackFrame *);

Now it is:
JSBool JS_GetFrameThis(JSContext *, JSStackFrame *, jsval *);

(In strict mode code, |this| values that are primitives don't get wrapped.)
2010-10-12 11:50:03 -07:00
Jeff Walden c79dd5c763 Bug 575522 - Object.prototype.toString should return "[object Undefined]" and "[object Null]" when called with |this === undefined| or |this === null|, respectively. r=jorendorff,brendan 2010-10-12 11:50:03 -07:00
Jeff Walden 3b62059562 Bug 514570 - 3 - Don't box |this| for strict mode functions. r=jorendorff 2010-10-12 11:50:03 -07:00
Jeff Walden 545f7104c0 Bug 514570 - 2 - Push |undefined| rather than |null| when calling functions without a specified |this| value, per ES5. r=jorendorff 2010-10-12 11:50:03 -07:00
Jeff Walden 8a276492f8 Bug 514570 - 1 - Convert primitive-this-of-type function flags into a single primitive-this flag, to pave way for strict mode unadulterated-this passing. r=jorendorff 2010-10-12 11:50:02 -07:00
Brendan Eich 8140dc23ab JSOPTION_ANONFUNFIX should be set in js shell (5595555, r=cdleary). 2010-10-06 14:58:28 -07:00
Ginn Chen 524b7dd76b Bug 601835 Add JS_STATIC_ASSERT back for Solaris Studio, r=brendan 2010-10-11 18:23:55 +08:00
Brendan Eich 96d9a470af Warning fixes (one left over from 602621, the other from 584789). 2010-10-10 21:11:45 -07:00
Johnny Stenback 0bccc11e08 Bug 580128 - No need to assert about commpartment mismatches in JS_Get/SetPrivate (r=gal). 2010-10-10 15:50:11 -07:00
Blake Kaplan 4b1a2175d4 Bug 580128 - Deal with the outer object hook failing a little more gracefully. r=jst 2010-10-10 15:49:51 -07:00
Peter Van der Beken 4c00529cae Bug 580128. Remove cross origin string wrappers from hash when the wrapped string dies. r=mrbkap.
As a note: this bug took peterv and mrbkap 7 hours to track down using replay debugging after spending hours trying to even catch it on a replay debugging box.
2010-10-10 15:49:38 -07:00
Blake Kaplan 54b162890d bug 580128 - Allow chrome://global/ scripts to unwrap SOWs going into C++. r=peterv/jst 2010-10-10 15:49:30 -07:00
Andreas Gal 2b24b54ddc bug 580128 - split expando properties onto a separate object and implement enumeration. r=mrbkap 2010-10-10 15:49:13 -07:00
Blake Kaplan c69d16700c bug 580128 - By default properties created by property assignment are enumerable. r=gal 2010-10-10 15:49:08 -07:00
Blake Kaplan 25fc5d0395 bug 580128 - Create SOWs same and cross compartment. r=jst 2010-10-10 15:48:55 -07:00
Johnny Stenback 65f800bb78 bug 580128 - Allow unwrapping windows via JSObject::unwrap. r=jst 2010-10-10 15:48:35 -07:00
Andreas Gal d57858e03c bug 580128 - Implement deep wrapping for .wrappedJSObject. r=mrbkap 2010-10-10 15:48:29 -07:00
Blake Kaplan 2976346a0c bug 580128 - Outerize inner windows. r=jst 2010-10-10 15:47:55 -07:00
Blake Kaplan 15775f1bf8 bug 580128 - Reparent proxies when we pull them out of the map in order to try to keep their parents sembling something current. r=jst 2010-10-10 15:47:48 -07:00
Andreas Gal dc2e83e4c7 bug 580128 - Cross origin wrapper needs no waive xray flag. r=mrbkap 2010-10-10 15:47:22 -07:00
Peter Van der Beken df4cfdf19f bug 580128 - Don't create slim wrappers when crossing compartments. r=mrbkap 2010-10-10 15:47:19 -07:00
Peter Van der Beken 13711188f4 bug 580128 - Don't create multiple wrappers for global objects (like BackstagePass). r=mrbkap 2010-10-10 15:47:16 -07:00
David Anderson 016817669a Fix bug 602574 - Assertion failure: constOffset != 0 in JSScript::NewScript() on 64-bit platforms. r=gal@uci.edu 2010-10-10 15:47:09 -07:00
Blake Kaplan fd3d460e9e bug 580128 - Revert bogus change to which scope we use in nsXPCWrappedJSClass::CallMethod. r=jst Many thanks to Margaret and sdwilsh who helped track this one down. 2010-10-10 15:46:59 -07:00
Peter Van der Beken 155dfa7b38 Bug 580128. Remove XrayUtils::JSSLOT_PROXY_OBJ to fix leaks. r=mrbkap. 2010-10-10 15:46:45 -07:00
Peter Van der Beken c8ee8265da bug 580128 - Fix js_PrintObjectSlotName. r=mrbkap 2010-10-10 15:46:42 -07:00
Peter Van der Beken 0603277ffe bug 580128 - Initialize vp before calling property op in JSProxyHandler::get. r=mrbkap 2010-10-10 15:46:34 -07:00
Peter Van der Beken 77409a67ef Bug 580128 - Fix NativeWrapper(window).document. r=mrbkap 2010-10-10 15:46:26 -07:00
Andreas Gal 594577a504 bug 580128 - Fix compartment bugs in XrayWrapper. r=mrbkap 2010-10-10 15:46:23 -07:00
Johnny Stenback d2eae6376e Bug 580128. Reset gczeal after test completes. r=gal@uci.edu 2010-10-10 15:46:20 -07:00
Johnny Stenback 66f860e05f Bug 580128. Properly switch compartments and wrap values when running xpcshell tests. r=mrbkap@gmail.com 2010-10-10 15:46:16 -07:00
Johnny Stenback 40af29c60d Bug 580128. Disable test that is not ready for the new wrappers yet. r=mrbkap@gmail.com 2010-10-10 15:46:13 -07:00
Peter Van der Beken 4f0abcc94d bug 580128 - Fix evalInSandbox. r=mrbkap 2010-10-10 15:46:07 -07:00
Andreas Gal a67ef19b55 bug 580128 - Make e4x anyname etc be per compartment, not in the default compartment. r=mrbkap 2010-10-10 15:46:05 -07:00
Andreas Gal a88fa79d4d bug 580128 - Remove test that no longer works right. r=mrbkap 2010-10-10 15:43:06 -07:00
Johnny Stenback a93d446c13 bug 580128 - Move test that tests for existence of XrayWrapper's into chrome, and fix lookupMethod bug that was triggered by the test move. r=mrbkap
--HG--
rename : js/src/xpconnect/tests/mochitest/test_bug517163.html => js/src/xpconnect/tests/chrome/test_bug517163.xul
2010-10-10 15:42:45 -07:00
Blake Kaplan 4f7649797a bug 580128 - Attempt to fix file:// URIs all ending up in the same compartment. r=peterv 2010-10-10 15:42:36 -07:00
Blake Kaplan 0acb8b4b21 bug 580128 - Make document.domain affect how we look up properties in addition to the security check. r=gal 2010-10-10 15:42:21 -07:00
Blake Kaplan 4c4c20a6b7 bug 580128 - Distinguish between XOW XrayWrappers and XPCNW XrayWrappers and use the new knowledge in a few places. r=gal 2010-10-10 15:42:18 -07:00
Blake Kaplan f9cf9e013e bug 580128 - Use scopes when we have them to wrap into the right scopes. r=peterv 2010-10-10 15:42:12 -07:00
Johnny Stenback 763715fac1 bug 580128 - Fix getting doubled wrapped objects in XPConnect. r=mrbkap 2010-10-10 15:42:04 -07:00
Andreas Gal e5837bfacc bug 580128 - Remove test that uses an obsolete wrapper. r=mrbkap 2010-10-10 15:42:01 -07:00
Jason Orendorff f3a07d6d48 Mainly just fix ExposedPropertiesOnly::check to ignore non-enumerable properties and return true when no property is found. r=mrbkap 2010-10-10 15:41:56 -07:00
Peter Van der Beken ee865213da bug 580128 - Remove old wrappers. r=mrbkap 2010-10-10 15:41:40 -07:00
Blake Kaplan 375a00528d bug 580128 - Fix evalInSandbox returning objects in the wrong compartment. r=jst 2010-10-10 15:41:33 -07:00
Andreas Gal 5ff6a51811 bug 580128 - Try to allow UniversalXPConnect to have full access through "XOWs". 2010-10-10 15:41:24 -07:00
Andreas Gal 88c2bfa888 bug 580128 - Don't think the outer window isn't "native". r=mrbkap 2010-10-10 15:41:20 -07:00
Andreas Gal a1fc00b5dd Bug 580128. Update mochi tests to the new wrappers. r=mrbkap@gmail.com 2010-10-10 15:41:14 -07:00
Andreas Gal f50e80d1d5 bug 580128 - Fix compartment mistakes around document.domain stuff. r=mrbkap 2010-10-10 15:39:29 -07:00
Andreas Gal 7638a8f558 bug 580128 - Allow proxies to answer the "hasInstance" question. r=mrbkap 2010-10-10 15:39:26 -07:00
Peter Van der Beken 2f85f5f41b bug 580128 - Allow NewResolve to set properties on wrappers. r=gal 2010-10-10 15:39:23 -07:00
Andreas Gal cbc705da67 bug 580128 - Allow access when both sites have set document.domain. r=mrbkap 2010-10-10 15:39:19 -07:00
Johnny Stenback e64726aa83 Bug 580128. Use JS_WrapObject() in xpcJSWeakReference::Get() since it's the right API to use here. r=mrbkap@gmail.com 2010-10-10 15:39:17 -07:00
Andreas Gal fa912fc601 Bug 580128. Don't let script access only wrappers be passed to C++ code. r=peterv@propagandism.org 2010-10-10 15:39:08 -07:00
Andreas Gal 7ce0334faa bug 580128 - Fix wrapping of jsval parameters. r=peterv 2010-10-10 15:39:04 -07:00
Peter Van der Beken ce47a62917 Bug 580128 - Fix XPCVariant::VariantDataToJS to properly rewrap, r=gal. 2010-10-10 15:39:02 -07:00
Blake Kaplan aa99ffdd86 bug 580128 - Make the XPCNativeWrapper constructor work to actually construct XrayWrappers. r=jst 2010-10-10 15:38:56 -07:00
Blake Kaplan 66069edde9 bug 580128 - Deal better with compartments around the xray holder object. r=gal 2010-10-10 15:38:39 -07:00
Blake Kaplan 2431048ce3 bug 580128 - Try to make test_wrappers-2.xul work a little better.
--HG--
rename : js/src/xpconnect/tests/chrome/file_wrappers-2.html => js/src/xpconnect/tests/mochitest/file_wrappers-2.html
2010-10-10 15:38:24 -07:00
Andreas Gal 4c755acf19 Bug 580128. Add more asserts to the interpreter to check that we're on the right compartment. r=mrbkap@gmail.com 2010-10-10 15:38:13 -07:00
Blake Kaplan c2fe351214 bug 580128 - Attempt to make the XPCNativeWrapper constructor create XrayWrappers. r=jst 2010-10-10 15:37:44 -07:00
Johnny Stenback 0aeff67250 Bug 580128. Fix various mochi chrome tests to work with the new wrappers. r=mrbkap@gmail.com 2010-10-10 15:37:28 -07:00
David Mandelin b6afb977ea Bug 602003: add jsd API to query valid script begin and end PCs, r=sayrer,jjb 2010-10-06 11:23:14 -07:00
Jason Orendorff 88a7b70980 Bug 592664, Epilogue: caching eval scripts that we will never use again is necessary to avoid leaking them. rs=Waldo. (Note that my 4 previous commits today were all for bug 592664, not "592644" as the commit messages say.)
--HG--
extra : rebase_source : e7337a31313a4ef3d2d676be41291c832afa4c15
2010-10-07 19:15:45 -05:00
David Mandelin c647a70390 Backed out changeset af020f2b9293 due to x64 build bustage. 2010-10-07 17:03:01 -07:00
David Mandelin 8bea69ceb4 Bug 602003: add jsd API to query valid script begin and end PCs, r=sayrer,jjb 2010-10-06 11:23:14 -07:00
David Mandelin 2c817b41f5 Remove obsolete declarations for functions never defined or called 2010-10-07 16:33:40 -07:00
Nicholas Nethercote fdeacba786 Bug 601009 - TM: allow for guards that always exit. r=dmandelin. 2010-10-07 15:51:57 -07:00
Andreas Gal 0014b2cf0b Make functions per compartment, and deep copy instead of clone them if needed (584789, r=mrbkap). 2010-09-29 23:17:29 -07:00
Andreas Gal 4686b72df9 Bug 580128 - Small cleanups in XrayWrapper and first stab at enumeration. r=mrbkap 2010-10-10 15:37:22 -07:00
Blake Kaplan 1120f0efdb bug 580128 - Fix more compartment warnings. Work of multiple people. r=gal/peterv/jst 2010-10-10 15:37:19 -07:00
Blake Kaplan 2fe3830b98 bug 580128 - Add a test about double wrapped native objects in security wrappers. r=jst 2010-10-10 15:36:59 -07:00
Andreas Gal 84dc68b734 bug 580128 - Clean up our passing from JS-into-C++ story. r=peterv/mrbkap 2010-10-10 15:36:41 -07:00
Blake Kaplan 8fa4142573 bug 580128 - Allow API consumers to pass in a new object altogether before trying to wrap in a security wrapper. r=gal/peterv 2010-10-10 15:36:38 -07:00
Mounir Lamouri 34e9c2a2a2 Bug 580128. Make tests that now need to be chrome tests be chrome tests. r=jst@mozilla.org
--HG--
rename : js/src/xpconnect/tests/mochitest/test_bug484459.html => js/src/xpconnect/tests/chrome/test_bug484459.xul
rename : js/src/xpconnect/tests/mochitest/test_cows.html => js/src/xpconnect/tests/chrome/test_cows.xul
rename : js/src/xpconnect/tests/mochitest/test_wrappers.html => js/src/xpconnect/tests/chrome/test_wrappers-2.xul
2010-09-30 00:14:30 -07:00
Blake Kaplan d4e6fc1d03 bug 580128 - Implement XrayWrapper::toString. r=jst 2010-10-10 15:36:32 -07:00
Blake Kaplan 0a92ad616e bug 580128 - Use the shiny new API for finding XrayWrappers. r=jst 2010-10-10 15:36:20 -07:00
Andreas Gal 5f55c9cf8f bug 580128 - Give XrayWrappers a flag they can query for. r=mrbkap 2010-10-10 15:36:04 -07:00
Blake Kaplan 495c22a549 bug 580128 - Allow unwrapping XrayWrappers via XPCNativeWrapper.unwrap. r=jst 2010-10-10 15:35:54 -07:00
Blake Kaplan f748b13b17 bug 580128 - Stop returning the old wrappers from their constructors. r=jst 2010-10-10 15:35:48 -07:00
Jason Orendorff 227f3c1dfb Bug 580128 - Some more compartment fixes. r=gal 2010-10-10 15:35:46 -07:00
Blake Kaplan 44276105a4 Bug 606106 - Avoid tripping an assertion under CC. r=gal
--HG--
extra : rebase_source : ca7c16354a3b9b2c506fa712d4391232770e9132
2010-10-25 12:12:43 -07:00
Blake Kaplan 6c333daa1b Bug 606357 - Make jsd values not compartment mismatch. r=gal
--HG--
extra : rebase_source : f1b2f7b70f874868cf6f5aaa1ce4782b229ed5fe
2010-10-25 12:12:32 -07:00
Peter Van der Beken 42e84b64c0 Bug 580128 - Always wrap Location objects in wrappers, even for same origin. r=mrbkap/gal 2010-09-29 10:00:52 -07:00
Johnny Stenback c455f0ac4d bug 580128 - Make the component loader work for content scripts with UniversalXPConnect. r=mrbkap 2010-09-29 10:00:52 -07:00
Johnny Stenback 751ac646a7 bug 580128 - Deal with null principals (for e.g. dom worker compartments). r=mrbkap 2010-09-29 10:00:52 -07:00
Blake Kaplan 04162da78e bug 580128 - Loosen our policy on what you're to see on cross-origin errors. r=jst 2010-09-29 10:00:52 -07:00
Jeff Walden ab38ba2e5e Bug 600128 - Properly record attempted addition of properties to non-extensible objects. r=jimb
--HG--
extra : rebase_source : af730b39d1f5d6b299e74278ec22d1920ec96e2c
2010-09-28 17:09:40 -07:00
Jeff Walden 85869d6440 Bug 601307 - Add a test for directness of the eval in |with (...) eval(...)| (assuming eval is the global eval function). r=jimb
--HG--
extra : rebase_source : 9a6b233cd99a3f9016c760f1249497d5a39d0c55
2010-10-01 18:40:11 -07:00
Jason Orendorff 1b8c6bda13 Bug 592644 - ES5 indirect eval. Part 2, factor out EvalCacheLookup and other misc. cleanup. r=brendan. 2010-10-07 15:01:45 -05:00
Jason Orendorff f6db5c4329 Back out changeset 7598b7ab2e76.
--HG--
extra : rebase_source : e3571c6433d01e53ba31639d4dc082ced93775f0
2010-10-07 15:35:08 -05:00
Brendan Eich ef45b5bbf7 Back out my last push (599009 botched followup). 2010-10-07 13:17:03 -07:00
Jason Orendorff 92d5ca1dc7 Bug 592644 - ES5 indirect eval. Part 2, factor out EvalCacheLookup and other misc. cleanup. r=brendan.
--HG--
extra : rebase_source : 6c0dfea58dbbe3d9ce7aa6315b4c9c17c253a03a
2010-10-07 15:01:45 -05:00
Jason Orendorff 332c179f26 Bug 592644 - ES5 indirect eval. Part 1, add support and tests. r=brendan.
--HG--
extra : rebase_source : 5d07f3e847b2adfb46f30f343af2e06d494012c3
2010-10-07 15:00:09 -05:00
Brendan Eich c4ead6da5c Nit-picks, mainly localizing and initializing the oldAttrs var, on patchwork for bug 599009 (r=bz). 2010-10-07 11:33:23 -07:00
Dave Herman c3c6f4378f bug 584787, r=pcwalton: Node shouldn't subclass Array 2010-10-07 10:59:45 -07:00
Boris Zbarsky b5b240a94c Another bug 599009 followup. Don't assert things about uninitialized quantities. 2010-10-07 13:58:51 -04:00
Boris Zbarsky 6a95cecd4c Bug 599009 followup. Fix typo in assert. 2010-10-07 11:03:41 -04:00
Boris Zbarsky d9a198ca44 Bug 599009. Don't use setProperty for JSOP_DEFFUN unless there's already a property with that name around, to work around the fact that setProperty will define with class-default getter and setter while we always want to define with stub getter and setter if we can. r=igor 2010-10-07 09:18:53 -04:00
Johnny Stenback 24f40039dc Fixing bustage. 2010-10-06 19:50:46 -07:00
Andreas Gal baeb634139 GetPropertyByName doesn't deep bail (602415, r=dvander). 2010-10-06 19:30:02 -07:00
Robert Sayre ab219edba6 Merge mozilla-central to tracemonkey. 2010-10-06 18:48:56 -07:00
Nicholas Nethercote 955bb23ffc Bug 599251 - nanojit: make Register a non-numeric type (TM-specific part). r=edwsmith. 2010-10-06 17:39:28 -07:00
Chris Jones e9f011fa16 Bug 602393: Fix idiotic mistake causing JITs to be blacklisted on all android devices. r=dvander a=blocking-fennec-b1+ 2010-10-06 19:39:19 -05:00
Nicholas Nethercote f981009a40 Update nanojit-import-rev stamp. 2010-10-06 17:28:51 -07:00
Nicholas Nethercote b43384dbb4 Bustage fix: add new file that was accidentally omitted for bug 599251.
--HG--
extra : convert_revision : 661718b83d398aa4c91f522f7d08ef5cea8e20a9
2010-10-06 15:51:01 -07:00
Nicholas Nethercote bfa41bbb4c Bug 599251 - nanojit: make Register a non-numeric type. r=edwsmith.
--HG--
extra : convert_revision : c7275693cde4c740f1a53ab73b9ec1963f6fe0cc
2010-10-06 15:30:56 -07:00
Nicholas Nethercote b830997304 Fix compiler warning. No bug, r=jwalden via IRC. 2010-10-06 16:16:11 -07:00
Nicholas Nethercote 950fc61240 Bug 593931 - inline js_GetPropertyHelper() and friends more aggressively. r=cdleary. 2010-10-06 16:14:01 -07:00
Chris Leary 6d8801c7da Fix trace_tests.py when showing output. (r=jorendorff) 2010-10-06 15:15:54 -07:00
Chris Leary d03b3dae38 Bug 596775: re-enable YARR-JIT on ARM. (r=vladimir) 2010-10-05 18:20:06 -07:00
Jason Orendorff 2798a2c31b Back out changeset 89006937466d (crashing tests on tinderbox). 2010-10-06 15:51:14 -05:00
Jason Orendorff e5baa6afae Bug 592644 - Indirect eval should be allowed under ES5. r=brendan. 2010-10-06 15:11:30 -05:00
Tom Schuster 949190e84a Bug 601689 - Optimize GetArrayElement for arguments objects (r=lw)
--HG--
extra : rebase_source : 6360a47b95660da477a1f312ab8654a23e4019c1
2010-10-06 12:04:31 -07:00
Bill McCloskey 0359380c32 Fix trap instruction in trace-test, bump XDR version (r=dvander) 2010-10-06 11:58:33 -07:00
David Anderson be6670e3a6 Fix assert in InvokeConstructor (bug 602088, r=luke). 2010-10-06 11:06:18 -07:00
Bill McCloskey d9cff48d7d Bug 601986 - Make blockchain determination faster for with, flat closures (r=igor) 2010-10-06 10:41:36 -07:00
Bill McCloskey 9658d5f787 Bug 601398 - Use new instructions, rather than source notes, to obtain block chain (r=igor) 2010-10-06 10:40:07 -07:00