Nicholas Nethercote
65783d923e
Update nanojit-import-rev stamp.
2010-10-12 12:53:29 -07:00
Peter Van der Beken
bbd245418b
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
70f7143ef4
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
3155e1c9c7
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
87af73a001
fix build breakage
...
--HG--
extra : convert_revision : c900245f6488bbcca67f1b2136c4f30427a789aa
2010-10-07 19:35:06 -07:00
Rick Reitmaier
bed62572db
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
b99ff9d5d9
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
2e8c14c928
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
142983dfa4
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
a271637595
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
e54a804e93
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
eb02fa2270
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
1b66d40016
Bug 514570 - 3 - Don't box |this| for strict mode functions. r=jorendorff
2010-10-12 11:50:03 -07:00
Jeff Walden
8db4fe218a
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
bfac56a8fb
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
bb009a8dfe
JSOPTION_ANONFUNFIX should be set in js shell (5595555, r=cdleary).
2010-10-06 14:58:28 -07:00
Ginn Chen
d4d1a6d7d8
Bug 601835 Add JS_STATIC_ASSERT back for Solaris Studio, r=brendan
2010-10-11 18:23:55 +08:00
Brendan Eich
4194fc4e68
Warning fixes (one left over from 602621, the other from 584789).
2010-10-10 21:11:45 -07:00
Johnny Stenback
eadf8a8150
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
f45ee82f02
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
c914f1d5dd
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
ab0c961743
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
1e201c2e71
bug 580128 - split expando properties onto a separate object and implement enumeration. r=mrbkap
2010-10-10 15:49:13 -07:00
Blake Kaplan
d1f7d8a54f
bug 580128 - By default properties created by property assignment are enumerable. r=gal
2010-10-10 15:49:08 -07:00
Blake Kaplan
a592a50e70
bug 580128 - Create SOWs same and cross compartment. r=jst
2010-10-10 15:48:55 -07:00
Johnny Stenback
814da522b1
bug 580128 - Allow unwrapping windows via JSObject::unwrap. r=jst
2010-10-10 15:48:35 -07:00
Andreas Gal
25a8fe2c09
bug 580128 - Implement deep wrapping for .wrappedJSObject. r=mrbkap
2010-10-10 15:48:29 -07:00
Blake Kaplan
5be445d6b2
bug 580128 - Outerize inner windows. r=jst
2010-10-10 15:47:55 -07:00
Blake Kaplan
1d2520f0ea
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
b33c3bf7ef
bug 580128 - Cross origin wrapper needs no waive xray flag. r=mrbkap
2010-10-10 15:47:22 -07:00
Peter Van der Beken
6ee87b1807
bug 580128 - Don't create slim wrappers when crossing compartments. r=mrbkap
2010-10-10 15:47:19 -07:00
Peter Van der Beken
dd733e0342
bug 580128 - Don't create multiple wrappers for global objects (like BackstagePass). r=mrbkap
2010-10-10 15:47:16 -07:00
David Anderson
9179a39396
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
030ab615a5
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
49f5066dde
Bug 580128. Remove XrayUtils::JSSLOT_PROXY_OBJ to fix leaks. r=mrbkap.
2010-10-10 15:46:45 -07:00
Peter Van der Beken
f5a023dff1
bug 580128 - Fix js_PrintObjectSlotName. r=mrbkap
2010-10-10 15:46:42 -07:00
Peter Van der Beken
048f311321
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
c47194b5fc
Bug 580128 - Fix NativeWrapper(window).document. r=mrbkap
2010-10-10 15:46:26 -07:00
Andreas Gal
93dd911664
bug 580128 - Fix compartment bugs in XrayWrapper. r=mrbkap
2010-10-10 15:46:23 -07:00
Johnny Stenback
f06c2d00c7
Bug 580128. Reset gczeal after test completes. r=gal@uci.edu
2010-10-10 15:46:20 -07:00
Johnny Stenback
7eb649b6d9
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
21bee40f23
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
8bf6a41cb7
bug 580128 - Fix evalInSandbox. r=mrbkap
2010-10-10 15:46:07 -07:00
Andreas Gal
48d6b2cef0
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
926c79e441
bug 580128 - Remove test that no longer works right. r=mrbkap
2010-10-10 15:43:06 -07:00
Johnny Stenback
5932763483
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
cf2f642d32
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
316a5324f1
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
5631a85e40
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
48b273e97d
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
b854afb970
bug 580128 - Fix getting doubled wrapped objects in XPConnect. r=mrbkap
2010-10-10 15:42:04 -07:00
Andreas Gal
509eb29b87
bug 580128 - Remove test that uses an obsolete wrapper. r=mrbkap
2010-10-10 15:42:01 -07:00
Jason Orendorff
d1d7718ac8
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
f2855434db
bug 580128 - Remove old wrappers. r=mrbkap
2010-10-10 15:41:40 -07:00
Blake Kaplan
6c7cd79252
bug 580128 - Fix evalInSandbox returning objects in the wrong compartment. r=jst
2010-10-10 15:41:33 -07:00
Andreas Gal
fa5d3f82f5
bug 580128 - Try to allow UniversalXPConnect to have full access through "XOWs".
2010-10-10 15:41:24 -07:00
Andreas Gal
1539341407
bug 580128 - Don't think the outer window isn't "native". r=mrbkap
2010-10-10 15:41:20 -07:00
Andreas Gal
bd7d445d26
Bug 580128. Update mochi tests to the new wrappers. r=mrbkap@gmail.com
2010-10-10 15:41:14 -07:00
Andreas Gal
046cfa050e
bug 580128 - Fix compartment mistakes around document.domain stuff. r=mrbkap
2010-10-10 15:39:29 -07:00
Andreas Gal
15df9eaaec
bug 580128 - Allow proxies to answer the "hasInstance" question. r=mrbkap
2010-10-10 15:39:26 -07:00
Peter Van der Beken
dc1082fc97
bug 580128 - Allow NewResolve to set properties on wrappers. r=gal
2010-10-10 15:39:23 -07:00
Andreas Gal
f8bd40201e
bug 580128 - Allow access when both sites have set document.domain. r=mrbkap
2010-10-10 15:39:19 -07:00
Johnny Stenback
a0fe326988
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
6a4e9945b0
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
7f9d12d8d0
bug 580128 - Fix wrapping of jsval parameters. r=peterv
2010-10-10 15:39:04 -07:00
Peter Van der Beken
33995dacf8
Bug 580128 - Fix XPCVariant::VariantDataToJS to properly rewrap, r=gal.
2010-10-10 15:39:02 -07:00
Blake Kaplan
4e1b8c7a56
bug 580128 - Make the XPCNativeWrapper constructor work to actually construct XrayWrappers. r=jst
2010-10-10 15:38:56 -07:00
Blake Kaplan
9973d0f31d
bug 580128 - Deal better with compartments around the xray holder object. r=gal
2010-10-10 15:38:39 -07:00
Blake Kaplan
79395ab7c3
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
b08d9a62c9
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
186109950a
bug 580128 - Attempt to make the XPCNativeWrapper constructor create XrayWrappers. r=jst
2010-10-10 15:37:44 -07:00
Johnny Stenback
c6b8f8093f
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
d112487c3d
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
dde8e36f2a
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
4e2d76fbc7
Backed out changeset af020f2b9293 due to x64 build bustage.
2010-10-07 17:03:01 -07:00
David Mandelin
8b91a371ac
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
87255fd816
Remove obsolete declarations for functions never defined or called
2010-10-07 16:33:40 -07:00
Nicholas Nethercote
ebb0ade8cb
Bug 601009 - TM: allow for guards that always exit. r=dmandelin.
2010-10-07 15:51:57 -07:00
Andreas Gal
21cdd79153
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
efbae541a4
Bug 580128 - Small cleanups in XrayWrapper and first stab at enumeration. r=mrbkap
2010-10-10 15:37:22 -07:00
Blake Kaplan
644aa16e54
bug 580128 - Fix more compartment warnings. Work of multiple people. r=gal/peterv/jst
2010-10-10 15:37:19 -07:00
Blake Kaplan
969bd22678
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
8f2f47a9d0
bug 580128 - Clean up our passing from JS-into-C++ story. r=peterv/mrbkap
2010-10-10 15:36:41 -07:00
Blake Kaplan
a6e9a41e46
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
0e8ed043cb
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
58483cc685
bug 580128 - Implement XrayWrapper::toString. r=jst
2010-10-10 15:36:32 -07:00
Blake Kaplan
f55282e9f1
bug 580128 - Use the shiny new API for finding XrayWrappers. r=jst
2010-10-10 15:36:20 -07:00
Andreas Gal
3ae5caff40
bug 580128 - Give XrayWrappers a flag they can query for. r=mrbkap
2010-10-10 15:36:04 -07:00
Blake Kaplan
a943fb0e00
bug 580128 - Allow unwrapping XrayWrappers via XPCNativeWrapper.unwrap. r=jst
2010-10-10 15:35:54 -07:00
Blake Kaplan
4d8b527cd4
bug 580128 - Stop returning the old wrappers from their constructors. r=jst
2010-10-10 15:35:48 -07:00
Jason Orendorff
01554ba3dc
Bug 580128 - Some more compartment fixes. r=gal
2010-10-10 15:35:46 -07:00
Peter Van der Beken
e036314b75
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
2ec85d518c
bug 580128 - Make the component loader work for content scripts with UniversalXPConnect. r=mrbkap
2010-09-29 10:00:52 -07:00
Johnny Stenback
8241c4727c
bug 580128 - Deal with null principals (for e.g. dom worker compartments). r=mrbkap
2010-09-29 10:00:52 -07:00
Blake Kaplan
f1b7679b78
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
94009aa8b6
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
9e9b0bfd94
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
450b5d7856
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
2eddcbcb39
Back out changeset 7598b7ab2e76.
...
--HG--
extra : rebase_source : e3571c6433d01e53ba31639d4dc082ced93775f0
2010-10-07 15:35:08 -05:00
Brendan Eich
b9a95a11db
Back out my last push (599009 botched followup).
2010-10-07 13:17:03 -07:00
Jason Orendorff
0ca8694996
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
c317b35338
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
b250c727a3
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
b3fd89a22a
bug 584787, r=pcwalton: Node shouldn't subclass Array
2010-10-07 10:59:45 -07:00
Boris Zbarsky
e2941e77c7
Another bug 599009 followup. Don't assert things about uninitialized quantities.
2010-10-07 13:58:51 -04:00
Boris Zbarsky
a7aff5111b
Bug 599009 followup. Fix typo in assert.
2010-10-07 11:03:41 -04:00
Boris Zbarsky
25d5ead265
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
f231551624
Fixing bustage.
2010-10-06 19:50:46 -07:00
Andreas Gal
0a55eb0a2d
GetPropertyByName doesn't deep bail (602415, r=dvander).
2010-10-06 19:30:02 -07:00
Robert Sayre
2ca2272409
Merge mozilla-central to tracemonkey.
2010-10-06 18:48:56 -07:00
Nicholas Nethercote
1127556283
Bug 599251 - nanojit: make Register a non-numeric type (TM-specific part). r=edwsmith.
2010-10-06 17:39:28 -07:00
Chris Jones
ed6f9c8e5a
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
234cb58214
Update nanojit-import-rev stamp.
2010-10-06 17:28:51 -07:00
Nicholas Nethercote
e729dced8b
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
170aae6161
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
9eceb8db2c
Fix compiler warning. No bug, r=jwalden via IRC.
2010-10-06 16:16:11 -07:00
Nicholas Nethercote
d0384d584f
Bug 593931 - inline js_GetPropertyHelper() and friends more aggressively. r=cdleary.
2010-10-06 16:14:01 -07:00
Chris Leary
e46a11c243
Fix trace_tests.py when showing output. (r=jorendorff)
2010-10-06 15:15:54 -07:00
Chris Leary
b9e01bbcf2
Bug 596775: re-enable YARR-JIT on ARM. (r=vladimir)
2010-10-05 18:20:06 -07:00
Jason Orendorff
1344bee2a5
Back out changeset 89006937466d (crashing tests on tinderbox).
2010-10-06 15:51:14 -05:00
Jason Orendorff
447d62bbdc
Bug 592644 - Indirect eval should be allowed under ES5. r=brendan.
2010-10-06 15:11:30 -05:00
Tom Schuster
60375ecd5e
Bug 601689 - Optimize GetArrayElement for arguments objects (r=lw)
...
--HG--
extra : rebase_source : 6360a47b95660da477a1f312ab8654a23e4019c1
2010-10-06 12:04:31 -07:00
Bill McCloskey
095ae8501a
Fix trap instruction in trace-test, bump XDR version (r=dvander)
2010-10-06 11:58:33 -07:00
David Anderson
6b12494bf3
Fix assert in InvokeConstructor (bug 602088, r=luke).
2010-10-06 11:06:18 -07:00
Bill McCloskey
46d6cc0182
Bug 601986 - Make blockchain determination faster for with, flat closures (r=igor)
2010-10-06 10:41:36 -07:00
Bill McCloskey
bf34ff421b
Bug 601398 - Use new instructions, rather than source notes, to obtain block chain (r=igor)
2010-10-06 10:40:07 -07:00
Luke Wagner
5fcaf2d864
Bug 601733 - respect deleted arguments-object properties in JSOP_GETELEM (r=dvander,dmandelin)
2010-10-06 10:09:40 -07:00
Sean Stangl
5b59133393
Define isOOLPath if JaegerSpew is enabled.
2010-10-06 00:46:21 -04:00
Boris Zbarsky
511c981da1
Bug 601968. Trace call(null). r=gal, a=sayrer
2010-10-06 00:00:28 -04:00
David Mandelin
693026324a
Bug 601256: optimize access to globals in global eval using GNAME ops, r=dvander
...
--HG--
extra : rebase_source : 7c4bd486cc9dff1c65eda717fe34dd0fc36fe171
2010-10-05 11:02:05 -07:00
David Anderson
547d789b0a
Don't build debug structures if not in debug mode (bug 596804, r=dmandelin).
2010-10-05 17:15:06 -07:00
David Anderson
b86507bf21
Fix crash in AtSafePoint (bug 589398, r=dmandelin).
2010-10-05 16:41:06 -07:00
David Mandelin
7c039a3ea2
Bug 595963: notify iterators about property deletion in array_splice, r=gal
...
--HG--
extra : rebase_source : de2700e0d3d7bce1453a73155c569d28cfbd4482
2010-10-01 11:12:01 -07:00
Nicholas Nethercote
7893e3acd9
Bug 601771 - TM: possibly uninitialized variable in jsclone.cpp. r=jorendorff via IRC.
2010-10-05 14:50:15 -07:00
Luke Wagner
676ddcba58
Bug 598682, part 2 - Minor cleanups to jsinterp.h and jsinterpinlines.h (r=bhackett)
...
--HG--
extra : rebase_source : bd664d9cd752992faa280d8d3a848058883f57e4
2010-10-05 14:41:58 -07:00
Jim Blandy
1b445aec59
Bug 598682, part 1 - Minor cleanups to jsinterp.h and jsinterpinlines.h (r=lw)
...
--HG--
extra : rebase_source : ce5adce0b4f5155afd958f2a083085baf4dbe643
2010-10-05 14:41:55 -07:00
Luke Wagner
a2316e8005
Bug 601505 - Error instances don't have [[Construct]] (r=brendan)
...
--HG--
extra : rebase_source : 12c4c0432ca571f57993cabe3309810cfa3866d1
2010-10-04 16:22:26 -07:00
Sean Stangl
1e1a684431
Eliminate syncData() constant hack. b=601657, r=dvander.
2010-10-05 17:08:01 -04:00
Robert Sayre
a1e5633ddf
Merge mozilla-central to tracemonkey.
2010-10-05 13:30:17 -07:00
Bill McCloskey
4c44a4adbf
Bug 601393 - Ensure that js_EmitTree decrements emitLevel (r=brendan)
2010-10-05 10:49:27 -07:00
Bill McCloskey
522426556d
Bug 601537 - Add a reminder about JSXDR_BYTECODE_VERSION (r=brendan)
2010-10-05 10:47:11 -07:00
David Anderson
a7311bceca
Don't trace apply with overridden argsobj length (bug 541191, r=dmandelin).
2010-10-05 10:25:41 -07:00
Gregor Wagner
aa190b930f
Bug 600310 - TM: don't perform GC outside of stack quota r=igor
2010-10-05 10:09:50 -07:00
Brendan Eich
4f7cb70237
Long day...
2010-10-04 21:19:30 -07:00
David Anderson
55fabd9f6e
Bustage fix for bug 589398 new opcode fallout.
2010-10-04 20:24:43 -07:00
Makoto Kato
a40c13317a
Bug 601355 - follow up bug 587707. Crashes consistently at start-up except if JM is disabled or in safe mode. r=bhackett1024, r=dvander
2010-10-05 12:14:44 +09:00
Nicholas Nethercote
22af90493d
Bug 600781 - TM: untangle TraceRecorder::getCharAt. r=dvander.
2010-10-04 19:57:15 -07:00
Brendan Eich
c50ce4789f
Burned by JSOPTION_ANONFUNFIX again.
2010-10-04 19:23:39 -07:00
David Anderson
9d89e2e6b3
ICs for scripted new (bug 589398, r=luke,dmandelin).
...
--HG--
extra : rebase_source : d7311ce916e8d6c876d1851090806bc7d073bd63
2010-10-04 14:13:33 -07:00
Brendan Eich
3a6fcbd2d9
More old test hacking in wake of 445319.
2010-10-04 18:41:32 -07:00
Brendan Eich
2eb9db76da
Forgot the test for 600137.
2010-10-04 18:30:04 -07:00
Brendan Eich
c44759f91b
Adjust js1_5/extensions/regress-369696-02.js in wake of 445319 fix.
2010-10-04 17:53:28 -07:00
Brendan Eich
c5ac73b2c6
Test for bug 600137 (fixed by patch for 445319).
2010-10-04 16:54:22 -07:00
Brendan Eich
bc6cad425c
Per ECMA-262, no .prototype for built-in functions and Function.prototype (445319, r=Waldo).
2010-10-03 22:46:39 -07:00
Nicholas Nethercote
a4da4b0354
merge
2010-10-04 16:37:37 -07:00
Nicholas Nethercote
a620297657
Update nanojit-import-rev stamp.
2010-10-04 16:16:10 -07:00
Nicholas Nethercote
ca0f8e1f84
Fix non-Linux compile bustage for bug 601539. r=me.
...
--HG--
extra : convert_revision : 12776aa248b916be646dd7b9c760be1b3fa7ba8a
2010-10-05 09:52:40 +11:00
Nicholas Nethercote
3b38fa4066
Bug 601539 - nanojit: fix bogus generation of suffix names in LIR dumps. r=rreitmai.
...
--HG--
extra : convert_revision : 2c66185d4d358f589fc1fe44f48e4c7eafe1a0c1
2010-10-04 15:40:32 -07:00
David Anderson
1f9978e7e9
Backed out changeset de5d1b528b9a
2010-10-04 15:12:00 -07:00
David Anderson
8ab67f850c
ICs for scripted new (bug 589398, r=luke,dmandelin).
2010-10-04 14:13:33 -07:00
Sean Stangl
7673da965e
Fix pinReg() around copyDataIntoReg() in jsop_bitop(). b=600419, r=dvander.
2010-10-04 13:30:46 -04:00
Alan Pierce
a62950ac8b
Check for OOM in js_ConcatStrings(). b=596988, r=gal,sstangl; rs=brendan.
2010-10-03 23:20:12 -04:00
Brendan Eich
4872e2463e
Need to JS_CHECK_RECURSION in GetTrap as well as Trap (aslo rename GetTrap wrappers to start with Get; 589103, r=gal).
2010-10-03 14:59:26 -07:00
Brian Hackett
621b28b9de
Lazify fp->scopeChain, JM call path cleanup. bug 593882, r=lw,dvander.
2010-10-03 08:21:38 -07:00
Jeff Walden
1d67cb8429
Bug 577757 - array[-1073741824] != array["-1073741824"]. r=igor
2010-09-30 21:03:47 -07:00
Jeff Walden
5742cdd087
Bug 539766 - Object.defineProperty sets arguments.length without setting the length-overridden bit. r=brendan
2010-09-30 17:50:40 -07:00
Jason Orendorff
817c40ae52
Bug 600193 - trace-test/tests/jaeger/bug588363-1.js asserts with CompartmentChecker enabled. r=gal.
...
This makes eval(s) an indirect eval if the eval-function being called is in a
different compartment from the caller's scope chain.
This caused the eval in trace-test/tests/jaeger/bug588363-2.js to become
indirect, which caused the test to fail with a ReferenceError. So I changed the
test to delete the sandbox's eval, revealing the global eval underneath.
2010-09-29 10:00:52 -07:00
Jason Orendorff
57857fccb8
Bug 600287 - Indirect eval should use callee's global, not the this-argument. r=brendan.
2010-10-02 10:08:59 -05:00
Jason Orendorff
335710920d
Rename JS_{Read,Write}Pair to JS_{Read,Write}Uint32Pair as suggested by Brendan. Followup to bug 595297.
2010-10-02 09:41:18 -05:00
Brian Hackett
55b397bc07
Header changes for sixgill, annotations. bug 601129, r=jorendorff
2010-10-01 21:00:55 -07:00
Luke Wagner
028602bb7a
Bug 587914 - js::Valueify in static data constructors causes runtime initialization (r=igor)
...
--HG--
extra : rebase_source : 09f2d8b620985eff96468ef7875cab8751a93d18
2010-10-01 17:53:08 -07:00
Jason Orendorff
faf46059c8
Finally get rid of /* Added by JSIFY */ comments. r=Waldo.
2010-10-01 18:46:54 -05:00
David Mandelin
48265db9ad
Backout merge.
2010-10-01 16:02:39 -07:00
David Mandelin
6b5de12b76
Backed out changeset 97d2c33271e8 due to crashtest failures
2010-10-01 16:01:49 -07:00
David Mandelin
52851fbf4e
Bug 600639 followup: unbreak non-threadsafe shell builds, r=cjones
2010-10-01 15:34:32 -07:00
Chris Jones
332fe2d51e
Follow-up to bug 579479: Fix --disable-tracejit --enable-methodjit compiles. irc-r=sstangl a=bustage
2010-10-01 16:09:21 -05:00
Chris Jones
52fc02d2d1
Bug 600304: Add a PrintJSStack() friend of DumpJSStack() that returns a newly-allocated string instead of printing to stdout. r=jorendorff a=sayrer
2010-10-01 16:09:21 -05:00
Chris Jones
a48b42642c
Bug 600639, part 3: Add a --write-failure-output option to trace-test to additionally log output from failed tests. r=dmandelin a=sayrer
2010-10-01 16:09:21 -05:00
Chris Jones
0f2650f7d0
Bug 600639, part 2: Make trace_test.py importable and add support for avoiding stdio with js. r=dmandelin
...
--HG--
rename : js/src/trace-test/trace-test.py => js/src/trace-test/trace_test.py
2010-10-01 16:09:21 -05:00
Chris Jones
78322bd9eb
Bug 600639, part 1: Allow overriding gOutFile and gErrFile in js shell, and add a -g option to sleep on startup so that a debugger can be attached. r=dmandelin
2010-10-01 16:09:21 -05:00
Jim Blandy
cbd39a3782
Bug 600943: Correctly compute |this| in Date.prototype.toJSON. r=waldo
2010-10-01 13:05:03 -07:00
David Mandelin
965a815ffc
Bug 601197: fix typo in js_GetBlockChain, r=wmccloskey
2010-10-01 12:29:39 -07:00
David Mandelin
99d33bc190
Bug 595963: notify iterators about property deletion in array_splice, r=gal
2010-10-01 11:12:01 -07:00
Gregor Wagner
18200db96c
Bug 594455 Add assertions for defaultCompartments. r=jorendorff
2010-10-01 11:10:30 -07:00
Jason Orendorff
8572cdcca1
Fix stray /* inside a comment to silence GCC warning. no_r=me.
...
--HG--
extra : rebase_source : 980456c167a368e2c25a6d4312cbad3cff87fbbd
2010-10-01 12:50:52 -05:00
David Anderson
28a60376f5
Clean up exec pool and LinkBuffer use (bug 601041, r=dmandelin).
2010-10-01 09:47:44 -07:00
Jason Orendorff
22ba09591c
Bug 601040 - Revise StructuredClone API. r=gal.
2010-10-01 09:57:22 -05:00
Makoto Kato
285566d813
Bug 587707 - Fix bustage on Win64 build. r=dvander
2010-10-01 18:17:39 +09:00
Makoto Kato
19ad916034
Fix CPUID on Win64. b=601016, r=sstangl.
2010-10-01 02:41:10 -04:00
Alex Miller
c0000b4ff2
Add detection for all levels of SSE support; fix x64 cpuid. b=601016, r=sstangl.
2010-09-30 21:45:22 -04:00
Jason Orendorff
8847dd3f68
Bug 595297 - Portable serialize/deserialize implementation of the HTML5 structured cloning algorithm (jsclone.cpp). r=gal.
2010-09-30 19:47:10 -05:00
Andreas Gal
80a1feb0df
Bug 600402 - don't copy strings that are in the same compartment already r=mrbkap
2010-09-30 16:50:06 -07:00
Jeff Walden
261ff2be5f
Bug 560216 - Referring to an accessor property with undefined [[Get]] and [[Set]] fields using an unqualified name should not assert. r=dvander
2010-09-29 16:05:44 -07:00
David Anderson
30b30c9788
Fix ARM and --disable-polyic build (bug 599035 bustage, r+a=red).
2010-09-30 13:27:32 -07:00
Igor Bukanov
9c10d09db3
bug 600687 - proper accounting for colors during the marking phase. r=anygregor
2010-09-30 01:31:20 +02:00
Peter Van der Beken
aea5afc9a8
Fix dom/tests/mochitest/general/file_frameElementWrapping.html to deal with proxies. r=mrbkap
2010-09-28 17:02:43 -07:00
Blake Kaplan
e8317e009f
bug 580128 - Outerize in JS instead of in the rewrap hook so the identity in the wrapper map stays constant. r=gal
2010-09-28 17:02:43 -07:00
Blake Kaplan
7fa4640e8e
bug 580128 - Fix bugs dealing with transplanting when navigating. r=gal
2010-09-28 17:02:43 -07:00
Igor Bukanov
89bc0fd869
bug 600593 - atoms should live only in the default compartment. r=anygregor
2010-09-28 17:34:32 +02:00
Brendan Eich
114b2420e1
fun->u.i.names is incorrect when a local function shadows an argument (600067, r=jorendorff).
2010-09-29 16:15:43 -07:00