Commit Graph

385 Commits

Author SHA1 Message Date
David Anderson
a3709f170d [JAEGER] Merge from fatval branch. 2010-06-24 11:18:01 -07:00
Luke Wagner
f536e360bf Take advantage of value representation in the tracer when mapping values to and from trace types 2010-06-22 09:43:21 -07:00
Luke Wagner
ab09c2952d Switch jsids back to pointer-sized and fix a bunch of broken assumptions 2010-06-16 18:21:34 -07:00
Jason Orendorff
4119c39520 Bug 568886 - Instead of severing the stack in SJOW, function.caller should refuse to return an object from a different compartment. r=gal, r=mrbkap.
--HG--
extra : rebase_source : 83ee4482377769b8f59c72171acc62edc481fe7a
2010-06-30 18:09:38 -05:00
David Anderson
b4060da2c5 Bug 567577 - new Math.sin is NaN, not an object, in interpreter only. r=Waldo. 2010-06-28 14:49:12 -05:00
Chris Leary
908f8ec587 Back out f8c6a272f2dc. It was working on Try a few minutes ago, I swear! (r=red) 2010-06-26 18:09:07 -07:00
Chris Leary
52608d352b Bug 559408: Turn arena pool macros into methods. (r=gal) 2010-06-26 17:55:00 -07:00
Andreas Gal
7c91c2898c Fix warnings (no bug, r=mrbkap). 2010-06-25 17:57:53 -05:00
Andreas Gal
47613b6fab Function.prototype.toString shouldn't crash on function proxies (574294, r=brendan). 2010-06-24 13:25:09 -05:00
Igor Bukanov
2019c722fb bug 571789 - merging JSObjectOps and JSExtendedClass into JSClass. r=jorendorff 2010-06-12 18:29:04 +02:00
Igor Bukanov
a69fd0a49f bug 571789 - merging JSObjectOps and JSExtendedClass into JSClass. r=jorendorff 2010-06-12 18:29:04 +02:00
Nicholas Nethercote
9dfbe8877d Bug 552812 - nanojit: factor out AccSet differences into TM and TR (take 3, TM-specific part). r=gal. 2010-07-27 22:33:42 -07:00
David Anderson
a2bfe74bbb [JAEGER] Merge from fatval branch. 2010-06-10 21:58:13 -07:00
David Mandelin
f242431382 Bug 569766: Make tracing work with fat values 2010-06-10 17:20:26 -07:00
Jason Orendorff
c1a1fb9be1 Bug 563099 - Compartments and wrappers API. r=gal.
--HG--
extra : rebase_source : cb34d0d0fc689fc6401d67e7f719344cd8e27655
2010-06-23 16:35:10 -05:00
Brendan Eich
e672f52623 Eliminate JSClass::reserveSlots and streamline new-object paths (535416, r=gal). 2010-06-18 17:43:02 -07:00
David Anderson
858278d975 [JAEGER] Merge from fatval branch. 2010-06-10 14:01:11 -07:00
Luke Wagner
e6f9490099 Simplify code now that Value is copyable 2010-06-10 10:09:05 -07:00
Luke Wagner
1bb5128ab0 Merge with TraceMonkey 2010-06-09 21:59:18 -07:00
David Anderson
87d142550e [JAEGER] Merge from fatval branch. 2010-06-04 22:11:53 -07:00
Luke Wagner
7b81a5dc24 Make JSHasInstanceOp and JSEqualityOp take jsval. Get a lot of xpconnect compiling 2010-06-04 16:55:08 -07:00
David Anderson
8e4fe7b3e9 [JAEGER] Merge from fatval branch. 2010-06-03 23:04:57 -07:00
Luke Wagner
8f6c06b148 Remove jsboxedword, change jsid to be a jsval 2010-06-02 19:09:04 -07:00
Blake Kaplan
a2ac6b938e Remove incorrect return. rs=lumpy 2010-06-18 17:45:33 -07:00
Brendan Eich
734c3a1ba9 Back out a81f2aed9c9b due to orange. 2010-06-18 17:39:22 -07:00
Brendan Eich
157c408713 Eliminate JSClass::reserveSlots and reserve fixed-per-class slots lazily (535416, r=gal). 2010-06-15 10:06:40 -07:00
Jeff Walden
2a8187e20b Bug 548671 - Stop using shared-permanent properties "inherited" from the prototype to represent (function(){}).length and [].length. r=jorendorff
--HG--
extra : rebase_source : c5d48e4fe489f9e350798b49bed70f763e3abf37
2010-06-02 23:44:24 -07:00
Brendan Eich
9c5f58d3ca Call instances uniquely shaped at birth due to lack of runtime-shared empty scope (569391, r=jorendorff). 2010-06-01 15:01:11 -07:00
Andreas Gal
3026562007 Improve error reporting for proxy handlers and __iterator__ (568966, r=brendan). 2010-05-29 19:04:01 -07:00
David Anderson
7427ea1c19 Backed out changeset 752bab2cb85b. 2010-05-23 20:27:13 -07:00
David Anderson
51f21f92ba Statically bind global variable references where possible (bug 561923, r=brendan). 2010-05-23 17:15:16 -07:00
David Anderson
285a986008 Statically bind global variables where possible (bug 561923, r=brendan). 2010-05-22 15:38:04 -07:00
Luke Wagner
6836687a5e jsapi-tests pass 2010-05-19 18:40:27 -07:00
Luke Wagner
d3a3926b34 Fix bugs 2010-05-18 17:25:12 -07:00
Luke Wagner
19c9bbad15 Turns out function objects can be on parent chains 2010-05-18 14:23:23 -07:00
Luke Wagner
e374a37e1c Remove explicit copy, ObjPtr 2010-05-17 22:15:51 -07:00
Luke Wagner
b3c6d771b1 Fixing shell/js 2010-05-17 18:49:58 -07:00
Luke Wagner
6d87e93eef 30% through jsstr 2010-05-13 18:55:25 -07:00
Luke Wagner
db5b99989b convert jsnum, touch up jsobj 2010-05-13 02:03:08 -07:00
Luke Wagner
4e6c52c52b New Tag scheme, no SetObject silliness 2010-05-12 16:36:10 -07:00
Chris Leary
94f23c0a06 Arena pool macros don't want to die. 2010-07-11 00:09:34 -07:00
Chris Leary
48398c7423 Bug 559408: Arena macros to methods. (r=galish) 2010-07-10 23:19:14 -07:00
Luke Wagner
bd3571c1b5 Still recovering from rebase 2010-05-11 19:00:59 -07:00
Luke Wagner
6c0883c94f Merge from tracemonkey 2010-05-11 00:41:08 -07:00
Luke Wagner
4e71f5312b (unrebased) fat value patch 2010-05-10 22:01:31 -07:00
Luke Wagner
fb7ceb4c78 Bug 547851 - remove JSStackFrame::regs, JSStackFrame::callerFrame.sp (r=dvander) 2010-03-03 18:10:13 -08:00
Luke Wagner
bddd202c18 (unrebased) remove regs 2010-03-03 18:10:13 -08:00
Luke Wagner
24a4486456 (fake) remove-regs patch 2010-03-03 18:10:13 -08:00
Luke Wagner
9b49d62378 Bug 540706 - use contiguous buffer for stack frames and slots (r=waldo) 2010-03-03 17:52:26 -08:00
Luke Wagner
6a6afd60ce Backed out changeset 23efaeb8652b 2010-05-13 02:21:27 -07:00
Luke Wagner
c82711e2b5 (unrebased) contiguous patch 2010-03-03 17:52:26 -08:00
Brendan Eich
9c357658b7 Back out patch for 557969 due to orange. 2010-04-08 11:31:03 -07:00
Brendan Eich
edcf471ddb Named native functions lacking JSFUN_BOUND_METHOD entrain the global of the object in which they are bound, not the binding object itself, via parent (557969, r=mrbkap). 2010-04-08 10:55:22 -07:00
Luke Wagner
b9f8c249e6 Bug 552574 - de-mystify js_ValueToNumber API (r=igor) 2010-04-07 13:18:50 -07:00
Nicholas Nethercote
26d8277a75 Bug 413730 - Replace all OBJ_GET_CLASS() macro calls with JSObject::getClass() calls. r=gal. 2010-04-07 16:09:49 -07:00
Luke Wagner
0e23d73f7a (fake) contiguous patch 2010-03-03 17:52:26 -08:00
Luke Wagner
500101d1a4 Bug 563845 - skip jsval-to-jsid conversion when jsval is a jsid (r=igor) 2010-05-04 18:24:13 -07:00
Nicholas Nethercote
1cd832e8d3 Bug 562872 - encapsulate Arguments-related dslots accesses. r=brendan. 2010-05-02 21:42:09 -07:00
Andreas Gal
4f28c42447 Remove lingering defaultValue calls with hint JSTYPE_OBJECT or JSTYPE_FUNCTION (554550, r=brendan). 2010-04-11 20:55:22 -07:00
Nicholas Nethercote
6bcbe2ea63 Bug 557713 - encapsulate JSSLOT_ARGS_* within JSObject. r=brendan. 2010-04-11 16:45:20 -07:00
Dave Herman
ed6c552bb7 Bug 558437 - rename JSCompiler to js::Parser (r=brendan). 2010-04-10 21:15:35 -07:00
Brendan Eich
1a7721a4d3 Don't bother optimizing apply on arguments objects whose length property has been overridden (558609, r=dvander). 2010-04-10 20:53:11 -07:00
Andreas Gal
a887d81302 Inline the object allocation path (558003, r=sayrer). 2010-04-10 16:16:35 -07:00
Luke Wagner
98a7dc9ea6 Bug 540706 - use contiguous buffer for stack frames and slots (r=waldo) 2010-03-03 17:52:26 -08:00
Robert Sayre
a354ba1cfc Backed out changeset 919950c7f0f0 2010-05-11 11:52:17 -04:00
Chris Leary
299dd52ca1 Bug 559408: Arena pool macros to methods. (r=gal) 2010-05-10 21:46:52 -07:00
Luke Wagner
876f5eac9f Bug 586335 - remove dead value-to-function code (r=waldo) 2010-08-17 09:44:41 -07:00
Robert Sayre
596f6ceff5 Bug 554850: silence JSBool -> bool conversion warnings in msvc. r=waldo 2010-04-01 16:54:57 -04:00
Nicholas Nethercote
795d4b8ad2 Bug 556353 - Remove OBJ_IS_NATIVE, HAS_FUNCTION_CLASS. r=brendan. 2010-03-31 22:13:51 -07:00
Nicholas Nethercote
684396fb91 Bug 555631 - Convert STOBJ_* macros to inline functions. r=gal. 2010-03-30 14:42:48 -07:00
Brendan Eich
34b1a91d97 Fix arguments objects to share a runtime-wide empty scope, instead of each getting a differently shaped own scope at birth (554626, r=igor). 2010-03-30 00:44:28 -07:00
Jeff Walden
09969174d8 Readd bug 548702's changes to jsapi.cpp, jsexn.cpp, jsfun.cpp, jsnum.cpp, and jsstr.cpp. 2010-03-28 22:05:50 -07:00
Jeff Walden
0973dfd6ab Merge. 2010-03-26 21:53:40 -07:00
Jeff Walden
95422c65a3 Backed out changeset e7065853ef79; I'll be repushing this incrementally, attempting to find the precise place where things go bad, in the near future. Happy days are here again! :-\ 2010-03-26 18:01:54 -07:00
Jim Blandy
e82e0c1ee6 Bug 554102: Cleanup: switch from global TokenStream functions to methods. a=cdleary, r=jimb 2010-03-23 17:30:36 -07:00
Chris Leary
8e0decc494 Bug 553423 - JS scanner namespacing cleanup (r=lw) 2010-03-21 16:07:48 -07:00
Luke Wagner
1e33f57b39 Backed out changeset 6403442ffa1d (failure on windows, winnt.h defines TokenType!) 2010-03-18 22:26:47 -07:00
Chris Leary
2400e09e63 Bug 553423 - JS scanner namespacing cleanup (r=lw) 2010-03-18 22:15:51 -07:00
Luke Wagner
116a193009 Bug 552248 - fix crash when JS_EvaluateInStackFrame is called for frame in saved callstack (r=Waldo) 2010-03-15 19:24:08 -07:00
Chris Leary
431c00210e Bug 549658: clean up JS scanner and inline more things, r=brendan,jimb 2010-03-15 16:42:06 -07:00
Robert Sayre
84b14d6f30 Merge mozilla-central to tracemonkey. 2010-03-13 11:51:12 -05:00
Luke Wagner
a1a73dd94d Bug 551276 - a more type-safe way to zero memory (r=Waldo)
--HG--
extra : rebase_source : fc5564c34cde6490a1d3b48a16a451f7e50c052a
2010-03-10 15:34:12 -08:00
Jeff Walden
106fbd8085 Bug 548702 - Temporary value-rooting scheme should be C++- and RAII-based, not macro-based. r=igor
--HG--
extra : rebase_source : c7bb34662dbd70df49d40880227139537c60356e
2010-01-11 11:52:21 -06:00
Igor Bukanov
9d1cbd468c bug 549010 - folowup to replace PROTO access macros with the inlne function 2010-03-04 23:52:52 -08:00
Mike Moening
0373a2437d bug 549010 - fixing and silencing MSVC warnings. r=brendan,igor 2010-03-04 20:44:09 -08:00
Brendan Eich
9af18d4767 Fix CallPropertyOp to cope with non-int arguments id (549951, r=mrbkap). 2010-03-03 14:44:03 -08:00
Brendan Eich
9c8234d49b Bug 549617 - JS_EvaluateUCInStackFrame doesn't see variables in flat closure (r=mrbkap). 2010-03-02 17:30:54 -08:00
Nicholas Nethercote
c8a754a27d Bug 545274 - nanojit: start adding alias info to loads/stores/calls (TM-specific part). r=jseward. 2010-03-02 13:47:17 +11:00
Andreas Gal
18afa9f743 Setters/getters can be callable objects (547912, r=brendan). 2010-02-22 22:25:09 -08:00
Andreas Gal
bd338bc100 Test whether obj IsCallable instead of VALUE_IS_FUNCTION for call and apply (547046, r=mrbkap). 2010-02-22 14:07:50 -08:00
Igor Bukanov
debaa592f7 bug 545529 - caching Class.prototype lookups. r=brendan 2010-02-19 20:44:23 +03:00
Gregor Wagner
dc4711d401 BUG 545303: TM: non API function for JS_CallTracer r=igor 2010-02-18 13:16:02 -08:00
Brendan Eich
b83b1b23c3 Fix two subtle bugs to-do with partial flat closures (545573, r=jorendorff). 2010-02-11 14:56:59 -08:00
Jason Orendorff
095bd890ef Bug 539829 - Encapsulate JSScope::flags. r=Waldo.
--HG--
extra : rebase_source : ced4f057e715075d8e4eff343e824d8934152a7e
2010-02-05 18:11:13 -06:00
Jeff Walden
7e68c64269 Bug 543097 - Precompute the prototype when evaluating function expressions and regular expression literals on trace, rather than (slowly) looking it up every time. r=jorendorff
--HG--
extra : rebase_source : d023ded17937248bdfb23705e7477918b111746f
2010-02-01 17:20:37 -08:00
Luke Wagner
7714144859 Bug 535656 - remove JSStackFrame::dormantNext and varobj (r=waldo) 2010-01-29 18:25:16 -08:00
Luke Wagner
2645ecd2da Bug 541452 - put jstracer.cpp in namespace js (r=jorendorff) 2010-01-22 14:49:18 -08:00
David Mandelin
9600769682 Bug 495331: trace JSOP_LAMBDA for non-heavyweight, non-null closures, r=jorendorff,dvander 2010-01-15 11:32:14 -08:00
Brendan Eich
85a5badeef ES5-conformance fix to make a new RegExp for each regexp literal evaluation (98409, r=igor/jwalden). 2010-01-06 15:12:54 -08:00
Jason Orendorff
e5ac8476fd Backed out changeset 3862a7e48e79 due to tinderbox failures on js1_5/GC/regress-324278.js. 2010-01-05 12:48:09 -06:00
Brendan Eich
1b4fbd91e6 ES5-conformance fix to make a new RegExp for each regexp literal evaluation (98409, r=jwalden). 2010-01-04 12:25:44 -08:00
Chris Leary
2ebc323e9d Bug 558002 - Convenience methods for TokenStream flags. r=jwalden 2010-04-09 18:54:51 -07:00
Sid Stamm
47a3291b46 bug 515443 CSP no-eval support. r=mrbkap,brendan 2010-03-08 00:24:50 -08:00
Jeff Walden
52312bac03 Bug 518663 - ES5: Object.getOwnPropertyNames. r=jorendorff 2009-09-24 14:33:14 -07:00
Brendan Eich
5bcc54508f Fix js_FindDuplicateFormal to crack the fun->u.i.names union correctly, and spruce it up with C++ (532041, r=jimb). 2009-12-01 14:48:05 -08:00
Jim Blandy
35e434274a Bug 499524: Always check for duplicates when destructuring params are present. r=igor
Detect duplicate names in parameter lists that include destructuring
parameters, regardless of whether the duplication becomes before or
after the destructuring. Let strict mode complaints take care of
themselves after the body has been parsed.

