Commit Graph

704 Commits

Author SHA1 Message Date
Jason Orendorff
0cc8abb074 Merge from mozilla-central to jsdbg2. 2011-08-01 17:46:33 -05:00
Brian Hackett
6c3284f1e8 Merge MC -> JM.
--HG--
rename : dom/src/threads/Makefile.in => dom/workers/Makefile.in
rename : dom/src/threads/test/Makefile.in => dom/workers/test/Makefile.in
rename : dom/src/threads/test/WorkerTest.jsm => dom/workers/test/WorkerTest.jsm
rename : dom/src/threads/test/atob_worker.js => dom/workers/test/atob_worker.js
rename : dom/src/threads/test/chromeWorker_subworker.js => dom/workers/test/chromeWorker_subworker.js
rename : dom/src/threads/test/chromeWorker_worker.js => dom/workers/test/chromeWorker_worker.js
rename : dom/src/threads/test/closeOnGC_worker.js => dom/workers/test/closeOnGC_worker.js
rename : dom/src/threads/test/importScripts_worker.js => dom/workers/test/importScripts_worker.js
rename : dom/src/threads/test/importScripts_worker_imported1.js => dom/workers/test/importScripts_worker_imported1.js
rename : dom/src/threads/test/importScripts_worker_imported2.js => dom/workers/test/importScripts_worker_imported2.js
rename : dom/src/threads/test/json_worker.js => dom/workers/test/json_worker.js
rename : dom/src/threads/test/recursion_worker.js => dom/workers/test/recursion_worker.js
rename : dom/src/threads/test/relativeLoad_sub_worker.js => dom/workers/test/relativeLoad_sub_worker.js
rename : dom/src/threads/test/relativeLoad_worker.js => dom/workers/test/relativeLoad_worker.js
rename : dom/src/threads/test/simpleThread_worker.js => dom/workers/test/simpleThread_worker.js
rename : dom/src/threads/test/terminate_worker.js => dom/workers/test/terminate_worker.js
rename : dom/src/threads/test/test_404.html => dom/workers/test/test_404.html
rename : dom/src/threads/test/test_chromeWorker.html => dom/workers/test/test_chromeWorker.html
rename : dom/src/threads/test/test_chromeWorker.xul => dom/workers/test/test_chromeWorker.xul
rename : dom/src/threads/test/test_chromeWorkerJSM.xul => dom/workers/test/test_chromeWorkerJSM.xul
rename : dom/src/threads/test/test_close.html => dom/workers/test/test_close.html
rename : dom/src/threads/test/test_closeOnGC.html => dom/workers/test/test_closeOnGC.html
rename : dom/src/threads/test/test_errorPropagation.html => dom/workers/test/test_errorPropagation.html
rename : dom/src/threads/test/test_fibonacci.html => dom/workers/test/test_fibonacci.html
rename : dom/src/threads/test/test_importScripts.html => dom/workers/test/test_importScripts.html
rename : dom/src/threads/test/test_json.html => dom/workers/test/test_json.html
rename : dom/src/threads/test/test_longThread.html => dom/workers/test/test_longThread.html
rename : dom/src/threads/test/test_navigator.html => dom/workers/test/test_navigator.html
rename : dom/src/threads/test/test_recursion.html => dom/workers/test/test_recursion.html
rename : dom/src/threads/test/test_relativeLoad.html => dom/workers/test/test_relativeLoad.html
rename : dom/src/threads/test/test_simpleThread.html => dom/workers/test/test_simpleThread.html
rename : dom/src/threads/test/test_suspend.html => dom/workers/test/test_suspend.html
rename : dom/src/threads/test/test_terminate.html => dom/workers/test/test_terminate.html
rename : dom/src/threads/test/test_threadErrors.html => dom/workers/test/test_threadErrors.html
rename : dom/src/threads/test/test_threadTimeouts.html => dom/workers/test/test_threadTimeouts.html
rename : dom/src/threads/test/test_throwingOnerror.html => dom/workers/test/test_throwingOnerror.html
rename : dom/src/threads/test/test_xhr.html => dom/workers/test/test_xhr.html
rename : dom/src/threads/test/test_xhrAbort.html => dom/workers/test/test_xhrAbort.html
rename : dom/src/threads/test/threadTimeouts_worker.js => dom/workers/test/threadTimeouts_worker.js
rename : dom/src/threads/test/xhr_worker.js => dom/workers/test/xhr_worker.js
2011-07-28 18:10:31 -07:00
Marco Bonardo
5f0e2fc98d Backout changeset e6d269bc23b9 (bug 674251) to investigate Tdhtml regression on Mac. 2011-08-18 10:18:08 +02:00
Brian Hackett
872ca11752 [INFER] Allow the same shape to be shared by objects with different types, bug 674621. 2011-07-28 14:17:42 -07:00
Jason Orendorff
c4f527861a Merge from mozilla-central to jsdbg2. 2011-07-28 13:45:51 -05:00
Brian Hackett
beb3e0531e [INFER] Reduce inference-related script overhead, bug 674609. 2011-07-28 09:16:53 -07:00
Jason Orendorff
9faab81d05 Bug 695097 - Split up frontend/Parser.{h,cpp}. r=luke.
--HG--
rename : js/src/frontend/Parser.cpp => js/src/frontend/BytecodeCompiler.cpp
rename : js/src/frontend/Parser.h => js/src/frontend/BytecodeCompiler.h
rename : js/src/frontend/Parser.cpp => js/src/frontend/FoldConstants.cpp
rename : js/src/frontend/Parser.cpp => js/src/frontend/ParseNode.cpp
rename : js/src/frontend/Parser.h => js/src/frontend/ParseNode.h
2011-10-17 16:54:30 -05:00
Jason Orendorff
1102691b89 Bug 695094 - Move js{scan,parse,emit}.{h,cpp} into js/src/frontend/. r=luke.
--HG--
rename : js/src/jsemit.cpp => js/src/frontend/CodeGenerator.cpp
rename : js/src/jsemit.h => js/src/frontend/CodeGenerator.h
rename : js/src/jsparse.cpp => js/src/frontend/Parser.cpp
rename : js/src/jsparse.h => js/src/frontend/Parser.h
rename : js/src/jsscan.cpp => js/src/frontend/TokenStream.cpp
rename : js/src/jsscan.h => js/src/frontend/TokenStream.h
2011-10-17 16:54:28 -05:00
Jason Orendorff
75a71f51e8 Merge from mozilla-central to jsdbg2 branch. 2011-07-27 18:23:16 -05:00
Jason Orendorff
722572a323 Rename jsdbg.{h,cpp} to vm/Debugger.{h,cpp}. This addresses a review comment from brendan in bug 627829 comment 42.
--HG--
rename : js/src/jsdbg.cpp => js/src/vm/Debugger.cpp
rename : js/src/jsdbg.h => js/src/vm/Debugger.h
2011-07-27 18:03:34 -05:00
Brian Hackett
dda30fa4b2 Merge MC -> JM 2011-07-21 18:53:37 -07:00
Brian Hackett
6cedc75bac [INFER] Make TypeObject a GC thing, remove lazily created type objects on GC, bug 669969. 2011-07-21 07:28:01 -07:00
Jason Orendorff
f8465f2924 Bug 637985 - Reimplement watchpoints using a JSObject bit. r=jimb. 2011-07-27 17:44:43 -05:00
Bill McCloskey
e41d5f10b1 Bug 671113 - Poison JSScripts when freed to get more crash data (r=dmandelin) 2011-07-19 14:21:58 -07:00
Jason Orendorff
671bbf0bb1 Merge mozilla-central to jsdbg2. 2011-07-18 10:58:56 -05:00
Bill McCloskey
162941e24a Bug 673625 - Add more assertions to check JSScript validity (r=dmandelin) 2011-07-25 18:05:05 -07:00
Jeff Walden
468332b8f0 Bug 607371 - Throw an exception when an excessively large arguments array is passed to Function.prototype.apply, rather than silently passing only the maximum number of supported elements. Silently treating the array as smaller than it actually is is prone to silent errors; throwing an exception is immediate and obvious. r=luke
--HG--
extra : rebase_source : 3ae04ac924cd28199ba0e48d90dba2f7c5a2c563
2011-07-25 20:33:02 -07:00
Brian Hackett
89a7a7eac5 Merge MC -> JM 2011-07-15 14:40:15 -07:00
Brian Hackett
c091101935 [INFER] Lazily create type objects for singleton JS objects, bug 670185. 2011-07-15 10:14:07 -07:00
Bill McCloskey
095fa57be2 Bug 673451 - Add getters and setters to make JS write barriers easier to implement (r=cdleary) 2011-07-13 15:43:33 -07:00
Jason Orendorff
f5ce61ea3c Merge from mozilla-central to jsdbg2. 2011-07-12 10:47:31 -05:00
Jason Orendorff
4757c6de25 Implement the newScript hook. Also, change the shell builtin clone() function to support cloning a function into a different compartment (for use by one of the tests). 2011-07-07 00:34:59 -05:00
Brian Hackett
dee99963bb Merge TM -> JM 2011-07-01 16:24:32 -07:00
Ehsan Akhgari
8eaf1685d8 Backout bug 670205 and bug 673451 because of build bustage
--HG--
extra : rebase_source : 1125480c0f47d0388876c09648d64bdbd62d1206
2011-07-26 14:41:43 -04:00
Bill McCloskey
eda8607b71 Bug 673451 - Add getters and setters to make JS write barriers easier to implement (r=cdleary) 2011-07-13 15:43:33 -07:00
Brian Hackett
9f8045748c [INFER] Cleanup type info tracking object classes, track which type objects are definitely typed arrays, bug 663485. 2011-06-15 11:26:12 -07:00
David Anderson
df566990d3 Remove LeaveTrace and related structures (bug 698201 part 5, r=luke). 2011-11-22 17:41:43 -05:00
David Anderson
06132f9d13 Remove JS_TRACER define use (bug 698201 part 4, r=bhackett). 2011-11-22 17:41:42 -05:00
David Anderson
94f9f3e31a Remove traceable natives (bug 698201 part 3, r=luke). 2011-11-22 17:41:42 -05:00
David Anderson
80b8c2deb8 Remove jstracer and nanojit (bug 698201 part 1, r=dmandelin). 2011-11-22 17:41:41 -05:00
Brian Hackett
fa41f89faf [INFER] Read barriers for call results, bug 663381. 2011-06-10 19:03:57 -07:00
Brian Hackett
b716dfa3de [INFER] Make sure to get the topmost scripted frame's pc in ContextStack::currentScript, bug 662562. 2011-06-07 17:44:07 -07:00
Brian Hackett
28d4850580 [INFER] Watch for singleton function objects in js_AllocFlatClosure, bug 662338. 2011-06-07 17:21:14 -07:00
Brian Hackett
1186d01428 Merge TM -> JM 2011-06-06 09:48:04 -07:00
Brian Hackett
b0ae81df4a [INFER] Apply arguments and script review comments, bug 657412. 2011-06-06 08:32:41 -07:00
Brian Hackett
de9c3c81f6 [INFER] Apply stack review comments, bug 657412. 2011-06-05 22:39:45 -07:00
Bill McCloskey
a3152655d2 Bug 674441 - Fix bogus script owner assertion (r=dmandelin) 2011-08-02 10:18:30 -07:00
Bill McCloskey
444df49e50 Bug 675802 - Instrument DestroyScript for more crash analysis (r=dmandelin) 2011-08-02 10:13:03 -07:00
Brian Hackett
9ee5994b69 [INFER] Apply object review changes, bug 657412. 2011-06-03 20:48:16 -07:00
Brian Hackett
5c5438cc38 Merge TM -> JM 2011-06-02 12:59:28 -07:00
Brian Hackett
82abccdd14 [INFER] Move inference methods out of JSContext, bug 657412. 2011-06-02 10:40:27 -07:00
Alon Zakai
2f4274045c Bug 644241, part 1 - Remove script stack quota. r=igor 2011-06-03 17:54:26 -07:00
Brian Hackett
621ab68f21 [INFER] Optimize arguments accesses, bug 658638. 2011-05-26 12:28:19 -07:00
Jeff Walden
0e6a014f34 Bug 670779 - Add LinkConstructorAndPrototype to encapsulate adding ctor.prototype and ctor.prototype.constructor. r=bhackett
--HG--
extra : rebase_source : 1216c2c096b866c94205c3f53fe0dd70225523c4
2011-06-15 10:15:37 -07:00
Jason Orendorff
e4e749adc2 Bug 620316 - Remove WrapEscapingClosure. r=brendan. 2011-07-13 07:15:59 -05:00
Brian Hackett
7963fd4feb [INFER] Always monitor argument types at FUNCALL/FUNAPPLY, always check arguments at script entry in DEBUG, bug 659439. 2011-05-24 14:35:19 -07:00
Brian Hackett
1e358b51f6 Merge TM -> JM 2011-05-22 08:59:06 -07:00
Luke Wagner
c9e1bf13c0 Bug 667915 - Don't let content JS consume all the stack and cause chrome JS to OOM (r=waldo,mrbkap) 2011-06-30 09:26:56 -07:00
Luke Wagner
da4f4dfcc4 Bug 668479 - Fixup old assert concerning arguments object (r=waldo)
--HG--
extra : rebase_source : bd30d76b40731cc1d09cd9ba5ee1a36812a3bbf9
2011-07-01 14:08:03 -07:00
Bill McCloskey
6a8823ab66 Bug 658055 - Always use getter to access fun->script() (r=dmandelin) 2011-05-20 11:27:27 -07:00
Bill McCloskey
b902b98248 Bug 650978 - Add gczeal setting to GC on every allocation (r=gwagner) 2011-06-01 17:48:52 -07:00
Brian Hackett
14097cb845 [INFER] Remove cx->newTypeObject, bug 657412. 2011-05-19 09:15:12 -07:00
Brian Hackett
4cb0c5c5ef [INFER] Cleanup for review, bug 657412. 2011-05-16 22:59:40 -07:00
Brian Hackett
98763bc2cb [INFER] Move addTypeProperty barriers under obj->setProperty, obj->defineProperty, bug 619693. 2011-05-16 16:15:37 -07:00
Chris Leary
14bc4cf54d Bug 684039: rewrite JS LIFO allocator, avoids thrashing. (r=luke)
--HG--
rename : js/src/jsarena.h => js/src/ds/LifoAlloc.h
extra : rebase_source : 098bf9561114f82363ebd0862213acf952709257
2011-09-22 13:22:30 -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
Luke Wagner
7ff16e4820 Bug 683361, part 1 - Strip JS prefix from proxy names since they are already in namespace js (r=gal)
--HG--
extra : rebase_source : 5eded8e02c36991322c94fca1092970910c2ceea
2011-09-08 20:29:15 -07:00
Brian Hackett
afdce01248 Merge TM -> JM 2011-05-15 11:32:09 -07:00
Brian Hackett
2d27a22974 [INFER] Allow read barriers at property accesses and call sites, bug 656920. 2011-05-14 05:45:13 -07:00
Chris Leary
4d1fba5db8 Merge mozilla-central and tracemonkey. 2011-05-13 15:06:53 -07:00
Brian Hackett
55015fcf39 Merge TM -> JM 2011-05-11 20:37:23 -07:00
Brian Hackett
82629392f1 [INFER] Inlined natives for Array.{push,pop}, object flag cleanup, bug 653962. 2011-05-10 23:33:30 -07:00
Jeff Walden
9fd558db7e Bug 686900 - Move js_InitFunctionClass into GlobalObject.cpp, in preparation for unifying js_InitObjectClass and js_InitFunctionClass. r=jorendorff
--HG--
extra : rebase_source : 68eb8108b65b65e3dbb7a5b4a90426717d21d573
2011-06-15 11:58:45 -07:00
Igor Bukanov
d7a71da4ae bug 674251 - making JSScript a GC-thing. r=jorendorff
--HG--
extra : rebase_source : 8cec41c8afb99951e469eb3a97c0d48cb5da0b4f
2011-08-17 10:07:04 +02:00
Brian Hackett
c930c3e982 Merge TM -> JM
--HG--
rename : js/src/GlobalObject.cpp => js/src/vm/GlobalObject.cpp
2011-05-09 09:49:48 -07:00
Brian Hackett
417f1e64b9 [INFER] Remove on stack recompilation, allow removed on stack JIT frames to rejoin into the interpreter, bug 650163. 2011-05-09 07:12:47 -07:00
Brian Hackett
838352f9db Merge TM -> JM 2011-04-28 13:02:47 -07:00
Jeff Walden
5d29251946 Bug 652746 - Implement js::ArgumentsObject, js::NormalArgumentsObject, and js::StrictArgumentsObject. r=njn
--HG--
extra : rebase_source : 84258ffa658ba09928ab9b86f8017fa6683f3146
2011-04-25 22:40:00 -04:00
Jeff Walden
a0caea8ac7 Bug 655921 - Check for Function being forbidden before creating the function private which would ordinarily be returned. Also create that function private with an explicitly specified parent, that being the Function function's global object. r=mrbkap
--HG--
extra : rebase_source : d0638bf75648e5dc0f9bb0c1fcf61559d1422771
2011-05-10 14:56:49 -07:00
Jeff Walden
90cdb85452 Bug 656365 - Creating an arguments object shouldn't require a parent, only a callee. r=luke
--HG--
extra : rebase_source : 0f4b0bc449bd7e0a2bd4e929c10e775d79e788ea
2011-05-11 14:04:25 -07:00
Brian Hackett
fe5aeaab19 Merge TM -> JM 2011-04-20 11:37:46 -07:00
Chris Jones
6fd4cbff2d Bug 642381, part 2: Rename LazilyConstructed to Maybe. r=luke 2011-04-28 17:48:51 -05:00
Brian Hackett
68b35100e1 Merge TM -> JM 2011-04-19 08:23:41 -07:00
Bill McCloskey
3c0cd83aa3 Bug 616666 - Use explicit stack for GC marking (r=gal) 2011-04-15 16:56:08 -07:00
Brian Hackett
fc65b95530 Merge TM -> JM 2011-04-13 06:45:06 -07:00
Brian Hackett
83e8f1e4ab Merge TM -> JM 2011-04-12 07:04:45 -07:00
Brian Hackett
3756228559 [INFER] Use both inline and dynamic slots for objects other than dense arrays, bug 648321. 2011-04-08 19:51:40 -07:00
Brian Hackett
012e3b1119 Merge TM -> JM 2011-04-08 19:27:14 -07:00
Dave Herman
829e7dc189 added missing JS_HAS_GENERATORS #if/#endif (r=gal) 2011-04-08 13:46:19 -07:00
Dave Herman
98fe02ea81 Function.isGenerator (bug 648355, r=brendan) 2011-04-08 13:31:14 -07:00
Brian Hackett
4226ea1e6e [INFER] Array bounds check hoisting, cleanup, bug 618690. 2011-04-05 18:12:03 -07:00
Brian Hackett
8b7888dd66 Merge TM -> JM 2011-04-01 19:57:28 -07:00
Paul Biggar
d4f71dfd35 Bug 684336: Extract CallObject into its own object (r=luke) 2011-09-08 10:53:43 -07:00
David Anderson
61cc68f032 Fix clang warnings (bug 647280, r=luke). 2011-04-14 13:45:06 -07:00
Brian Hackett
dc5232e83a [INFER] Inline callees at polymorphic call sites, bug 639099. 2011-03-27 18:25:05 -07:00
Brian Hackett
02df7e9a1d [INFER] Wait for code to get hot before inlining calls, bug 639099. 2011-03-27 07:48:03 -07:00
Brian Hackett
7074cd94d6 [INFER] Don't clone functions with singleton types. 2011-03-26 20:18:58 -07:00
Brian Hackett
74bba0be53 [INFER] Inline scripted calls, bug 639099. 2011-03-26 19:07:13 -07:00
Paul Biggar
43b850291d Bug 643548: Remove mozalloc_undef_macro_wrappers hack from JS engine. (r=luke,rs=brendan)
mozalloc_undef_macro_wrappers are brittle and have side-effects that are hard
to debug and fix. The alternative is the just stick an underscore on the end of
malloc, free, etc, which is a comparatively small burden.
2011-03-31 01:14:12 -07:00
Jeff Walden
1bfc2c45f1 Bug 667646 - fun.caller should be null, not undefined, when fun is being called by global code. r=evilpie 2011-06-27 15:57:50 -07:00
Jeff Walden
033bbeebcd Bug 667538 - Crash accessing Function.caller or Function.arguments when no script is running. r=evilpie 2011-06-27 13:36:11 -07:00
David Mandelin
4c436c89cd Bug 666587: revert accidentally changed control flow in fun_getProperty, r=jwalden 2011-06-24 14:26:00 -07:00
Tom Schuster
1681a326d5 Bug 640593 - Remove Function.arity and other cleanup around function properties r=jorendorff
--HG--
rename : js/src/tests/ecma_5/strict/function-name-arity.js => js/src/tests/ecma_5/strict/function-name.js
2011-06-18 00:55:55 +02:00
Jeff Walden
cb616455f0 Bug 658069 - Rename GlobalObject::isEvalAllowed to indicate its actual meaning better. r=mrbkap 2011-06-10 11:44:16 -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
Luke Wagner
78dc696e0e Bug 656462, part 1 - Remove StackSegment::initialVarObj (r=waldo)
--HG--
extra : rebase_source : 54ae58bec51c4c7fcc58db2148167be828dda8a3
2011-05-24 15:05:30 -07:00
Paul Biggar
9caae16818 Fix warnings-as-errors fallout from TM merge (r=redness) 2011-03-23 13:43:16 -07:00
Brian Hackett
d737bb3ddb Merge TM -> JM 2011-03-22 18:07:31 -07:00
Jan de Mooij
c633bccba3 [INFER] Inline some native functions, bug 621961. r=bhackett 2011-03-21 22:55:27 -07:00
Luke Wagner
64207228c7 Bug 602994 - Clean up eval, remove unneeded security checks, assert equivalence of principal lookup (r=waldo,mrbkap) 2011-04-08 10:52:51 -07:00
Luke Wagner
774c050740 Bug 602994 - Preparatory syntactic cleanup (r=waldo) 2011-04-08 10:52:48 -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
Brian Hackett
79574bddbd [INFER] Always store script->fun, bug 643299. 2011-03-20 11:22:33 -07:00
Brian Hackett
d136cbd77a [INFER] Mark generic scripted functions as having unknown properties / return type, bug 643285. 2011-03-20 11:01:33 -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
Jeff Walden
a8a0234d77 Bug 641655 - Add a js::GlobalObject subtype of JSObject. r=njn 2011-04-18 16:50:47 -04:00
Jeff Walden
77e6fd7646 Backed out changeset c8ba5bd72b0c, we have too many test harnesses and I forgot to run one. r=tree-decorator 2011-04-21 16:29:54 -04:00
Jeff Walden
f7e9104cd4 Bug 641655 - Add a js::GlobalObject subtype of JSObject. r=njn 2011-04-18 16:50:47 -04:00
Bill McCloskey
4a9bde3182 Bug 648647 - Eliminate JSObjectMap (r=jorendorff) 2011-04-08 14:21:08 -07:00
Jason Orendorff
953a8d71f6 Bug 645160 - jsdIStackFrame is incorrectly truncated at indirect eval calls. r=mrbkap. 2011-05-11 11:11:40 -05:00
Brian Hackett
bbc5f75d52 [INFER] Use different shapes for functions with different scripts/types, share types better for cloned functions, bug 641525. 2011-03-17 09:42:56 -07:00
Brian Hackett
b124474b65 [INFER] Use unique shapes when cloning objects, bug 619433. 2011-03-16 18:33:46 -07:00
Brian Hackett
7469fa7a3a [INFER] Don't share shapes between objects with different types, bug 620599. 2011-03-16 10:02:19 -07:00
Luke Wagner
7c96945e3c Bug 613457 - clean up string interfaces (r=njn)
--HG--
extra : rebase_source : 3e77b67fa9fe2cc31312ad99951cf92258a98e64
2011-03-14 13:59:53 -07:00
Brian Hackett
25336e741f [INFER] Don't try to infer 'new' objects for non-compileAndGo scripts, bug 641231. 2011-03-13 22:35:51 -07:00
Brian Hackett
25bc5395d9 [INFER] Fix call IC monitoring for speculated Function.prototype.call, bug 621942. 2011-03-12 22:33:11 -08:00
Brian Hackett
300a849c3e [INFER] Use PICs on monitored SETNAME and SETPROP, bug 621937. 2011-03-11 16:29:38 -08:00
Brian Hackett
a3042809bc [INFER] Overhaul inference handling of new object computation, bug 619433. 2011-03-10 12:01:11 -08:00
Brian Hackett
d639ada378 Merge TM -> JM 2011-03-09 09:58:49 -08:00
Brian Hackett
d1ce88fb19 [INFER] Make new type objects whenever associating functions with scripts, bug 619433. 2011-03-07 08:25:27 -08:00
Jeff Walden
6c7e38b13f Bug 644015 - js_GetArgsProperty doesn't look up properties of strict mode arguments objects correctly. r=dmandelin 2011-03-23 16:34:19 -07:00
Tom Schuster
818368b37a Bug 639915 - Remove some code in fun_getProperty that has been dead for 12 years. r=jorendorff. 2011-03-08 16:02:05 -06:00
Andreas Gal
29c7365b34 Make empty shape initialization lazy (bug 639254, r=billm). 2011-03-07 18:42:04 -08:00
Brian Hackett
e5852f8376 [INFER] Don't use the default emptyTypeObject for functions decoded by XDR. 2011-03-04 12:59:48 -08:00
Brian Hackett
f868e29684 [INFER] Miscellaneous fixes to get inference passing jstests. 2011-03-04 07:50:32 -08:00
Brian Hackett
41091b1bb6 [INFER] Fix OOM handling in type inference, convert inference to runtime option, bug 637674. 2011-03-03 14:07:48 -08:00
Brian Hackett
e5020a35b3 [INFER] Condense type information during GC, bug 613221. 2011-03-01 13:10:05 -08:00
Brian Hackett
0a2cdd3c56 Merge TM -> JM 2011-02-25 18:21:43 +13: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
Andreas Gal
f5b9aeb7d0 Remove obsolete JSMarkOp API (bug 638291, r=jorendorff). 2011-03-05 14:50:11 -08:00
Chris Leary
30ecc46b76 Bug 614155: Lazily construct toSource cache. (r=lw)
--HG--
extra : rebase_source : cbf922c5ce45b7d656ef3fdbd4c872a4ff82aacc
2011-03-03 15:28:25 -08:00
Chris Leary
369b6ada3c Backed out changeset 62a979cc89a2 due to risk (bug 614155). 2011-02-16 13:33:08 -08:00
Chris Leary
76e3096daf Bug 614155: free memory for source cache on GC. (r=lw) 2011-02-16 10:17:49 -08:00
Brendan Eich
205799aa5d Warning fixes (630865, r=jorendorff). 2011-02-15 12:07:23 -08:00
Jason Orendorff
d064deac4d Bug 630865 - Resolve interpreted function prototypes more eagerly. r=dvander. 2011-02-14 14:04:07 -06:00
Jason Orendorff
afb7e896ef Bug 633020 - ArgSetter can return false without reporting an error on trace. r=dmandelin, a=sayrer. 2011-02-14 14:01:58 -06:00
Andreas Gal
dc805566a3 Fix bad assert in CallJSNativeConstructor (bug 633043, r=luke, a=NPOTB). 2011-02-09 18:17:34 -08:00
Jim Blandy
de75b9fa19 Bug 537873: Add a 'strict' argument to C++ property setter functions. r=brendan
This changes the type of setters to JSStrictPropertyOp, which is just like
JSPropertyOp except that it takes a 'JSBool strict' argument. Most of the
patch is introducing distinct types and using the appropriate stubs.