In BindDestructuringArg, there should never be an entry in tc->decls
for the given name if the call to js_LookupLocal didn't detect a
duplicate argument, so we can simply assert that tc->decl.lookup
returns NULL, instead of checking it.

In HashLocalName, we can tighten the assertion: both the new and
existing entries must be JSLOCAL_ARG, since we detect all non-ARG
(i.e., destructuring) duplicates early.
2009-11-26 10:23:52 -08:00
Jim Blandy
18f28c0cac Bug 514580: Forbid duplicate formal parameter names in strict mode code. r=mrbkap
Note: this patch changes the JSOPTION_STRICT warning from a TypeError
into a SyntaxError, if JSOPTION_WERROR is also set.
2009-11-19 14:08:02 -08:00
Jim Blandy
34a27f0c88 Bug 514585: Recognize "use strict" directives. r=igor 2009-11-18 13:33:53 -08:00
David Mandelin
354c79f502 Bug 525028 followup: fix build bustage on non-tracing-enabled builds, no_r=me 2009-11-09 16:42:38 -08:00
David Mandelin
f381a3d5ed Bug 525028: don't set args object properties from trace, r=dvander 2009-11-09 15:36:41 -08:00
David Anderson
ab74b2ff81 Added calleValue()/calleObject() inline helpers to JSStackFrame (bug 512371, r=brendan). 2009-10-26 17:28:56 -07:00
Robert Sayre
dd8b93c5d3 Merge mozilla-central to tracemonkey. 2009-10-26 13:29:48 -04:00
Boris Zbarsky
3aef7b8edb Bug 507448. Expose the names of the function arguments on jsdIScript. r=timeless,brendan
--HG--
rename : content/base/test/Makefile.in => js/jsd/test/Makefile.in
2009-10-26 09:30:40 -04:00
David Anderson
8231c0b9ee Clear argsobj private on trace (bug 522024, r=dmandelin). 2009-10-22 17:56:46 -07:00
Jeff Walden
58c4037788 Bug 523686 - Kill fun_enumerate, since it's no longer necessary now that bug 514603 is fixt. r=jorendorff 2009-10-21 15:00:51 -07:00
Jason Orendorff
326aa1d148 Bug 522590 - FF 3.7 crash on startup with chromebug. r=brendan. 2009-10-21 15:27:35 -05:00
Brendan Eich
9f9a05b0c3 Don't build a stack frame to execute empty scripts (516827, r=igor). 2009-10-18 17:41:24 -07:00
Jim Blandy
0d6cdd1921 Bug 514585: Use bitfields in JSScript instead of a flag word. r=brendan
This is behavior-neutral cleanup in preparation for the real patch.
2009-10-08 10:29:03 -07:00
David Mandelin
6a393c2883 Merge backout of bug 495331 patch 2009-10-05 18:32:06 -07:00
David Mandelin
42af5f9b94 Backed out changeset 9cc88d291fc0 2009-10-05 18:31:10 -07:00
Brendan Eich
d5f11b6d2f Use 'Is' in noun-phrase-named predicate (518103 followup, r=jorendorff/Waldo). 2009-10-05 16:58:54 -07:00
Brendan Eich
8dbcb884d9 Fix constructor method (foo.bar/foo[baz] initialized from a lambda) invocation to go through the method read barrier (518103, r=jorendorff). 2009-10-05 16:55:21 -07:00
David Mandelin
e7d37eba3d Bug 495331: trace JSOP_LAMBDA for non-null, non-heavyweight case, r=jorendorff,igor 2009-09-28 13:51:46 -07:00
Igor Bukanov
27c2d57074 bug 517749 - removal of weakRoots.newborn = null. r=mrbkap 2009-09-25 16:30:11 +04:00
David Mandelin
99fb23d064 Bug 511695: Fix JS warnings in MSVC8, r=brendan 2009-09-23 11:16:30 -07:00
David Mandelin
b152e9656d Bug 517117: don't trace JSOP_ARGCNT if arguments.length has been overridden, r=dvander
--HG--
extra : rebase_source : a53403064c533bdc3270408f0d29eeec12970040
2009-09-17 18:13:20 -07:00
David Mandelin
836a74cc80 No bug, fixing tinderbox orange apparently caused by missing OOM check, r=gal in person 2009-09-17 17:44:19 -07:00
Nicholas Nethercote
dc36e0b4cd Follow-up for bug 516298. r=brendan. 2009-09-14 17:38:48 +10:00
Nicholas Nethercote
79ded264a4 Bug 516298 - TM: fix three compiler warnings. r=brendan. 2009-09-14 14:17:45 +10:00
Brendan Eich
79d774b114 Bug 515815 - TM: Regression on shell test case regress-452498-224.js (r=igor). 2009-09-11 10:47:47 -07:00
Brendan Eich
016b0f207a Bug 514981 - JSStackFrame::sharp{Array,Depth} should be locals allocated due to #n[#=] usage (r=igor). 2009-09-09 20:21:15 -07:00
Jason Orendorff
b53824855d Bug 513119 - Change JSScript macros to methods. r=Waldo. 2009-09-09 18:52:55 -05:00
David Mandelin
512c25cdc4 Bug 504797 extra bit: newly required include in jsfun.cpp, no_r=me 2009-09-09 11:46:32 -07:00
David Mandelin
a8c3972f23 Bug 504797: give arguments objects created on trace a private value that can be used to look up argument values in the native stack, r=gal 2009-09-09 11:40:21 -07:00
Brendan Eich
7a412f40b3 JSTempValueRooter JSTVU_SINGLE over-constrains GC-thing against static allocation (515000, r=gal). 2009-09-07 00:35:27 -07:00
Igor Bukanov
6bfe4771cc bug 513190 - avoiding jsint tagging of the private slot data. r=jorendorff 2009-09-05 19:59:11 +04:00
Jeff Walden
bb3a9524fa Bug 514603 - ES5: (function(){}).propertyIsEnumerable("prototype") should be false, not true. r=brendan 2009-09-04 02:16:05 -07:00
Luke Wagner
6bfe9f9329 Bug 460904 - rename/tweak JSTraceableFunction (take 2) 2009-09-04 13:44:31 -07:00
Luke Wagner
3087376a4d Backed out changeset 94da2f68afdb 2009-09-04 11:35:52 -07:00
Luke Wagner
52d822b6d2 Bug 460904 - rename/tweak JSTraceableFunction (r=jorendorff) 2009-09-03 11:57:14 -07:00
David Mandelin
a086bb3ab9 Bug 510642: traverse scope chain correctly for traced JSOP_BINDNAME, r=jimb 2009-08-27 15:07:46 -07:00
Jason Orendorff
dafc9b5d2a Bug 508685 - Remove last parameter of defineProperty op. r=brendan. 2009-08-26 14:28:36 -07:00
David Anderson
d6567c21e2 Build fix (followup to bug 512029). 2009-08-24 17:18:41 -07:00
David Anderson
744033066f Removed JSStackFrame::callee (bug 512029, r=brendan). 2009-08-24 17:09:44 -07:00
Luke Wagner
3cf8a59c01 Bug 503952 - Use JSTempVector in scanner/parser; remove JSStringBuffer (r=brendan) 2009-08-14 16:10:59 -07:00
Igor Bukanov
be037e50cc bug 495061 - followup - fixing a typo in JS_FASTCALL declaration 2009-08-14 20:54:26 +02:00
Igor Bukanov
7e607aac4d bug 495061 - js_PutArgsObject and js_PutCallObject that never fail. r=brendan 2009-08-14 20:43:16 +02:00
Jason Orendorff
9dc4a54a5d Bug 498488 - Change some JSObject macros to methods. r=Waldo. 2009-08-11 15:05:44 -05:00
Jason Orendorff
d60a115007 Bug 509301 - Value chosen for callee in args_resolve is nonsense. Fixes a debug browser assertion. r=Waldo. 2009-08-10 16:23:32 -05:00
Jason Orendorff
08c6a1c780 Bug 506721 - Convert JSVAL_TO_INT and INT_TO_JSVAL to functions. r=Waldo. 2009-08-09 07:25:53 -05:00
Igor Bukanov
ef90f6f522 bug 493457 - uniform access to private slots. r=mrbkap, sr=jwalden 2009-08-04 23:06:55 +02:00
Igor Bukanov
ca5953ea0c bug 507573 - put activation clenup. r=brendan 2009-08-04 12:55:58 +02:00
David Mandelin
14faeda25e Bug 507424: allocate slots for cloneable regexps in js_AllocFlatClosure if needed, r=igor 2009-07-31 11:34:33 -07:00
Andreas Gal
e7f2714ea1 When finalizing, deallocate memory in a separate thread (505612, r=bent,brendan,waldo). 2009-07-27 21:10:12 -07:00
David Mandelin
9d0c7a2f72 Bug 495329: Trace JSOP_BINDNAME/JSOP_SETNAME for closures, r=brendan 2009-07-27 18:13:53 -07:00
Igor Bukanov
1c7dc7ec8c bug 505460 - followup to fix misspellings 2009-07-26 08:54:54 +02:00
Igor Bukanov
1fcf4af3b3 bug 505460 - preallocating reserved slots. r=brendan 2009-07-24 12:01:37 +02:00
Igor Bukanov
9534c3d315 bug 504033 - avoiding calling JSFinalizeStub. r=brendan 2009-07-22 18:23:21 +02:00
Jason Orendorff
a31f80165c Bug 503080 - Remove prototype-scope-sharing. r=brendan. 2009-07-21 16:25:11 -05:00
Andreas Gal
f8892ed21b Shrink slots during GC only, split ReallocSlots into Alloc/Grow/ShrinkSlots (504478, r=igor). 2009-07-16 18:42:54 -07:00
Andreas Gal
1af8dfb112 Avoid integer division in NewGCThing path (503157, r=jwalden). 2009-07-14 17:06:09 -07:00
Andreas Gal
f552010935 Make js_ValueToString inline (503669, r=jwalden). 2009-07-13 14:55:04 -07:00
Brendan Eich
93c0af174f Pick nits including warning provoker in jsregexp.cpp from bugs 463535 and 453730. 2009-07-09 15:18:08 -04:00
David Mandelin
975f74c278 Bug 453730: trace JSOP_ARGUMENTS, r=gal 2009-07-08 11:16:41 -07:00
Benjamin Smedberg
bc75ed217a Bug 499971 - js_GetCallVar and several others which are used as JSNatives must not be JS_REQURIES_STACK, r=jorendorff 2009-06-25 15:12:20 -04:00
Benjamin Smedberg
c7cc8fde73 Bug 498398 - fast natives such as array_sort and many others must not be JS_REQUIRES_STACK, r=jorendorff 2009-06-25 15:12:19 -04:00
Jason Orendorff
52fe5a97ba Bug 497618 - Change JSString macros to methods. r=Waldo. 2009-06-10 20:29:44 -05:00
Brendan Eich
324ed984a8 Cast to int16 when tagging slot as an int jsval to satisfy an assertion (497146, r=igor from the future). 2009-06-10 12:15:01 -07:00
Brendan Eich
51fe52e6f9 Wrapper automation should not apply to flat closures, plus cleanup (496790, r=igor). 2009-06-09 00:51:02 -07:00
Blake Kaplan
d7a368c426 Bug 496245 - Assertion failure: fun->u.i.script->upvarsOffset. r=brendan/dmandelin 2009-06-08 12:13:37 -07:00
Brendan Eich
d39f51fdcb Last gasp for 496605 (r=igor). 2009-06-05 12:24:20 -07:00
Brendan Eich
4d75d6bce0 Fast ultimate fighting web-compat followup for 496605 (r=mrbkap). 2009-06-05 12:13:22 -07:00
Brendan Eich
a356c92db2 Bug 496605 - Need to prevent optimized closure escape via foo.caller still (r=igor). 2009-06-05 11:41:32 -07:00
Brendan Eich
77da9d75ed Bug 494235: wrap escaping optimized closures for the debugger API (r=igor/mrbkap). 2009-06-04 18:58:47 -07:00
David Mandelin
a90aee411c Bug 494269: trace JSOP_LAMBDA_FC, r=brendan,gal 2009-06-03 11:19:20 -07:00
Igor Bukanov
ffa8b1615c bug 495216 - proper accounting of args and vars for Call object. r=brendan 2009-05-29 14:23:58 +02:00
Igor Bukanov
0374ee3760 bug 490364 - mutating parent chain shapes only for Call objects and only when adding properties that are not parameter or var names. r=brendan 2009-05-15 11:43:19 +02:00
Igor Bukanov
92f94e451c bug 491126 - sharing object map for non-native objects. r=brendan 2009-05-14 12:35:23 +02:00
Brendan Eich
0416e1e679 Bug 492355 - Suspected Txul regression from JS engine changes (r=igor). 2009-05-13 17:11:23 -07:00
Igor Bukanov
3597961095 bug 491013 - fixing shared setter regression and eliminating several useless anonymous prototype objects. r=brendan 2009-05-06 20:33:10 -02:30
jorendorff
93c6d226d3 Record all calls to native functions (487134, r=gal, brendan). 2009-05-05 14:26:06 -07:00
Andreas Gal
fe1ed6adb9 Backed out changeset 6534f8b9aa74 (bug 491013, assert on startup). 2009-05-04 15:07:53 -07:00
Igor Bukanov
d77b8664fb bug 491013 - fixing shared setter regression and eliminating several useless anonymous prototype objects. r=brendan 2009-05-03 20:43:55 -04:00
Brendan Eich
52153f3522 Bug 488842 - Local Scope Variables are not displayed by default (r=mrbkap). 2009-04-22 23:22:42 -07:00
Igor Bukanov
ba556afe6d bug 487039 - caching only white-listed non-globals on the scope chain. r=brendan 2009-04-18 20:10:59 +02:00
Igor Bukanov
80295c64d7 bug 488699 - proper rooting of DeclEnv instance. r=brendan 2009-04-17 00:26:26 +02:00
Blake Kaplan
b008d59d4c Bug 487430 - call_enumerate doesn't take upvars into account. r=brendan 2009-04-14 11:29:34 -07:00
Igor Bukanov
225dc1322f bug 488029 - fixing bindname optimization regression from the bug 462734 plus creating js_DeclEnvClass instances together with Call objects. r=brendan 2009-04-14 12:54:37 +02:00
L. David Baron
c7409a6be6 Fix occasional leak of either array or hashtable entrystore allocated in js_AddLocal by accounting for fun->u.i.upvars in DestroyLocalNames. (Bug 487967) r=brendan 2009-04-11 16:03:13 -07:00
Brendan Eich
26a5b7f3fc Bug 487563 - Crash [@ js_Interpret] (r=mrbkap). 2009-04-09 18:44:54 -07:00
Brendan Eich
3f4a58e4f0 Bug 487271 - Crash [@ js_Invoke ], and missing google-maps background, at padmapper.com (r=mrbkap). 2009-04-08 13:14:02 -07:00
Brendan Eich
962b187fe5 upvar2, aka the big one take 2 (452598, r=mrbkap). 2009-04-05 21:17:22 -07:00
Andreas Gal
706120c0fb Backed out changeset 972c44aa9d1f (bug 452598). 2009-04-04 10:14:52 -07:00
Brendan Eich
5f4d9ff474 upvar2, aka the big one (452598, r=mrbkap). 2009-04-04 10:05:49 +01:00
Robert Sayre
150b7d8a28 Merge tracemonkey to mozilla-central. 2009-03-24 13:49:05 -04:00
Igor Bukanov
a8094a7903 bug 437325 - JSThread is no longer shared between JSRuntime instances. r=brendan 2009-03-24 13:07:35 +01:00
Jim Blandy
875aee5e88 Bug 479258: Include "jsstdint.h" for <stdint.h> type use within SpiderMonkey. r=brendan 2009-03-18 11:38:16 -07:00
Jason Orendorff
dbb0b6a149 Bug 481218 - js_IsCallable returns false for functions. r=brendan.
--HG--
extra : rebase_source : 52d3cba36f3fa1301223cb579bd75ec7bbd5d130
2009-03-11 10:46:45 -05:00
Brendan Eich
f32c3d8613 Bug 480657 - TM: Add an API to define traceable constructors (r=gal, jorendorff). 2009-03-03 22:53:27 -08:00
Robert Sayre
100a8e68be Bug 476374 - JSON.parse does not support reviver argument as defined in spec. r=jorendorff 2009-03-03 12:55:11 -05:00