The following are left for subsequent patches:

x Similar fixes to the browser outside SpiderMonkey.

x Actually *using* the newly available strictness information. This patch
  should have no user-visible effect. I didn't want the interesting stuff
  to get lost in this noise.
2011-02-09 11:31:40 -08:00
Igor Bukanov
f4c246e790 bug 627016 - remove JSProperty out param from DefineNativeProperty. r=jorendorff
--HG--
extra : rebase_source : 673c7471fc963cb59d11ab667bd9e8523297617a
2011-01-21 14:10:16 +01:00
Michael Wu
b3db53f346 Bug 518230 - Use CESU-8 and refer to previous strings, r=igor 2011-03-21 11:06:34 -07:00
Michael Wu
0759a05636 Bug 632253 - Move magic check to JS_XDRScript, r=igor 2011-03-15 18:00:58 -07:00
Jim Blandy
df6f0b2ee9 Bug 554955: Give blocks and call objects unique shapes when they have parents that may be extended with new bindings. r=jorendorff
The comments for js::Bindings::extensibleParents explain why this is necessary.

AssertValidPropertyCacheHit should have been catching this bug, but for
reasons I don't understand, it is restricted from checking this case. This
patch extends it to assert when the bug is detected.

I've gathered the infallible parts of the initialization for Call objects
and cloned block objects into their own functions.
2011-03-15 12:18:36 -07:00
Jeff Walden
2db290c32a Bug 638312 - Add JS_IsBuiltinEvalFunction and JS_IsBuiltinFunctionConstructor APIs. r=gal 2011-03-02 19:57:44 -08:00
Brian Hackett
b5bb63ceba [INFER] Decouple type sets computed by inference from analysis information, store in new TypeScript struct, bug 621301. 2010-12-28 14:53:50 -05:00
Brian Hackett
0424213572 [INFER] Always give scripts empty analysis info, bug 619338. 2010-12-22 15:45:43 -08:00
Brian Hackett
cde265e645 [INFER] Fixes for jstests, bug 620599, part 2. 2010-12-21 18:26:09 -08:00
Brian Hackett
89bb1d08e8 Merge TM -> JM 2010-12-20 09:06:43 -08:00
Brian Hackett
d765093435 [INFER] Unwind getProto() changes outside of JS, fix test failures, bug 619271. 2010-12-19 12:21:15 -08:00
Brian Hackett
58a7afb3e0 [INFER] Fix build break, functions get correct proto in CloneFunctionObject, bug 619271. 2010-12-19 09:28:42 -08:00